List tools
Sort Lines
Put a pasted list into the exact order people or software expect.
Processed locally. Your input and output are never uploaded.
Tool overview
Sort Lines tool overview
Sort Lines offers language-aware alphabetical ordering, natural ordering for names with numbers, strict numeric modes, and length-based sorting. Duplicate removal can run before the sort.
Ordering filenames, values, and labels
- Order filenames with embedded numbers
- Rank numeric values
- Alphabetize keywords or categories
- Find the shortest or longest entries
Select the comparison that fits the list
- Paste one value per line.
- Choose the sort mode and direction.
- Set case sensitivity and optional deduplication.
- Review the order and copy or download it.
Natural, numeric, length, and locale ordering
- Natural sort places item2 before item10.
- Numeric sort parses each trimmed line as a number.
- Length modes count Unicode string units used by the browser.
- Case-insensitive ordering uses a locale-aware collator.
Put numbered names in human order
Before
item10 item2 item1
After
item1 item2 item10
Invalid numbers, ties, and locale differences
- Non-numeric lines sort after valid numbers in numeric modes.
- Equal values retain stable input order in modern browsers.
- Locale rules can vary slightly by browser language.
Questions
Sort Lines FAQ
What is natural sorting?
It compares number-like parts as numbers, so item2 comes before item10.
Can duplicates be removed while sorting?
Yes. Enable duplicate removal before the selected sort runs.