Skip to content
Your text never leaves your browser

Line Sorter & Duplicate Remover

Sort lines, remove duplicates, shuffle. List management for people with lists.

Input
Output

What this does

Paste lines, pick an action. Sort alphabetically (A to Z or Z to A), remove duplicate lines, or shuffle into random order.

Common use cases

Alphabetizing lists. Guest lists, glossaries, bibliographies, ingredient lists. Anything where alphabetical order makes things findable.

Removing duplicates. You merged two lists and now half the entries appear twice. Deduplicate strips the repeats while preserving the order of first occurrence.

Randomizing order. Shuffle mode randomizes your lines. Good for drawing names from a hat, randomizing quiz questions, or deciding who presents first.

Things to know

Sorting uses dictionary order, so "apple" comes before "Banana" even though raw Unicode order would put capitals first. Lines that differ only in case sit together, lowercase first: "banana", then "Banana".

Deduplication compares lines exactly. "hello " (with a trailing space) and "hello" are different lines. If your duplicates aren't getting caught, invisible whitespace is usually the culprit.

Privacy

All sorting and deduplication happens in your browser. Your lists, your names, your data. None of it goes anywhere.

Questions

How do I remove duplicate lines?

Paste your list and pick Deduplicate, or Dedup (ignore case) if Apple and apple should count as one. It keeps the first time each line appears and drops the rest, so the order you had survives. Great for cleaning up two lists you merged.

How do I sort lines alphabetically?

Pick Sort A to Z, or Z to A. It sorts in dictionary order, so apple lands before Banana no matter how the capitals fall. Lines that differ only in case sit together, lowercase first.

Can I randomize or shuffle a list?

Yes. Shuffle mode throws your lines into random order, which is handy for drawing names, randomizing quiz questions, or picking who goes first. Run it again for a fresh shuffle.

Why aren't my duplicates being removed?

Almost always invisible whitespace. 'hello' and 'hello ' with a trailing space are different lines as far as the tool is concerned. Trim the stray spaces and the duplicates collapse.