Sort lines A–Z, naturally or by length, remove duplicates and empty lines, shuffle or reverse.
Text Cleaner
Clean up text: remove duplicate and empty lines, trim spaces, collapse whitespace, sort lines, strip HTML and line breaks, add prefixes or suffixes.
Runs locally — nothing is uploadedInput
Cleaned
How to use Text Cleaner
- Paste your text.
- Toggle the clean-up operations you need.
- Copy the result.
FAQ
In which order are operations applied?
Top to bottom as listed, so trimming happens before de-duplication.
About the Text Cleaner
Fix text copied from PDFs, spreadsheets and emails in one click. For more control over sorting and duplicates use the Sort Lines & Remove Duplicates, replace patterns with Find and Replace Text and convert HTML to clean Markdown with HTML to Markdown.
Also useful: Text Diff Checker · Word Counter
Popular searches
People find Text Cleaner by searching for:
- remove duplicate lines
- remove empty lines
- sort lines alphabetically
- remove extra spaces
- text cleaner online