Sort text lines alphabetically, numerically, or by length. Free, private, runs in your browser.
100% private — your files never leave your browser. All processing happens locally on your device.
Sorting is one of the most common text-cleanup tasks: ordering a list of names, organizing TODOs, preparing data for comparison, deduplicating entries, or just making output easier to scan. A dedicated line-sort tool saves you from pasting into Excel or opening a script — paste, pick an order, copy.
Alphabetical (lexicographic) sort compares strings character-by-character, which is why `file10.txt` comes before `file2.txt` — the digit `1` is less than `2`. Natural sort understands numbers and produces the human-expected order: `file1`, `file2`, `file10`. Use natural for filenames, version strings, and anything with embedded numbers; use alphabetical for strictly textual lists.
Beyond A-Z and Z-A, the tool offers numeric sort (treat lines as numbers, skip non-numeric), length sort (shortest to longest, or reverse), and random shuffle (good for unbiased sampling). Toggle trim-before-compare to ignore leading and trailing whitespace, and case-sensitive to use strict ASCII order where uppercase letters precede lowercase.
Yes. Sorting runs entirely in your browser using JavaScript's built-in sort. No text leaves your device. Paste proprietary lists, customer data, or API keys — the tool never sees anything except what's already in your browser's memory.
Alphabetical treats numbers as text, so `10` sorts before `2`. Natural sort understands numbers — `2`, `10`, `100` come out in human-expected order, which is what you usually want for filenames like `img1`, `img2`, `img10`.
By default yes. Enable 'Remove duplicates' to keep only one copy of each line after sorting.
Case-insensitive by default — `Apple`, `banana`, `Cherry` sort naturally. Toggle case-sensitive to use strict ASCII order, where uppercase letters come before lowercase.