Text Cleaner
Clean up your text by removing whitespace and normalizing formatting.
Input Text
Cleaned Output
How to use the text cleaner
Text copied from PDFs, emails and web pages often arrives with stray spaces, tabs and empty lines. This tool cleans it in one click.
Paste the text, press Clean Text and copy the result.
- Paste your text into the Input Text box.
- Press Clean Text.
- Check the result in the Cleaned Output box. Statistics show the character counts before and after.
- Press Copy Result, or Clear All to empty both boxes.
Good to know
- Runs of spaces and tabs become a single space, and each line is trimmed at both ends.
- Windows and old Mac line endings are normalised, and empty lines are removed.
- Words, punctuation and capitalisation are not changed.
- Your text stays in your browser and is never uploaded.
Examples
- “ Dear Sam,” followed by a tab, two blank lines and “ Thanks for the notes. ” becomes two tidy lines: “Dear Sam,” and “Thanks for the notes.”
If something goes wrong
“Paste some text to clean.”
The input box is empty. Paste your text first.
Some double spaces between words are still there.
They are probably non-breaking spaces, common in text from web pages and word processors. Only ordinary spaces and tabs are merged.
Copy Result shows “Failed to copy to clipboard”.
Your browser blocked clipboard access. Select the text in Cleaned Output and copy it yourself.
Questions
Will it keep my paragraphs apart?
No. Blank lines are removed, so paragraphs end up on consecutive lines. Add the breaks back where you want them.
Does it fix typos or spelling?
No. It only changes whitespace.
Does it handle tabs in tables?
Tabs are collapsed to single spaces, so tab-separated columns will no longer line up.
Does it join lines that were broken in the middle of a sentence?
No. Every line break that has text on both sides is kept. To join lines, use find and replace with a line break in the Find box and a space as the replacement.
Next steps: Remove duplicate lines · Sort lines · Word counter
