Text Cleanup
Trim spaces, remove empty lines, and clear duplicate entries in seconds.
Runs in your browser. Nothing is uploaded.
Updated
How to use Text Cleanup
- Paste the text you want to clean.
- Choose whitespace, blank-line, and duplicate options.
- Copy or download the cleaned text.
Text Cleanup at a glance
Typical use: Clean a pasted list of tags before importing it into your own spreadsheet.
Processing happens in your browser. Deduplication is case-sensitive and keeps the first occurrence. Line endings become Unix-style line breaks.
When to use Text Cleanup
Text copied from spreadsheets, PDFs or web pages often arrives with stray spaces, empty lines and repeated entries. Paste it here to get one clean entry per line, ready to import elsewhere.
Processing happens in your browser, so your text is never uploaded.
Text Cleanup examples
- Tag lists: tidy a pasted list of tags before importing them into a store or blog.
- Email or ID lists: remove blank rows and duplicates exported from several sources.
- Windows line endings: text with CRLF line breaks comes out with plain Unix line breaks.
Prefer the terminal?
The same clean-up in a terminal trims each line, drops blank lines and removes duplicates:
sed 's/^[[:space:]]*//; s/[[:space:]]*$//' input.txt | grep -v '^$' | awk '!seen[$0]++'awk keeps the first copy of each line, just like this tool.
Frequently asked questions
Is my text uploaded?
No. The clean-up runs in your browser and nothing is sent to a server.
Which duplicate is kept?
The first occurrence is kept and later copies are removed. Matching is case-sensitive.
In what order do the options run?
Trimming runs first, then blank-line removal, then duplicate removal. You can switch each option off.
What happens to line endings?
Windows (CRLF) and old Mac (CR) line endings are converted to standard LF line breaks.