Text Cleaner
Clean up lists and messy text: remove duplicates and blank lines, sort, trim, strip HTML, and find and replace. Changes show as you tick options. Everything stays in your browser.
Clean up
Spaces & lines
Order
Add to each line
Find & replace
- Need UPPER, lower or Title Case? Use Convert Case
What you can do
- Remove duplicate lines from email lists, keywords or log files, keeping the first of each.
- Remove empty lines and trim stray spaces left over from copying out of a PDF or spreadsheet.
- Sort lines alphabetically, naturally (item 2 before item 10), by length, or reverse or shuffle them.
- Join lines into one comma-separated line, or split them back with find & replace (replace
,with\n). - Strip HTML tags, straighten curly quotes, and remove invisible zero-width characters that break code and searches.
- Find and replace plain text or regular expressions, with
$1for capture groups.
Questions
How do I remove duplicate lines?
Paste your text and tick Remove duplicate lines. The first copy of each line is kept, in its original place. Tick Ignore case to treat "Apple" and "apple" as the same line.
In what order are the options applied?
Top to bottom as listed: clean-up and find & replace first, then trimming and spaces, empty and duplicate lines, sorting, and finally joining lines or adding prefixes and numbers.
Is my text uploaded?
No. Everything happens in your browser.