Text utility

Line Sorter

Sort one item per line using locale-aware alphabetic, natural, numeric, length, or random ordering, with duplicate, whitespace, empty-line, and Unicode controls.

Input list

Paste lines to sort

Local only

Ready.

Sorted output

Sort statistics

List summary

Total lines0
Blank lines0
Unique lines0
Duplicates removed0
Output lines0
Sort modeNatural

Before and after preview

#OriginalSorted

Popular line sorting tasks

Sort mode reference

ModeBehaviorBest for
NaturalLocale-aware text order with embedded numbers treated numericallyFiles, IDs, versions, item2 versus item10
AlphabeticLocale-aware text comparison without numeric groupingNames, keywords, tags, labels
NumericSorts by the first localized number, including decimals and exponentsScores, prices, numbered exports
LengthCounts Unicode grapheme clusters rather than UTF-16 unitsShort or long entries, emoji and accented text
RandomUses a Fisher-Yates shuffle with browser cryptographic randomnessRandomized lists, samples and prompts

Line sorter notes

Private local processingSorting, deduplication, preview, and download happen in your browser. Nothing is uploaded.
Natural orderingNatural mode places file2 before file10 and uses the selected locale for letters and accents.
Localized numeric modeNumeric mode reads the first number using the selected locale's decimal and grouping symbols. Lines without numbers remain after numeric lines.
Unicode-aware cleanupNFC matches canonically equivalent accents; NFKC also matches compatibility forms. Length mode counts visible graphemes.

FAQ

Does this tool upload my list?

No. Sorting and all related processing happen locally in your browser.

What is natural sorting?

Natural sorting treats embedded digits as numbers, so item2 appears before item10.

Can numeric mode read decimals and scientific notation?

Yes. It reads the first localized number on each line, including signed decimals and exponents such as 1e3.

How are emoji and accented characters handled?

Locale-aware comparison handles letters and accents, while length mode counts user-visible Unicode graphemes rather than code units.