Text cleaner
Double spaces, empty lines, tabs: all gone.
- Instant
- Free
- Private (processed locally)
- No sign-up
From dirty text to clean text, by ticking boxes
Copy-pasting from a PDF, an email, Excel or a website always leaves traces: stray spaces, empty lines, tabs, exotic quotes. Instead of fixing by hand, tick the cleanups you want — the text repairs itself live.
-
Paste the dirty text
Whatever the source: PDF, web, word processor, terminal.
-
Tick the cleanups
Six independent operations, from space deduplication to line-break merging.
-
Copy the clean text
The before/after stats show what was removed.
The six cleanups
- Multiple spaces → one: also removes non-breaking spaces from web copies.
- Empty lines: eliminates stray paragraph breaks.
- Trimming: strips spaces at the start and end of every line.
- Tabs → spaces: for text coming from spreadsheets or code.
- Smart quotes → straight: before pasting into code or JSON.
- Line-break merging: rebuilds paragraphs broken by PDFs.
For PDF text, the winning order: “Merge line breaks” first, then “Multiple spaces” — breaks become spaces, which then get deduplicated.
Frequently asked questions
Why is text copied from a PDF so badly formatted?
PDF stores positions, not paragraphs: every visual line becomes a real line, and hyphenation plus alignment inject spaces and breaks. The “Merge line breaks” option rebuilds a continuous paragraph.
What does the smart-quotes option do?
It converts “ ” « » ‘ ’ into straight quotes " and '. Essential before pasting text into code, JSON or configuration files — curly quotes cause syntax errors there.
Are non-breaking spaces handled?
Yes: the multiple-spaces option also normalizes non-breaking spaces (common in website copies) into ordinary spaces before collapsing duplicates.
Can I choose which fixes to apply?
Each cleanup is an independent checkbox: enable only what you need, and the result updates instantly with the before/after character count.