Text Cleaner
Clean up messy pasted text: collapse extra spaces, strip line breaks, trim lines, and remove clutter — all in your browser.
Clean up text copied out of PDFs, emails, and web pages: hidden non-printable characters stripped, line edges trimmed, repeated spaces collapsed, empty lines dropped, and — if you want — every line break removed into one flowing paragraph. Each cleanup step is a checkbox you control.
How to use Text Cleaner
- Paste the messy text.
- Tick the cleanups you want — trimming is on by default.
- Copy the cleaned result.
Who it is for
Anyone pasting PDF text into a document, cleaning scraped data before importing it, normalising copied email chains, and preparing subtitles or transcripts for further processing.
How it works
- Five independent steps run in a fixed order: strip non-printables, trim line edges, collapse space and tab runs, remove empty lines, then optionally join everything into a single paragraph.
- The pipeline is transparent — each checkbox maps to exactly one transformation, so you always know why a character disappeared.
- Output updates live, and one click copies the cleaned text.
What it cannot do
- It normalises whitespace and invisible characters; it does not fix spelling, reorder sentences, or de-hyphenate words broken across lines.
- Smart quotes and em dashes are kept as-is — they are visible characters, not clutter.
Sample input & output
Quarterly Revenue Report Total: $42,500
Quarterly Revenue Report Total: $42,500 — leading/trailing spaces trimmed, tabs & multi-spaces collapsed, extra blank lines normalized.
Frequently asked questions
Which hidden characters does it remove?
Control characters and zero-width spaces that you cannot see but word processors and importers choke on. Line feeds and tabs are preserved because later steps may need them.
Can I keep paragraph breaks but remove only line breaks inside paragraphs?
Yes — leave "Remove ALL line breaks" unticked and tick the empty-line removal; paragraphs survive, stray wrapping disappears.
Why does order matter?
Trimming before collapsing gives predictable spacing, and empty-line removal before joining prevents double spaces at joins. The fixed order is what makes the result reproducible.
Why does text copied from a two-column PDF break mid-sentence on every line?
PDF files store positioned glyph runs on a coordinate canvas rather than flowing paragraphs, so copying a narrow column inserts a hard newline (\n) at the visual right edge of every line. Enabling line-break unwrapping joins consecutive single-newline lines with a single space while preserving double-newline (\n\n) paragraph boundaries.
Does whitespace normalization strip non-breaking spaces (U+00A0) and zero-width characters?
Copy-pasting from web editors, Slack, or Word frequently smuggles in non-breaking spaces (U+00A0), zero-width spaces (U+200B), and soft hyphens (U+00AD) that break CSV parsers, regex matches, and code compilers. Text Cleaner normalizes horizontal whitespace runs into standard ASCII spaces (U+0020) while keeping printable Unicode scripts intact.
When should I collapse all blank lines versus keeping single paragraph breaks?
Keep single blank lines when cleaning prose articles, legal clauses, or emails so paragraph structure survives into Word, Markdown, or AI summarizers. Collapse all empty lines only when preparing line-delimited data — such as mailing lists, domain allowlists, or CSV rows — where a blank row would parse as a null record.
Does cleaning large transcripts upload any text from my browser?
No. Every string pass executes synchronously in JavaScript memory inside your current browser tab, handling tens of thousands of words in milliseconds without network requests, server logs, or clipboard persistence.