Sort Lines
Sort lines alphabetically, numerically, or by length.
Input lines
Sorted
About the Sort Lines
Sort text lines alphabetically, numerically, or by length, with ascending/descending order, natural sort for mixed numbers and text, case sensitivity control, and a shuffle mode for randomizing lines.
Examples
Unsorted list
banana
apple
cherryOutput
apple
banana
cherryKeyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
List Randomizer
Text & String
Shuffle a list of lines and optionally pick a random subset.
Email & URL Extractor
Text & String
Pull emails, links, domains and phone numbers out of any text.
Line Numbering Tool
Text & String
Add or remove line numbers from text with custom formatting.
Lines to String Converter
Text & String
Turn newline-separated lines into a quoted, comma-joined string.
List Comparator
Text & String
Compare two lists and see common, A-only and B-only items.
New Line Remover
Text & String
Remove line breaks and tabs, or swap them for any separator.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser