Text and writing
Text cleaner: remove duplicates, spaces and empty lines
Remove duplicate lines, extra spaces and empty lines, strip HTML tags, and sort lists A–Z. Clean up pasted text and lists in one step.
- Free
- No signup
- Nothing stored
Cleaned text
Paste text or a list. The cleaned version appears here.
Why use it
Text copied from spreadsheets, emails, PDFs and web pages often arrives with doubled spaces, blank lines, stray HTML and repeated entries. Cleaning it by hand is tedious.
Tick the clean-ups you want and copy the result. It is handy for email lists, keyword lists, product codes and any list you need to de-duplicate.
How to use it
- Paste your text or list.
- Choose the clean-ups: remove duplicates, trim spaces, remove empty lines, strip HTML, or sort.
- Copy the cleaned text. The counter shows how many lines were removed.
How it works and its limits
- Duplicates are exact matches after the other clean-ups, keeping the first occurrence.
- Sorting ignores case and orders numbers naturally (item 2 before item 10).
- Stripping HTML removes tags but keeps their text.
- Everything runs in your browser.
Questions
How do I remove duplicate lines from a list?
Paste the list, keep “Remove duplicate lines” ticked, and copy the result. The first copy of each line is kept in its original position.
Does it change the text inside lines?
Only if you choose to: collapsing spaces turns runs of spaces into one, and trimming removes spaces at the start and end of each line.
Can I sort a list alphabetically?
Yes. Choose ascending or descending order and the cleaned lines are sorted A to Z or Z to A. Numbers inside lines are compared naturally, so item 2 comes before item 10.