Text Cleaner
Paste text copied from a PDF, a web page or an email and remove extra spaces, empty lines, duplicate lines and the line breaks that chop up paragraphs. You choose which clean-ups to apply.
This tool runs entirely in your browser; what you enter is never sent to our servers.
How to use it
- Paste your text.
- Tick the clean-ups you want; the result updates as you go.
- Copy the clean text.
What each option does
Remove extra spaces turns runs of spaces into one and also clears tabs, non-breaking spaces and invisible zero-width characters. Trim spaces at line ends removes spaces at the start and end of every line. Remove line breaks is for text copied from a PDF: it turns lines broken mid-sentence back into flowing paragraphs. Paragraphs separated by a blank line are kept, and words split with a hyphen at a line end (“exam-” + “ple”) are joined again. Remove empty lines and remove duplicate lines are handy for lists; only the first copy of a repeated line stays.