Sort Lines and Remove Duplicates

Paste a list of emails, keywords, file names or anything else with one item per line. Sort it, drop the duplicates and blank lines, and copy the clean list.

  • Free
  • Runs in your browser
  • Dedupe in one click
  • No sign-up
How it works

How It Works

Clean up a list in three steps.

01

Paste your list

One item per line, straight from a spreadsheet column, a text file or an email.

02

Choose order and options

Pick an order and decide whether to remove duplicates, trim spaces and drop empty lines.

03

Copy the result

The sorted list updates as you change options. Copy it when it looks right.

About

Sorting text lines, and the natural order trap

A plain alphabetical sort compares text character by character, so "file10" comes before "file2" because 1 is smaller than 2. Natural order reads the numbers as numbers and gives file1, file2, file10, which is usually what you want for file names, versions and numbered items. The alphabetical sorts here use your browser's language rules, so accented letters sort next to their base letter instead of after Z.

Keep original order with Remove duplicates ticked is the quickest way to dedupe a list without changing its sequence.

Duplicates removed, first kept

When a line appears more than once, the first occurrence stays and later copies are dropped.

Case-insensitive by default

"Apple" and "apple" count as the same line unless you tick Case-sensitive.

Trim spaces

Removes spaces at the start and end of each line, so "apple " and "apple" match.

Fair shuffle

Shuffle uses your browser's cryptographic random generator, so every order is equally likely.

Features

Why Use This Line Sorter

Faster than a spreadsheet for a quick list.

Seven orders

A to Z, Z to A, natural, by length, reversed, shuffled or unchanged.

Cleans as it sorts

Remove duplicates, empty lines and stray spaces in the same pass.

Shows what changed

A summary tells you how many lines went in, came out and were removed as duplicates.

Private

Email lists and customer names never leave your browser.

✓ No Registration✓ Free✓ Browser-based✓ Text Stays Local
FAQ

Frequently Asked Questions

Questions people ask about the Sort Lines tool.

Choose Keep original order and tick Remove duplicates. The list keeps its sequence and only later repeats are removed.