Text & writing

Sort & Deduplicate Lines

Remove duplicate lines and sort text while controlling case and blank lines.

Lines are processed locally.
Result
Berlin
london
New York
Singapore
Safe preset

Stores dates, times, numbers, checkboxes, and select choices. Text, CSV, JSON, QR content, and outputs are always excluded.

How to use it

How to use sort and deduplicate

Sort a line-based list and remove duplicate entries with case-sensitive or case-insensitive matching.

Deduplicate a pasted email-domain list and sort it alphabetically.

  1. Paste one item per line.
  2. Choose case-sensitive matching and natural numeric sorting when appropriate.
  3. Review the sorted unique list and choose Copy.

How it works

Lines are trimmed for comparison, the first spelling of each distinct value is retained, and the remaining values use locale-based sorting with optional natural numeric order.

Common uses

  • Deduplicate domains, IDs, or email addresses
  • Sort a product or country list
  • Remove repeated entries before a CSV import

What the free tool includes

  • Alphabetic or numeric sort
  • Case-aware deduplication

Common questions

How do I remove duplicate email addresses or IDs?

Paste one item per line. Leading and trailing whitespace and empty lines are removed before duplicates are compared. The output is also sorted; the first spelling encountered is kept when duplicate entries differ only in case.

Does case-sensitive matching keep ABC and abc separately?

Yes. Enable Case-sensitive duplicates to keep differently capitalized values as separate entries. With it off, ABC and abc share one comparison key and only the first occurrence remains.

What does natural numeric sorting do?

It sorts digit sequences as numbers within text, so item2 comes before item10. Turn it off for ordinary locale-based text ordering. Natural sorting does not convert identifiers to numbers or remove leading zeros.

For accounts, browser storage and access, read the Desklium FAQ.