Sort Lines
Sort lines alphabetically, reverse, or by length — in one click.
Paste a list to sort its lines instantly — alphabetically (A→Z or Z→A) or by length. Options let you ignore case and drop empty lines. Sorting uses natural order, so “item2” comes before “item10”.
Everything runs in your browser, so even sensitive lists stay private.
Private by design. Your text is processed entirely in your browser — it is never uploaded, logged, or stored on a server.
Sorting options
A→Z and Z→A sort alphabetically; “Shortest first” and “Longest first” sort by line length. Natural (numeric-aware) ordering means numbers inside text sort the way people expect — “file2” before “file10” rather than after it. “Ignore case” treats “Apple” and “apple” as equal so capitalization doesn't scatter related lines.
When to use it
Alphabetizing names, tidying keyword or URL lists, ordering CSV rows, or organizing any list before pasting it elsewhere. Because the work happens locally, you can sort confidential lists without uploading them. To remove repeats first, use Remove Duplicate Lines.
Examples
| Example | Input | Result |
|---|---|---|
| A → Z | banana
apple
cherry | apple banana cherry |
| Natural order | item10
item2 | item2 item10 |
| By length | ccc
a
bb | a bb ccc |
Frequently asked questions
Does it sort numbers correctly?
Yes. Sorting is numeric-aware, so “item2” comes before “item10” rather than being ordered purely by character.
Can I ignore capitalization?
Yes. Enable “Ignore case” to treat “Apple” and “apple” as equal when sorting.
Will it remove duplicates?
No — sorting keeps every line. Use the Remove Duplicate Lines tool first if you also want to de-duplicate.
Is my list uploaded?
No. Sorting runs entirely in your browser; your text is never sent to a server.