Inspect and debug
HTML paste cleaner
See the markup your clipboard really carries from Word or Google Docs, and get a cleaned version to paste.
The box stays empty on purpose. It is a target rather than an editor, so the markup is captured and shown below instead of being pasted in.
Paste something to see the HTML your clipboard is really carrying, and a cleaned version worth putting in an email.
Instructions
How to use this tool
- 01Copy something from Word, Google Docs or a web page.
- 02Paste it into the box. The box stays empty on purpose: it captures the markup rather than accepting it.
- 03Read what was removed. Each rule says how many times it fired, so you can see where the weight was.
- 04Copy the cleaned HTML and paste that into your template instead.
Background
Why a paste from Word is so much larger than what you copied
The clipboard carries more than one version of what you copied. There is a plain text flavour, which is the words, and an HTML flavour, which is what an editor actually takes. Word's HTML flavour is built for round-tripping back into Word, not for the web, so it includes conditional comments wrapping whole stylesheets, an o: XML namespace, mso- style properties on almost every element, and MsoNormal classes throughout.
A sentence and a link can arrive as several kilobytes. It renders acceptably in the editor you paste into, which is why it survives, and then causes trouble later: Gmail clips messages over roughly 102KB, and the junk counts toward that.
Background
What gets removed, and what is left alone
Removed: Office conditional comments and the XML islands inside them, o: and w: tags, style and meta and link elements, xmlns attributes, Mso class names, mso- properties inside style attributes, font tags, and spans that carry nothing at all.
Kept: your text, your links, emphasis and structure, and any real CSS. A style attribute holding both a colour and an mso- property loses only the mso- part, because the colour is usually something you chose. Nothing is rewritten, so the cleaned HTML says what the original said with less around it.
FAQ
Frequently asked questions
Why does the paste box stay empty?
It is a target rather than an editor. The paste is intercepted so the markup can be captured and shown to you, instead of being inserted and then needing to be cleaned out of the box as well.
Does anything I paste get uploaded?
No. The clipboard is read in the page and the cleaning is a string operation in your browser. Nothing is sent anywhere, which you can confirm from the network tab.
It says plain text only. Is that a problem?
The opposite. It means whatever you copied from offered no HTML flavour, so there is no hidden formatting to strip and nothing to clean.
Will this fix an email that already renders badly?
It fixes the paste, not the template. If a message is already broken in a client, the cause is usually the template's own CSS rather than pasted markup, and a dark mode preview or a header analysis is the better place to look.
More tools
Browse more free tools
Write the email once, in a template that stays clean
Courier's Design Studio builds responsive emails from reusable brand elements, so content arrives without a word processor's markup attached to it.
Explore Design Studio