Sort lines alphabetically, numerically or by length, in either direction.
Names
Alphabetical order
Zoe
Adam
Maria
BenVersion numbers
Natural order, not text order
item10
item2
item1Quantities
Numeric sorting
12 apples
3 pears
45 plumsNames
Alphabetical order
Zoe
Adam
Maria
BenVersion numbers
Natural order, not text order
item10
item2
item1Quantities
Numeric sorting
12 apples
3 pears
45 plumsOne item per line. Blank lines are dropped and whitespace trimmed so a copied list works immediately.
Alphabetical, numeric, by length or random — ascending or descending, with case sensitivity optional.
Take the ordered list to the clipboard, or download it as a text file.
item2 sorts before item10, which is what people expect and what a plain character comparison gets wrong.
Lines with mixed text and numbers order by their numeric value, not by the first character.
Sorting happens in your browser, so a list of customers or internal items never leaves your machine.
Paste a list and put it in order. Sorting can be alphabetical, numeric, by line length, or randomised, ascending or descending, and case-sensitive or not. Alphabetical sorting is natural rather than naive, so item2 comes before item10 the way a person would file them. Numeric sorting reads the number out of each line, so "12 apples" and "3 pears" order correctly instead of being compared as text.
Keep going
Related pages in Text Tools, plus what others are using right now.
More text tools that pair well with this one.
Remove duplicate lines while keeping the original order, with statistics.
Convert text between twelve cases — upper, lower, title, camel, snake and more.
Pick a random winner from a list, or shuffle the whole list fairly.
Translate text to Morse code and back, with clear separators.
Replace text across a document, with optional regular expressions.
Turn a broken-up block of text into continuous paragraphs.
Create strong random passwords with full control over length and characters.
Format, validate and minify JSON, with errors that point to the exact line.
Work out any percentage — of a number, as a share, or as a change.
Convert between length, weight, temperature, volume, speed, data and more.
Find the mean, median, mode and range of a list of numbers, with the working shown.
See how savings grow with compounding, including regular contributions.
Sample and population standard deviation and variance, both shown, with the working.
Turn a logo into favicon.ico, the PNG sizes a site needs, and the HTML to declare them.
Check a downloaded file against its published checksum, without uploading anything.
Stamp text like DRAFT or CONFIDENTIAL across a PDF, in your browser.
Turn JSON into readable YAML, with quoting and multiline strings handled properly.
Escape text for HTML, or turn entities back into readable characters.