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
- Paste your list, one item per line.
- Tick what to clean and choose an order.
- Copy or download the result.
Details
| Duplicates | The first one is kept; optionally ignoring case |
|---|---|
| Sorting | A to Z by your language's rules, natural, length, reverse, shuffle |
| Size | Hundreds 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.
Related tools
- 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.