Line Sorter
Sort a list of lines alphabetically, by length, or numerically, with optional case-insensitivity and duplicate removal. Runs entirely in your browser.
🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.
Example shown - replace with your own list, one item per line.
How the line sorter works
- Paste a list, one item per line.
- Choose a sort mode - alphabetical, by length, or numeric - plus optional case-insensitivity and duplicate removal.
- The sorted result updates instantly and can be copied with one click.
FAQ
What does "Numeric" sorting do?
It extracts the first number found in each line (positive, negative, or decimal) and sorts by that value - useful for lists like "10 items", "2 items" that should sort by quantity, not alphabetically.
What happens to blank lines?
They are removed automatically before sorting, so your output never has stray empty lines mixed in.
How does "Remove duplicates" decide what counts as a duplicate?
Two lines are duplicates if they match exactly (or match ignoring case, if "Case-insensitive" is also checked) - only the first occurrence of each is kept.
Is my text uploaded anywhere?
No. Sorting happens entirely in your browser as you type - nothing is sent to a server.
How we compare
| Feature | Online Tool Store | Spreadsheet sort | Text editor sort plugin |
|---|---|---|---|
| Numeric extraction from mixed text | ✓ | Needs a helper column | Varies |
| Built-in duplicate removal | ✓ | Separate feature | Varies |
| No spreadsheet or plugin needed | ✓ | ✗ | ✗ |
For a quick sort of a plain text list without opening a spreadsheet, Line Sorter handles it in one paste.