Text Cleaner
Clean up text that came out of somewhere else. Copying from Word brings curly quotes that break code and CSV files; copying from a PDF brings a line break at the end of every wrapped line; copying from a web page brings HTML and runs of non-breaking spaces. Each of those is a separate switch here, so you fix only what is actually wrong.
Curly quotes pasted from Word often break code and CSV files.
Fixes text copied from a PDF where every line wrapped separately.
Nothing is uploaded — this tool runs inside your browser, so your files never leave your device.
Why use this tool
- Strips HTML tags, repeated spaces and stray leading or trailing spaces
- Converts curly quotes, em dashes and ellipses to plain ASCII
- Rejoins PDF text that broke at the end of every line, keeping paragraphs intact
- Optionally removes every non-ASCII character
How it works
- 1Paste your messy text into the box above.
- 2Switch on only the problems you actually have.
- 3Copy the cleaned text, or download it as a .txt file.
Text Cleaner — frequently asked questions
A PDF stores each visual line separately, so copying brings a real line break where the text merely wrapped. Turn on 'Join lines into one paragraph' — blank lines are preserved, so your paragraphs survive.
More text tools
Looking for something else? Browse all text tools
Explore the other tools
Same deal everywhere on the site — free, no sign-up, and no watermark on anything you download.
Or see every tool on one page.