Skip to content
FR – lire en français

Sort and Remove Duplicate Lines

Sort a list, remove duplicate or empty lines, trim and shuffle.

Loading the tool on your device…

Clean up a list of emails, names or log lines: remove duplicates (keeping the first), drop empty lines, trim spaces, and sort alphabetically, naturally (item 2 before item 10), by length, or at random.

Updated 7 December 2026 · runs in your browser

How to use it

  1. Paste your list, one item per line.
  2. Tick what to clean and choose an order.
  3. Copy or download the result.

Details

Sort and Remove Duplicate Lines details
DuplicatesThe first one is kept; optionally ignoring case
SortingA to Z by your language's rules, natural, length, reverse, shuffle
SizeHundreds of thousands of lines

Questions

Do my files leave my computer?
No. This tool runs inside your browser tab. The page makes no network request with your data, and you can check that yourself in your browser's developer tools.
Is the shuffle random enough for a prize draw?
It is fine for everyday use, but it isn't audited. For a draw with legal weight, use an official process.
  • Text Compare

    Compare two texts and see which lines were added or removed.

  • Word Counter

    Count words, characters, sentences and reading time.

  • Case Converter

    Switch text to UPPERCASE, Title Case, camelCase, snake_case and more.