Remove Duplicate Lines and Sort Lines Online
Use this tool to remove duplicate lines and sort lines in any list. Paste emails, keywords or names, drop repeats, sort A to Z, Z to A or by number, ignore case and trim blank lines. Copy the clean list in one click.
Remove Duplicate Lines
Dedupe and sort lists of text.
How to use the duplicate line remover
- Paste your list with one item per line.
- Choose your options: ignore case, trim spaces, remove empty lines and a sort order.
- Press Remove duplicates.
- Copy or download the clean list.
How it works
Each line is optionally trimmed and lower-cased for comparison, then checked against the lines already seen; repeats are dropped, so the first copy of every line stays in its original position. Sorting uses the browser’s Intl.Collator with numeric ordering, which sorts words the way people expect, including numbers inside text.
Example
The list b, a, b, A, (empty), c with Ignore case and A to Z sorting becomes a, b, c: 2 duplicates and 1 empty line removed.
Frequently asked questions
How do I remove duplicates from an Excel column quickly?
Copy the column, paste it here, remove duplicates, and paste the result back into Excel.
Which copy of a duplicate is kept?
The first one. Later copies are removed.
Can I sort without removing duplicates?
Yes. Untick Remove duplicates and pick a sort order.
Is there a size limit?
No fixed limit; lists with hundreds of thousands of lines work on most computers.
See also: Word Counter, Case Converter.
Clean up a list
How to use it
- Paste your list.
- Remove duplicates.
- Pick a sort order.
- Copy the result.
More questions
Can it ignore case?
Yes. It can ignore case so "Apple" and "apple" count as the same.
Can I shuffle lines?
Yes. Pick random order to shuffle your lines.
Is my list uploaded?
No. Everything stays in your browser on your device.
Related tools: Remove Extra Spaces, Find and Replace Text Online, Email Extractor.