Sort Lines Alphabetically
A preset of Remove Duplicate Lines
Sort any list into alphabetical order, with duplicate removal available in the same pass. Sorting is natural-order aware, so item2 comes before item10 rather than after it.
- Files never leave your device
- Free, no signup
- No watermarks
- Works offline once loaded
How to remove duplicate lines
- 1
Paste your list
One item per line — emails, URLs, keywords, anything.
- 2
Choose your options
Sort, trim, ignore case, or keep only the lines that appear more than once.
- 3
Copy the result
The count of removed lines is shown so you know what changed.
Why natural-order sorting matters for lists containing numbers
A plain alphabetical sort compares text character by character, which produces a distinctly unhelpful result for any list containing numbered items: "item10" sorts before "item2" under strict character comparison, because the character "1" comes before "2" regardless of what follows it — the sort has no concept that "10" as a whole number is larger than "2." Natural-order sorting compares embedded numeric sequences as actual numbers rather than as strings of digit characters, so item2 correctly precedes item10, matching how a person reading the list would expect it ordered.
This distinction is invisible on purely alphabetic lists — plain words sort identically either way — and becomes obvious the moment a list mixes text with numbers: file names with sequence numbers, version identifiers, or any label following a "prefix + number" pattern.
Sorting and deduplicating together versus separately
Doing both in the same pass is the efficient choice when a list needs both operations anyway, but they are logically independent settings and can be used alone — sorting without deduplication is useful for a list known to have no repeats that simply needs ordering, and deduplication without sorting is the right choice when the original sequence carries meaning worth keeping, such as a log or a chronologically assembled list where alphabetising would destroy information the order was encoding.
Frequently asked questions
Which duplicate is kept?
The first occurrence, so the original order is preserved for everything that remains. If you also turn on sorting, the surviving lines are then ordered alphabetically.
What does "ignore case" actually do?
It treats Apple, APPLE and apple as the same line and keeps whichever appeared first — with its original capitalisation intact. It changes what counts as a duplicate, not how the output is written.
Can I find the duplicates instead of removing them?
Yes. "Show duplicates only" inverts the operation and lists just the lines that appeared more than once — useful for auditing a list rather than cleaning it.
Is there a size limit?
Practically, a few hundred thousand lines. Everything runs in your browser, so the limit is your device memory rather than an upload cap — and your data never leaves the tab, which matters for customer lists.
You might also need
Case Converter
Convert text between every capitalisation style
Word Counter
Count words, sentences and reading time as you type
CSV to JSON
Convert spreadsheet exports into JSON
Character Counter
Count characters against platform limits
Diff Checker
Compare two texts and highlight every difference
Lorem Ipsum Generator
Placeholder text in paragraphs, sentences or words