Trim spaces, remove blank and duplicate lines, sort lines, straighten quotes and strip HTML from messy text.
Blank lines
Sort lines
9 lines in, 7 lines out: removed 2 blank lines.
Missing a feature or found a bug in Text cleaner? Tell me on X (@_andrewtran) or by email.
How to use Text cleaner
1Paste the text to clean.
2Tick what to clean, and choose what happens to blank lines and the order of lines.
3Copy or download the cleaned text. The line under the options says what changed.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
How does it sort numbers?
As a person would: "item 2" comes before "item 10". Ignore case makes "Apple" and "apple" sort and count as the same.
What are invisible characters?
Zero-width spaces, byte order marks and soft hyphens, which often come along when text is copied from web pages or documents and break searches. Non-breaking spaces become ordinary ones.