Sort lines online alphabetically, numerically or by length, reverse them or shuffle them. Free line sorter for lists, keywords and data. Nothing uploaded.
On this page
About this tool
Arrange a line-based list alphabetically, numerically, by length or in reversed order.
How to use Line Sorter
Paste one item per line in Lines to sort.
Choose a sort mode and the case, trimming, empty-line and duplicate options.
Copy Sorted lines after checking that the chosen mode fits the data.
Worked example
Sort 10, 2 and 1 as separate lines with Numeric 1 to 9 to get numeric rather than alphabetical order.
Can sorting change the meaning of my data?
Yes. Do not sort ordered instructions or rows whose sequence carries meaning unless you intend to change it.
What does Reverse order do?
It reverses the existing line sequence; it is different from choosing descending alphabetical order.
Line Sorter — Sort lines alphabetically, by length, reverse them or shuffle them randomly.
Explore Text Tools · More practical guides
Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.
Menu language English (USA) Español اردو
Accessibility Profiles Custom settings Vision support Reading support Reduced motion Motor support Focus support
Oversized widget
Screen Reader
Contrast +
Smart Contrast
Highlight Links
Bigger Text
Text Spacing
Pause Animations
Dyslexia Friendly
Cursor
Tooltips
Page Structure
Line Height
Text Align
Dictionary
Saturation
Read aloud assistance Uses browser speech voices to read page text or selected text. This is not a replacement for NVDA, VoiceOver or another full screen reader. Available voices and speech processing depend on your browser and device.
Read page Read selection Pause / resume Stop reading
Reset All Accessibility Settings Move / Hide Widget Widget positionBottom right Bottom left Hide widget for 1 hour Restore at any time with Ctrl+U (Option+U on Mac).
Accessibility statement and help