Sort lines alphabetically, by length, numerically, or shuffle them — instantly in your browser.
How is alphabetical sorting done?
Lines are compared using locale-aware comparison (via localeCompare), so accented characters and Unicode text sort naturally. By default it's case-insensitive — "Apple" and "apple" sort next to each other.
What is "Numeric" sort?
Natural number order: lines starting with numbers are sorted by their numeric value, so 1, 2, 10, 20 comes out correctly (not 1, 10, 2, 20 like a plain text sort would).
What does "Ignore A/An/The" do?
For sorting purposes, the leading articles "a", "an", and "the" are ignored. So The Apple sorts under "A" (as if it were "Apple"). The output keeps the full original line.
How does shuffle work?
Lines are randomized using a uniform Fisher-Yates shuffle. Click Reshuffle to get a fresh order. Shuffle uses crypto.getRandomValues if available for better randomness.
Does this tool preserve blank lines?
By default, empty lines are removed. Turn off "Remove empty lines" if you want to keep them (they'll still be sorted to the top/bottom depending on mode).
Is my text uploaded to a server?
No. Everything runs in your browser. Your text never leaves your device.
Everything is processed locally in your browser. Your text is not uploaded to our server.