SORT TEXT LINES
Sort a list alphabetically, numerically, or by length. Nothing leaves your browser.
In short
Sort a list of lines alphabetically, numerically, or by length, ascending or descending — with optional case-insensitive sort, duplicate removal, and trimming. Runs entirely in your browser.
How to sort text lines
- 1
Paste your list into the input box, one item per line.
- 2
Choose to sort A–Z, numerically, or by line length.
- 3
Pick ascending or descending order, and toggle case-sensitivity, dedup, or trimming.
- 4
Copy the sorted result.
Questions
- How does numeric sort handle non-numbers?
- Numeric sort reads each line as a number using its leading digits; lines that don't start with a valid number are pushed to the end of the list, after every line that does parse as a number.
- What does case-sensitive sorting change?
- With case-sensitivity off (the default), "Apple" and "apple" sort next to each other. With it on, uppercase letters sort before lowercase ones, matching plain string comparison — so "Zebra" would sort before "apple".
- Does it remove blank lines?
- Yes, when "Trim & drop blanks" is checked (on by default) — leading/trailing whitespace is trimmed from every line and empty lines are dropped before sorting.
- Is my text sent anywhere?
- No. Sorting happens entirely client-side in your browser — nothing is uploaded or stored.
Related tools
- Add Prefix to LinesAdd a prefix, suffix, or running number to every line of text.
- Remove Duplicate LinesStrip repeated lines from text, keeping the first or last occurrence.
- Remove Extra SpacesCollapse repeated spaces and tabs into one, with options to trim lines and drop empty ones.
- Remove Line BreaksJoin multi-line text into one block, replacing line breaks with a space or nothing.
- Text CleanerTrim lines, collapse spaces, strip HTML tags, punctuation, or numbers in one pass.
- Text Diff CheckerCompare two blocks of text line by line and see what was added, removed, or unchanged.
- Email ExtractorPull every email address out of pasted text, deduplicated and one per line.
- URL ExtractorPull every URL out of pasted text, deduplicated and one per line.
Updated