Text Cleaner
Remove extra spaces, empty lines, line breaks, duplicates and HTML from pasted text.
This text was copied from a PDF and the lines are broken in the middle of sentences. It also has "smart quotes" and extra spaces.
How to use Text Cleaner
Paste messy text.
Tick the clean-up options you need.
Copy the clean text.
When to use Text Cleaner
- Text copied from a PDF has a line break in the middle of every sentence.
- A list pasted from a spreadsheet has duplicate rows and extra spaces.
- You copied content from a website and want plain text without HTML tags.
Tips for best results
- Use ‘Join broken lines’ for PDF text, and keep ‘Remove empty lines’ off if you want paragraphs to stay separate.
- Remove duplicates to tidy email lists, keywords or names.
- Clean text before counting words or comparing versions for more accurate results.
Related workflows
PDF to Clean Text
PDF → Clean .txtCopy text out of a PDF without broken lines.
Clean Pasted Text
Text → Clean textFix messy text copied from websites and emails.
Fix Text Copied from PDF
Text → Paragraph textJoin lines broken by PDF copy-paste.
Headline Formatter
Text → Title Case textTurn rough titles into clean Title Case headlines.
Frequently asked questions
Can it fix text copied from a PDF?
Yes. Use ‘Join broken lines’ to merge lines that were split mid-sentence.
About this tool
Text copied from PDFs, emails and websites is full of broken lines and stray spaces. Pick what to clean and get tidy text instantly.
Every option is applied in your browser in a fixed order, so you can tick several at once and get predictable results. The original text is not changed until you copy the cleaned version.
Text Cleaner runs entirely in your web browser. Your data are processed on your own device and are never uploaded to our servers, which makes it safe for personal and business files.