Sort Lines
Sort lines alphabetically, naturally, by length or by number — or reverse and shuffle them.
Loading tool…
How to use
- Paste text with one item per line.
- Choose a sort order such as A → Z or Natural.
- Optionally ignore case, trim spaces, drop empty lines or remove duplicates.
- Copy or download the sorted result.
How it works
Alphabetical sorting uses your browser’s language-aware collation, so accented letters sort sensibly. Natural order treats digits as numbers (“item 2” before “item 10”). Numeric order sorts by the first number found in each line; lines without a number go last. Shuffle uses the browser’s cryptographic random number generator for an unbiased order.
Limitations
- Collation can differ slightly between browsers and languages.
Privacy
Your text is processed entirely in this browser tab. Nothing is uploaded, logged or saved by this tool.
Local processing protects your data from being uploaded, but it cannot protect against a compromised device or malicious browser extensions.