About the Text Cleaner tool
The Text Cleaner tidies up messy text. It can remove extra spaces, take out repeated lines, remove empty lines, sort the lines from A to Z, and trim the spaces at the start and end of every line. It is useful for lists copied from the web, notes pasted from a chat, or any text that has come out with gaps and repeats. The text stays in your browser, and you can copy or download the cleaned result.
What it does
When you press one of the buttons, the tool changes the text in the box at once. Remove extra spaces turns runs of spaces and tabs into one space. Remove repeated lines keeps the first copy of each line and takes out the rest. Remove empty lines takes out lines with nothing on them. Sort lines A to Z puts the lines in order. Trim every line takes the spaces off the start and end of each line. Do everything runs the space, trim, repeat and empty line steps together.
How to use it
- Open Text Cleaner and paste your messy text into the box.
- Press the button for the step you want, or Do everything for all of them.
- Read the cleaned text in the same box.
- Press another button if you want one more step, like sorting.
- Press Copy result to copy it, or Download .txt to save it.
Example
A woman copies a list of names from a chat, and the list has blank lines, double spaces and the same name three times. She pastes it into the Text Cleaner and presses Do everything. The extra spaces, blank lines and repeated names are gone. She then presses Sort lines A to Z, and the list is in order, ready to paste into her note.
What it cannot do
The tool tidies lines, but it does not understand the words. Remove repeated lines only takes out lines that match exactly, so a line with one different letter stays. It does not fix spelling, and it does not remove repeated words inside a line. Sorting is by line, not by word, and it follows the order of letters in the language of the browser.
Frequently asked questions
What does Do everything do?
It removes extra spaces, trims every line, takes out repeated lines and removes empty lines, all in one step. It does not sort the lines. Press the sort button after it if you also want the lines in order.
Will it remove a line that only looks the same?
Only lines that match exactly are removed. If a line has one extra space or a different letter, it stays, because the tool sees it as a different line. Try the extra spaces step first if the lines look the same but still stay.
Can it sort numbers as well as words?
Yes. Lines are sorted in letter order, and lines that start with a number usually come first. The order follows the letters in the language of your browser, so a line that starts with a number often comes before the letters.
Does the tool change the words?
No. It only changes spaces, blank lines, repeats and the order of lines. The words themselves stay as they are. If a word is spelled wrong, it stays wrong, because the tool does not check spelling.
Can I clean a whole document at once?
Yes, if you paste it in. Very long text may feel slow in some browsers, but the tool has no set limit on how much text you can paste. Paste the whole text at once, press the button, and copy the cleaned result back out.
All 24 tools on this site are free, with no sign-up and no uploads — your files never leave your device. See all tools · Privacy Policy · About.
