Sort Lines Alphabetically
Sort any list A–Z or Z–A in one click.
Sorting lists by hand is slow and error-prone — this handles thousands of lines instantly.
How to use
- Paste your list, one item per line.
- Choose A→Z or Z→A, enable numeric sort for numbers.
- Copy the sorted result.
About this tool
Numeric sort orders 2 before 10 (alphabetical sort would put "10" first).
Everything runs locally in your browser.
How it works
Lines are sorted in standard lexicographic (dictionary) order: characters are compared left to right by their code values. In A–Z mode, "Apple" comes before "banana" — note that uppercase letters sort before lowercase in plain ASCII ordering.
Numbers sort as text, not as values: "10" comes before "9" because "1" is less than "9". For numeric lists, pad with leading zeros ("09", "10") so the text order matches the numeric order.
Worked examples
Alphabetize: Sort a jumbled list of 200 product names A–Z for a catalog page.
Reverse order: Z–A mode flips any sorted list — handy for date-stamped filenames, newest first.
Frequently asked questions
What is numeric sort for?
Plain alphabetical sort orders "10" before "2". Numeric sort compares actual numbers first.
Are empty lines kept?
Empty lines are dropped to keep the result clean.
Is my list uploaded?
No — 100% local processing.
More free tools
Word Counter
Count words, characters, sentences and reading time as you type.
Text Case Converter
Change text to UPPERCASE, lowercase, Title Case and more.
Lorem Ipsum Generator
Generate placeholder text for designs and mockups.
Remove Duplicate Lines
Delete repeated lines, keep the first occurrence.
URL Slug Generator
Turn titles into clean URL slugs.
Strip HTML Tags
Extract plain text from HTML code.