You pasted from Word and the text is a mess — the invisible junk
Pasting text from Word or a web page into your blog scrambles fonts and spacing and adds odd whitespace because invisible formatting and special characters come along. Here's how to clean out curly quotes, zero-width characters, and messy line breaks.
The problem: you just pasted, and the fonts went wild
You paste text written in Word or copied from a web page into your blog editor, and suddenly the font changes, sizes are all over the place, and line spacing opens up oddly. Odd whitespace stays no matter how much you delete, and some characters can't be found by search.
The visible letters look fine, so why? Because copying brings more than the letters — the source document's formatting and invisible special characters ride along. Strip out this junk and only clean plain text remains.
What tags along — three sources of junk
First is formatting (styles). Copy from Word and the font, size, color, and line spacing come as HTML that clashes with your blog's defaults. Second is curly (smart) quotes: Word auto-changes straight quotes (") into pretty curly ones (“”), which can break in certain fonts or cause errors in code.
Third is invisible characters. Zero-width spaces (U+200B), non-breaking spaces (NBSP), and various control characters sneak in, creating "whitespace that won't delete" and blocking search and sorting. These come along especially when copying from web pages.
| Source | Symptom | Fix |
|---|---|---|
| Formatting (styles) | Fonts, sizes, colors go wild | Paste without formatting / strip styles |
| Smart quotes | Quotes break or look odd | Convert to straight quotes |
| Zero-width / NBSP | Whitespace that won't delete; no search hits | Remove invisible characters |
| Messy line breaks | Lines collapse or over-space | Tidy repeated spaces / blank lines |
The simplest prevention: "paste without formatting"
Many editors support a shortcut to paste plain text only, stripping formatting — often Ctrl+Shift+V on Windows and Cmd+Shift+V on Mac (varies by app). That alone prevents much of the style contamination.
But even this doesn't perfectly filter smart quotes or invisible special characters. If your text was copied from several places, or mixes code and data, one more cleanup pass helps.
The sure fix: clean the text
Paste the text into a text-cleaning tool and it converts smart quotes to straight ones, removes zero-width and control characters, and tidies repeated spaces and unnecessary blank lines into clean plain text. Paste that into your blog and there's no formatting clash.
If the character or byte count changed before and after cleaning, that's how much invisible junk was there. Especially for text going somewhere with a tight character limit (SNS, SMS), cleaning removes ghost characters so your real length is accurate.
Frequently asked questions
Isn't "paste without formatting" enough?
It prevents most style contamination, but it often doesn't filter invisible characters like smart quotes, zero-width, or NBSP. If those remain, search and sorting fail and code can error, so a cleanup pass is safer.
Why are zero-width spaces a problem?
They're invisible but real characters, so they stay even when you think you deleted them. Inside a word they break search matches, they inflate character and byte counts, and they throw off value comparison when used as data.
Aren't curly quotes nicer anyway?
In prose, curly quotes can look better. The problem is code, data, and some systems that treat a curly quote as a different character than a straight one, causing errors or breakage. When you need straight quotes, a cleaner helps.