Copy text from a PDF, a Word document, or another website, and paste it somewhere else, and it often looks subtly (or not so subtly) broken — extra spaces, odd line breaks in the middle of sentences, or formatting that doesn't match anything around it. None of this is random; it's the pasted content carrying along hidden characters and structure from wherever it came from.
Why pasted text often looks "broken"
Word processors and PDFs frequently use special characters that look identical to a normal space or hyphen on screen but aren't the same character underneath — a non-breaking space (used to keep two words from separating across a line break) or a smart quote (a curly "typographic" quotation mark instead of a straight one) are both common culprits. PDFs add a further complication: many PDF readers extract text with a line break after every visually displayed line, not after every paragraph, which turns a single paragraph into a stack of short, choppy "paragraphs" once pasted elsewhere.
Common cleanup steps
- Trim leading and trailing whitespace from the whole block of text.
- Collapse multiple consecutive spaces down to a single space.
- Normalize line breaks — merge broken single lines back into full paragraphs, and reduce three or more blank lines down to one.
- Convert smart/curly quotes to straight quotes if the text is going somewhere (like code or a plain-text field) that expects standard characters.
Paste as plain text: the fastest fix
Most applications — word processors, browsers, and note-taking apps — support a "paste as plain text" shortcut (commonly Ctrl+Shift+V on Windows, Cmd+Shift+V on Mac) that strips all formatting and hidden characters at the moment of pasting, before any of it lands in the document. This solves the large majority of copy-paste formatting problems before they happen, and is worth using as a default habit any time text is coming from an unfamiliar source, rather than pasting normally and cleaning up the mess afterward.
Why WordPress and other CMS editors are especially prone to this
Content management systems like WordPress historically had a reputation for producing messy output when content was pasted directly from Word, because Word embeds a large amount of hidden formatting markup (font definitions, style classes, and more) alongside the visible text, and older editors would import all of it along with the words. Most modern block editors handle this more gracefully than they used to, but pasting as plain text first and then reapplying only the formatting actually needed — bold, links, headings — remains the most reliable way to avoid inheriting formatting that clashes with a site's existing design.
When app shortcuts aren't available
Not every application supports a built-in paste-as-plain-text shortcut, and in those cases, pasting into a genuinely plain-text intermediary first — a basic text editor, a plain notes app, or a plain-text field in a browser — strips the formatting before the second paste into the actual destination. This two-step workaround accomplishes the same result as a direct plain-text shortcut and is worth keeping as a fallback method for any application that doesn't offer the shortcut natively.
Try the Text Tools yourself — free, instant, no sign-up.
Open the calculatorFrequently asked questions
What is a non-breaking space and why does it cause problems?
It's a space character that looks identical to a normal space but prevents a line break at that point, commonly inserted automatically by word processors. It can cause subtle issues in code, search-and-replace operations, or plain-text systems that expect a standard space character instead.
Does "paste as plain text" remove all hidden formatting?
It removes the vast majority of it, including fonts, colors, and most embedded style markup, though a small number of special characters like smart quotes or non-breaking spaces can sometimes still carry through, depending on the source and destination application.
Why do smart/curly quotes cause issues in code snippets?
Programming languages expect straight quotation marks to define strings, and a curly quote pasted in from a word processor isn't recognized as the same character, which typically causes a syntax error until the quote marks are manually corrected to the straight version.