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.

0Lines in
0Lines out
0Duplicates removed
0Empty lines removed
The first occurrence of each line is kept and later copies are removed. A to Z sorting is natural, so item2 comes before item10. With Ignore case, "Apple" and "apple" count as the same line.
Everything runs in your browser. Nothing you enter or upload is sent to a server.

How to use the duplicate line remover

  1. Paste your list with one item per line.
  2. Choose your options: ignore case, trim spaces, remove empty lines and a sort order.
  3. Press Remove duplicates.
  4. 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

  1. Paste your list.
  2. Remove duplicates.
  3. Pick a sort order.
  4. 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.