You can sort alphabetically ascending or descending, by line length (shortest or longest first), numerically, or randomly shuffle the lines.
Your everyday toolkit
Text ToolsSort Lines
Sort lines of text alphabetically, numerically, by length, or in reverse. Also shuffle lines randomly.
Sort by
Using Sort Lines well
Reorder a list alphabetically, numerically or by line length for a quick cleanup task.
Example to try
Try lines 2, 10 and 1, then compare text sorting with numeric sorting. Choose the result that matches how your list will be used.
What to check before relying on the result
Sorting changes source order. Numeric interpretation and text collation may differ from spreadsheets or database locale rules. Keep related records together outside this line-based tool.
How to use Sort Lines
View largerReal workspace previewA preview of the actual tool workspace
YOU’RE EXPLORING
Paste your lines
A few steps.
A whole new result.
Frequently Asked Questions
The useful details, before you get started.
Alphabetical sorting uses locale-aware comparison which is generally case-insensitive for standard Latin characters. The trim whitespace option removes leading and trailing spaces before sorting.
Choose any question to see the details.
