Sort Lines Alphabetically
Sort text lines alphabetically (A-Z or Z-A) instantly.
How it works
Paste your list
Enter text with one item per line — blank lines are ignored.
Pick a direction
Choose A → Z or Z → A.
Sort and copy
Click Sort Lines, then copy the alphabetized result.
Common use cases
Alphabetizing a list
Sort names, references, or bibliography entries into order.
Organizing keyword lists
Sort SEO keyword or tag exports before scanning through them.
Prepping data for a diff
Sort two lists the same way to make comparing them line-by-line easier.
Cleaning spreadsheet exports
Sort a pasted column before pasting it back into a sheet.
Frequently asked questions
Is the sort case-sensitive?
It uses locale-aware comparison, so "apple" and "Apple" sort near each other rather than by strict character code.
What happens to blank lines?
They’re removed before sorting, so the result only contains non-empty lines.
Does it sort numbers numerically?
No — sorting is alphabetical, so "10" comes before "2". Format numbers with leading zeros if you need numeric order.
Is my data stored?
No. Sorting happens entirely in your browser.
Share this tool
Related Tools
URL Encoder/Decoder
Encode and decode URL strings
Reverse Text
Reverse text, words, or lines
Image Prompt Generator
Create prompts for AI image generation
Remove Line Breaks
Remove line breaks from text
AI Token Calculator
Estimate AI API token usage and cost across models
CSS Minifier
Minify CSS for better performance