Post Purifier: HTML Cleaner for Blog Posts

Paste formatted text from Google Docs, Word, ChatGPT or any website. Get clean HTML with only headings, paragraphs, lists, links and images, ready for WordPress.

Used to spot internal and external links.

How to clean your post

  1. Copy your article from Google Docs, Word, ChatGPT or a web page.
  2. Click in the big box and paste it (Ctrl+V on Windows, Cmd+V on Mac). If you already have HTML code, switch to Paste HTML code first.
  3. Type your site address, for example https://yoursite.com, so the tool knows which links are internal.
  4. Check the options, then look at the Preview to make sure everything looks right.
  5. Copy the result and add it to WordPress (see below).

Adding the clean content to WordPress

Block editor (Gutenberg)

Click Copy formatted, then paste into an empty paragraph block. WordPress turns headings, lists and paragraphs into separate blocks automatically. Alternatively, click Copy HTML, open the three dot menu at the top right, choose Code editor, paste and switch back to the visual editor.

Classic editor

Click Copy HTML, switch to the Text tab and paste.

Page builders

In Elementor, Bricks or similar builders, paste the HTML into the text editor element's code or text view. Your theme's typography then takes over, so the content matches the rest of your site.

What gets removed and what stays

KeptRemoved
Headings H1 to H6, paragraphs, line breaksInline styles, fonts, colours and sizes
Bullet and numbered listsspan, div, section and other wrapper tags
Bold, italic, underline, strikethroughClasses, IDs and data attributes
Links (href) and images (src and alt)Scripts, styles, forms, iframes and embeds
Quotes, code blocks, superscript, subscriptWord and Google Docs hidden markup
Tables, when you tick "Keep tables"Empty paragraphs and stray line breaks

Why clean HTML matters

Messy pasted code causes real problems. Inline fonts and colours override your theme, so some paragraphs look different from others. Extra wrapper tags make the page heavier and slower. Leftover styles can break your layout on mobile. Search engines also prefer a clear structure of headings, paragraphs and lists, and clean HTML gives them exactly that.

Clean code also makes life easier later. When you change your theme or move to a new page builder, content without hard coded styles adapts straight away instead of needing to be fixed post by post.

Tips for writers and editors

Frequently asked questions

Why does pasted text look messy in WordPress?

Google Docs, Word and websites copy a lot of hidden code along with your text: inline styles, fonts, colours, span and div tags, and class names. WordPress keeps much of it, so your post ends up with odd fonts, spacing and colours that fight with your theme. Post Purifier removes all of that and keeps only the structure.

Will I lose my bold and italic text?

No. Bold, italic, underline and strikethrough are kept. Google Docs stores bold and italic as styles rather than tags, and Post Purifier turns those into proper strong and em tags so they survive the clean up.

What does "Make links to my site relative" do?

If you enter your site address, links pointing to your own site lose the domain part, so https://example.com/contact/ becomes /contact/. That keeps internal links working if you move to a new domain or a staging site.

Is my content uploaded anywhere?

No. The cleaning happens entirely in your browser. Your draft is never sent to our server, which makes it safe for unpublished articles and client work.

Why did my embedded video disappear?

For safety, Post Purifier removes iframes, scripts, forms and embeds. Add videos in WordPress with the YouTube or Embed block after pasting your cleaned content.

Why change H1 to H2?

In WordPress, your post title is already the H1 heading. Using a second H1 inside the content can confuse readers and search engines, so the tool turns content H1s into H2s by default. Untick the option if you need them.