# Line Sorter

> Sort lines alphabetically, numerically, by length or in reverse — with natural-order support.

To sort lines, paste your list above and choose an order: alphabetical, reverse alphabetical, by line length, or simply reversed. Natural order is on by default, so item2 sorts before item10 rather than after it.

**URL:** https://convertto.tech/t/line-sorter
**Category:** Text Tools (https://convertto.tech/c/text-tools)
**Privacy:** Runs entirely in the browser; no upload
**Cost:** Free, no sign-up
**Last updated:** 2026-08-01

## Key facts

- **Privacy:** Runs entirely in your browser — nothing is uploaded
- **Cost:** Free, unlimited, no sign-up

## How to use

1. Enter or paste your lines.
2. Choose the sort.
3. Turn "Natural / numeric order" on or off as needed.
4. Turn "Case sensitive" on or off as needed.
5. The result appears immediately — copy or download it.

## FAQ

### Why does my numeric sort put 10 before 2?

Because a plain alphabetical sort compares character by character, and "1" comes before "2". Numeric sorting reads the digits as a number instead, which is why it needs to be selected explicitly.

### What is a natural sort?

One that reads embedded numbers as numbers, so file2 comes before file10. It is what a person expects and what most operating systems now do, but it is not what a plain string comparison gives you.

## Related tools

- [Remove Duplicate Lines](https://convertto.tech/t/remove-duplicate-lines): Delete repeated lines from a list, keeping the first occurrence of each unique line.
- [Add Line Numbers](https://convertto.tech/t/add-line-numbers): Prefix every line with a sequential number, with a custom start, separator and zero padding.
- [Columns to Lines Converter](https://convertto.tech/t/columns-to-lines): Switch between a delimited single line and one item per line, in either direction.
- [List Randomizer & Shuffler](https://convertto.tech/t/list-randomizer): Shuffle a list into random order — for draws, pairings, running orders and sampling.
- [Remove Line Breaks](https://convertto.tech/t/remove-line-breaks): Turn multi-line text into a single line, joining with a space, comma or custom separator.
- [ASCII Art Text Generator](https://convertto.tech/t/ascii-art-generator): Turn words into large ASCII banner text for terminals, READMEs and code comments.
- [Case Converter](https://convertto.tech/t/case-converter): Convert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case and more.
- [Email, URL & Number Extractor](https://convertto.tech/t/data-extractor): Pull emails, URLs, IP addresses, phone numbers or hashtags out of any text.
- [List Comparison & Set Operations](https://convertto.tech/t/list-comparison): Find items in both lists, in one only, or combined — union, intersection and difference.
- [Text Shuffler](https://convertto.tech/t/text-shuffler): Randomly reorder lines, words, sentences or characters, with a seed for repeatable results.
