Text Cleaner
Strip extra spaces, blank lines, line breaks, smart quotes and unwanted characters.
Processing: This tool runs entirely in your browser. Your input and any file you open stay on your device — nothing is uploaded to a server.
How to use the text cleaner
- Paste the messy text.
- Tick the cleaning steps you want.
- Copy the cleaned result.
About this tool
Text copied out of a PDF or an email arrives broken: a line break at the end of every line, double spaces, and invisible characters that survive a paste. Each fix is a separate switch here, so you apply only what you need.
Straightening quotes is the one worth knowing about. Word processors substitute curly quotes, en dashes and ellipses that look identical at a glance but break code, CSV files and older systems. Turning them back into plain ASCII solves a class of bug that is otherwise very hard to see.
Common uses
- Fixing text copied out of a PDF.
- Joining a hard-wrapped paragraph back into one line.
- Removing curly quotes before pasting into code.
Frequently asked questions
- Why does text from a PDF break at every line?
- PDFs store text positioned line by line, so copying inserts a break at the end of each visual line. 'Join all lines into one' undoes it.
- What are smart quotes and why remove them?
- Curly quotes and long dashes inserted by word processors. They look the same but are different characters, and they break code, CSV parsing and older systems.
Related tools
Sort Lines
Sort lines alphabetically, numerically, by length, in reverse or shuffled.
Find and Replace
Replace text across a whole document, with whole-word, case and regex options.
Word Counter
Count words, characters, sentences, paragraphs and estimated reading time as you type.
Text Case Converter
Convert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case and kebab-case.