You paste text and the formatting is wrong: mismatched fonts, weird gaps, stray boxes, or broken spacing. Here is how to fix it and prevent it.
Why pasted formatting breaks
When you copy text, you often copy more than the words:
- Styling (fonts, colors, sizes) that clashes with the destination
- Invisible characters that render as boxes or cause odd behavior
- Non-breaking and exotic spaces that create gaps you cannot fix normally
- Smart quotes and em dashes that look out of place or break code
The destination faithfully keeps all of it, so the paste looks wrong.
The quick fix
Undo, then paste as plain text.
- Windows / Linux:
Ctrl + Z, thenCtrl + Shift + V - Mac:
Cmd + Z, thenCmd + Shift + V
Plain-text paste drops the styling and usually fixes the visible clashes. But it leaves invisible characters and odd spaces inside the text, so if you still see gaps or boxes, there is more to remove.
The thorough fix
Run the text through a cleaner. textscrubr strips the invisible characters, normalizes the non-breaking and exotic spaces, fixes smart quotes and em dashes, and collapses double spaces, while keeping your real structure. Copy the clean result and paste it where it needs to go. This fixes the problems a plain-text paste cannot, because those characters live inside the text, not in the styling.
Prevent it next time
If you paste from the same source often (a chatbot, a web page, a Word doc), make cleaning a habit before the text lands anywhere that matters. Clean, then paste. It takes a few seconds and stops the formatting from breaking in the first place.
Match the destination
- Into a document: paste as plain text, then clean if gaps or boxes remain.
- Into code: clean first, since smart quotes and invisible characters break it.
- Into a CMS or email: clean first, so hidden characters do not reach your database or your recipients.