Line Sorter & Deduplicator – Free Online Tool | Awesome Toolkit

Line Sorter & Deduplicator

Sort lines alphabetically, reverse, shuffle, or remove duplicates from any block of text.

By Marshkalk

How to use the Line Sorter

  1. Paste your list, one item per line, in the left panel.
  2. Choose an operation: sort, shuffle, remove duplicates, reverse, or trim each line.
  3. The result appears instantly on the right. Use Copy to copy it to your clipboard.

Available operations

  • Sort A → Z: alphabetical (lexicographic) sort. Use the case-insensitive option so "Apple" and "apple" are treated as equal.
  • Sort Z → A: reverse alphabetical sort.
  • Shuffle: randomizes the order of lines using a cryptographically random source.
  • Remove duplicates: keeps only the first occurrence of each unique line and discards the rest.
  • Reverse order: flips the entire list upside down.
  • Trim whitespace: removes leading and trailing spaces from each line (useful before de-duplicating).

Common use cases

  • Deduplicating email lists: paste a list of emails, remove duplicates, copy the clean list
  • Sorting keywords: alphabetize a list of SEO keywords or tags for a config file
  • Randomizing order: shuffle a list of names for a raffle or team assignment
  • Cleaning imports: sort and deduplicate CSS class lists, import statements, or dependency lists
  • Processing log lines: deduplicate repeated log entries or reverse log order (oldest first)

Tips

For best results when removing duplicates, run Trim whitespace first, this ensures " apple" and "apple" are recognized as the same line. Lexicographic sort treats numbers as strings, so "10" sorts before "2". For numeric sort, sort by a spreadsheet tool instead.