📖 Text Cleaning & Paste Repair

What Pasted Text Actually Carries

When you copy text from PDFs, Word docs, or websites, it arrives with hidden Unicode baggage. Here is what is hiding in your clipboard—and how to clean it.

Key Takeaway

Pasted text is rarely pure ASCII. It carries em dashes, curly quotes, non-breaking spaces, zero-width characters, and artificial hard line breaks. A dedicated text cleaner normalizes these artifacts in one tap without corrupting URLs or numbers.

The Illusion of Plain Text

When you highlight a paragraph in Microsoft Word, a Google Doc, an Apple Pages document, a PDF, or a web browser and press Cmd+C or Ctrl+C, you assume you are copying a simple string of letters and numbers.

In reality, rich text editors and PDF rendering engines encode an invisible payload of specialized Unicode characters, typography conventions, and layout artifacts into your clipboard. When pasted into systems expecting clean ASCII—such as web CMSs, code editors, command terminals, database queries, and CSV spreadsheets—this hidden baggage causes unexpected bugs, layout shifts, and syntax errors.

The 6 Hidden Formatting Artifacts in Your Clipboard

Artifact Unicode Codepoint Where It Comes From Downstream Problem
Smart / Curly Quotes “ ” ‘ ’ (U+201CU+2019) Word processors, auto-formatting Breaks code compilers, SQL strings, JSON, and CSV parsers.
Em & En Dashes — – (U+2014, U+2013) AI outputs (ChatGPT), style autocorrect Incompatible with legacy ASCII databases, SMS encoding, and URL slugs.
Zero-Width Characters \u200B, \uFEFF, \u200C Rich web copy, tracking watermarks Breaks string equality ("user" !== "user\u200B") and ATS resume parsers.
Non-Breaking Spaces \u00A0, \u202F HTML entities ( ), Word wraps Breaks YAML indentation, splits spreadsheet formulas, causes layout overflow.
Hard Line Wraps \r\n, \n inserted mid-sentence PDF column rendering, terminal output Creates ragged, disjointed paragraphs that fail to reflow on mobile.
Trailing Whitespace Spaces/tabs at end of lines Copying blocks of code or tables Pollutes Git commit diffs, breaks database unique index matching.

Why Standard "Paste as Plain Text" Isn't Enough

Most operating systems offer a "Paste without Formatting" shortcut (Cmd+Shift+Option+V on macOS, Ctrl+Shift+V on Windows). While this shortcut strips visual HTML and CSS styling (like font size, bold weight, and color), it does not change the underlying Unicode characters.

If the source text contained a curly apostrophe (), an em dash (), or a zero-width space (\u200B), pasting without formatting preserves those characters identically. Only a dedicated text cleaner that performs character-level normalization can repair them.

The Clean Pasted Text Solution

Text Cleaner's signature Clean pasted text engine processes text through a comprehensive multi-pass repair pipeline:

  1. Invisible Character Removal: Strips zero-width spaces, byte order marks, and word joiners.
  2. Smart Punctuation Normalization: Converts em dashes to hyphens and straightens curly quotes.
  3. Whitespace Hygiene: Collapses multiple spaces and strips trailing end-of-line whitespace.
  4. Structure Preservation: Protects intentional indentation and paragraph breaks, collapsing only excessive 3+ blank line runs.
  5. Locale-Aware Safety: Respects non-English typography (such as German opening quotes and French guillemet spacing « »).

Try cleaning your pasted text in the live editor above, or read our breakdown of Why Text Tools Quietly Break Your Text to see how we protect decimals, URLs, and abbreviations.

Free On-Device Tool
Need to clean or format text in bulk?

Paste your draft into Text Cleaner to repair smart quotes, convert dashes, and strip invisible characters in one tap.

✨ Open Text Cleaner

Related Tools & Guides

Clean Pasted Text Remove Em Dash Straighten Quotes Remove Line Breaks Sentence Case All Case Converters Browse All Guides →

Clean text from any app with the Share Sheet.

Select text in Safari, Mail, or Notes and share it to Clean Text. The cleaned version is copied back to your clipboard with a summary of what was fixed.

  • Works inside Safari, Mail, Notes, Word, and Slack
  • Counts and audits damage: '2 em dashes, 3 invisible characters removed'
  • 100% on-device: zero network requests, zero telemetry, full privacy
  • Available on iPhone, iPad, and Mac
Free for iPhone, iPad & Mac · iOS 17+
Text Cleaner: Case Converter App Screenshot