Sort & Dedupe Lines
Sort, deduplicate, and trim lines of text — instantly.
How to use
Paste your lines, then toggle the options you want — sort, remove duplicates, trim, drop blanks. The cleaned result updates live; click Copy to grab it.
About this tool
Clean up a list of lines: sort alphabetically, remove duplicate lines, trim surrounding whitespace, and drop blank lines — in any combination. Everything runs locally in your browser as you toggle options; nothing is uploaded.
What you can use Sort & Dedupe Lines for
- Remove duplicate entries from a list
- Alphabetize a list of names or terms
- Clean whitespace and blank lines from pasted data
- Deduplicate a list of emails or URLs
Frequently asked questions
Does removing duplicates keep order?
If sorting is off, the first occurrence of each line is kept in its original position. Turn on sorting to order the result alphabetically.
Is the matching case-sensitive?
By default yes. Toggle 'Ignore case' to treat lines that differ only in capitalization as duplicates and to sort case-insensitively.
Is my text uploaded?
No — all processing happens locally in your browser.