Line Tools: Sort, Dedupe & Number Lines
Beta: this tool hasn't been fully reviewed yet. Double-check results before relying on them.
Results
Your input is too long to share as a link, so the page address no longer includes it.
Got a messy list of names, emails or keywords? Paste it in, tick what you need, and copy back a clean, sorted list without duplicates.
How to use it
- Paste your text, one item per line.
- Pick a sort order and tick the clean-up options.
- Copy the result.
Steps run in this order: trim, remove empty lines, remove duplicates, sort, reverse, number.
Example: the lines banana, apple, Banana with remove duplicates, ignore case and A → Z become apple, banana.
Questions and answers
Which copy of a duplicate is kept?
The first one. With ignore case, “Banana” after “banana” counts as a duplicate and is removed.
How does sorting by number work?
Lines are sorted by the first number they contain, so “item 2” comes before “item 10”. Lines without a number go last.
Link with pre-filled values
Add # and these parameters to the end of this page's address to open the tool with values already filled in.
| Parameter | What it sets |
|---|---|
text | Text, one item per line |
sort | none, az, za, length, numeric or shuffle |
dedupe | 1 to remove duplicate lines |
ignorecase | 1 to ignore case when finding duplicates |
trim | 1 to trim spaces (default 1) |
empty | 1 to remove empty lines (default 1) |
reverse | 1 to reverse the order |
number | 1 to number the lines |