Sort Lines of Text (Alphabetical, Numeric, Length)
Text sorter arranges lines by the criterion you pick — alphabetical, numeric, length or reversed. It runs in your browser, so lists of names or IDs stay on your device.
Runs locally · files stay on device · works offline
How it works in 4 steps
- 1
Pick or drop
Select or drag files into the card — loaded directly into local memory.
- 2
Set options
Adjust target KB, format, dimensions or filters with instant feedback.
- 3
Process locally
Canvas, WebAssembly, or Web Crypto completes the job on your device.
- 4
Save result
Download directly; close the tab to clear everything from memory.
When to use this
| Scenario | Recommended | Why |
|---|---|---|
| A list of names needs alphabetising | Sort Lines | Case-insensitive mode avoids odd ordering |
| Numbers sort as 1, 10, 2 | Sort Lines | Numeric mode compares values, not strings |
| Finding the longest entries | Sort Lines | Sort by length instead of alphabet |
Privacy & Offline Guarantee
Ready to use with zero installation or login. Once loaded once, core dependencies cache locally so the tool works offline.
FAQ
Why does 10 come before 2 alphabetically?
String comparison goes character by character, and "1" sorts before "2". Numeric mode parses the whole value instead.
Can it remove duplicates while sorting?
Yes — dedupe can be combined with sorting in one pass.
Is my text uploaded?
No — sorting is local JavaScript.
Something failed, or you wish this tool also did something else? Tell me →
Related Tools
Ready to process your files privately?
Back to tool ↑