Line Sorter & Deduplicator
Paste a list to sort it A to Z, remove duplicate and blank lines, trim whitespace, reverse, or shuffle. Everything runs in your browser, so your text never leaves your machine.
About the Line Sorter & Deduplicator
The Line Sorter & Deduplicator takes a list of lines and reorders, cleans, and de-duplicates it. Use it to alphabetize a list, remove repeated entries, strip blank lines, or shuffle the order. It fits log files, CSV columns, word lists, redirect maps, and any text where each line is one item. Everything runs in your browser, so your text is never uploaded.
How it works
- Paste your list into the input box, one item per line.
- Tick the options you want: case-insensitive sort, remove duplicates, trim each line, or remove blank lines.
- Click a sort button (A to Z, Z to A, Reverse, or Shuffle) to build the output.
- Read the line counts to see how many lines remain and how many duplicates were removed, then click Copy.
Features
- Sort A to Z or Z to A, with an optional case-insensitive mode.
- Remove duplicate lines, with counts showing how many were dropped.
- Trim whitespace from each line and remove blank lines.
- Reverse the current order or shuffle lines into random order.
- Line counts before and after, plus one-click copy of the result.
Frequently asked questions
Is my text uploaded anywhere?
No. All sorting, trimming, and de-duplication run in your browser with plain JavaScript. Nothing is sent to a server or stored.
What does case-insensitive sort do?
It compares lines without regard to letter case, so 'Apple' and 'apple' sort next to each other. With it off, uppercase letters sort before lowercase, matching standard character order.
How are duplicates detected?
Two lines count as duplicates when their text matches. If case-insensitive is on, the match ignores letter case, so 'WordPress' and 'wordpress' are treated as the same line. The first occurrence is kept.
What is the difference between trim and remove blank lines?
Trim removes leading and trailing spaces and tabs from each line. Remove blank lines drops any line that is empty after trimming. You can use either, both, or neither.
Is there a size limit?
The tool sets no fixed limit. Since the work happens in your browser, very large lists are limited only by your device's memory and may take longer to process.