Sort Text Lines
Paste a list and sort its lines alphabetically, by length or in reverse, with optional de-duplication and trimming. The result updates live and nothing is uploaded.
How to sort lines
- Paste your list — one item per line.
- Pick a sort order, and turn on de-duplication, trimming or blank-line removal as needed.
- Copy the sorted result.
About sorting lines
Sorting lines is handy for tidying lists — names, emails, keywords, log entries or CSV columns — into alphabetical or length order. De-duplication removes repeated entries (keeping the first), which is the fastest way to clean a list that has accumulated copies.
Alphabetical sorting uses locale-aware comparison, and you can make it case-insensitive so “Apple” and “apple” sort together. Trimming and blank-line removal clean up stray whitespace at the same time. Everything is computed in your browser.
Frequently asked questions
Can it remove duplicate lines?
Yes. Turn on de-duplication and repeated lines are removed, keeping the first occurrence. Combine it with case-insensitive matching to treat differently-cased duplicates as the same.
What sort orders are available?
Alphabetical A–Z and Z–A, by line length (shortest or longest first), and simple reverse (flip the existing order without sorting).
Is sorting case-sensitive?
By default yes, but you can switch on case-insensitive comparison so uppercase and lowercase versions of a word sort and de-duplicate together.
Is my list uploaded?
No. Sorting happens entirely in your browser, so your list never leaves your device.