Sort Lines Alphabetically
Paste any list and sort it alphabetically, numerically, or by line length — with options for case sensitivity and whitespace.
Runs entirely in your browser — your text is never uploaded
Result · 0 lines
How to use the sort lines alphabetically
- Paste your lines into the input.
- Choose a sort order.
- Toggle ignore case, trim lines or remove blanks as needed.
- Copy the sorted result.
Examples
Input
banana / apple / cherry
Result
apple, banana, cherry
Input
10 / 2 / 33 (numeric)
Result
2, 10, 33
About the sort lines alphabetically
Alphabetical sorting compares text character by character, which means “10” sorts before “2”. Numeric sorting reads the leading number in each line instead, which is what you usually want for measurements, prices and IDs.
Sorting by length is a quick way to spot outliers in a list — an unusually long line is often a formatting mistake.
Frequently asked questions
Does sorting remove duplicates?
No. Use the remove duplicate lines tool first if you want a unique, sorted list.
How are non-numeric lines handled in numeric sort?
Lines without a number are grouped at the end in their original order.
Related tools
Remove Duplicate Lines
Deduplicate a list of lines with full control over matching.
Open toolCase Converter
Convert text to upper, lower, title, sentence, camel, snake or kebab case.
Open toolWord Counter
Count words, characters, sentences, paragraphs and reading time.
Open toolSentence Counter
Count sentences and see average sentence length.
Open tool