How-to · Writing

How to clean up pasted text: extra spaces, blank lines and hidden characters

Case Converter2 min read

The short answer

Paste the text into Case Converter and click Clean all. It collapses repeated spaces, trims line edges, reduces runs of blank lines to one paragraph break, strips invisible characters and soft hyphens, and straightens curly quotes — then reports exactly what it removed. All local.

  1. 1

    Click the Case Converter icon to open the popup.

  2. 2

    Paste the messy text — from a web page, Word document or PDF.

  3. 3

    Click Clean all to strip extra spaces, blank lines, invisible characters and curly quotes.

  4. 4

    Read the change report to see exactly how many of each were removed.

  5. 5

    Click Copy result and paste the clean text back into your document.

Text copied out of web pages, Word documents and PDFs rarely arrives clean. It carries doubled spaces, stacks of blank lines, curly quotes that break code and config files, and — worst of all — characters you cannot see: zero-width spaces and soft hyphens that survive the clipboard and then quietly break search, string comparisons and scripts. Here is how to strip all of it in one click, and know exactly what was stripped.

Case Converter onboarding page: paste text, one click, done — with a list of what the extension never does
The extension's own promise: cleanup always tells you exactly what changed, and nothing is ever uploaded.

Paste the messy text and click Clean all

Open the Case Converter popup, paste the text, and click Clean all. One pass does five specific things: collapses runs of spaces and tabs into a single space, trims stray spaces from the start and end of every line, reduces runs of blank lines to a single paragraph break, removes zero-width characters and soft hyphens, and straightens curly quotes into plain straight ones.

Read the change report

Cleanup that happens silently is cleanup you cannot trust. After each pass, the tool reports exactly what it removed — how many extra spaces, blank lines, invisible characters and curly quotes. If there was nothing to do, it says the text was already clean rather than pretending to have worked. You always know how the output differs from what you pasted.

Know what it deliberately leaves alone

Cleanup never touches your words. Single line breaks are preserved, and paragraph structure survives — only extra blank lines are collapsed, so a hard-wrapped PDF paragraph keeps its line breaks rather than being silently rewrapped. There is no autocorrect and no rewriting. One deliberate opinion to know about: curly quotes become straight quotes, which is exactly right for code, config and markup — if your style guide wants typographic quotes in prose, let your editor re-curl them after pasting.

Why the invisible characters matter

A zero-width space pasted into a URL, a config value or a source file is nearly impossible to debug: the text looks identical, but string matching fails. Soft hyphens do the same to search. Stripping them with a reported count means you can prove the gremlin existed — and that it is gone.

Everything stays on your device

The extension is a pure popup with one permission: local storage, for preferences. No account, no tracking, no upload — safe for internal documents and unpublished drafts. Once the text is clean, the same popup can change its case or build a URL slug from it. Click Copy result and paste the clean text back where it belongs.

Cleanup you can verify

Spaces, blank lines, invisible characters and curly quotes — removed and itemized, fully local.

See Case Converter →