ClearPaste · Text Tools
Sort Lines
Last updated: August 28, 2026
Paste a list, pick an order: A-Z, Z-A, shortest first or longest first.
How it works
Sorting is case-insensitive by default, so "apple" and "Apple" land together instead of splitting across the list. Blank lines sort to the top — remove them first if you want a clean block.
Use cases
Alphabetizing name lists, tag lists, bibliography entries. Finding near-duplicates by sorting (identical lines become neighbors — then dedupe). Ordering CSS properties or import statements.
Related tools
Word & Character Counter Case Converter Remove Duplicate Lines
Frequently asked questions
Is the sort case-sensitive?
No — comparison ignores case, which is almost always what you want for lists.
Are numbers sorted numerically?
No — "10" sorts before "9" alphabetically. ponytail: numeric sort is one flag away if you need it.
Is my list uploaded?
No. Sorting runs entirely in your browser.