belun.app

Sort Text Lines Online — Alphabetical, Length, Numeric

Lines in
0
Lines out
0
Duplicates removed
0

Paste a list and sort it instantly — A to Z, Z to A, shortest to longest, or by the numbers inside each line. Duplicate removal, trimming, and blank-line cleanup are one checkbox each. Everything runs in your browser, so even a 50,000-line list never leaves your machine.

Line sorter modes compared with Unix sort and uniq

Task Command line This tool
Drop duplicates uniq merges only repeats on adjacent lines; sort -u catches them all Scans the whole list, keeps the first copy of each line
Alphabetical order LC_ALL=C sort compares raw bytes: capitals first, accented letters after Z, Zebra above apple Locale-aware: upper and lower case interleave, Ё sits beside Е
Numbered items Plain text order gives item 10, item 2, item 9 Numeric mode compares the first number by value

What sorting lines by length is good for

Length order pushes truncated entries to the top and oversized ones to the bottom. That makes it quick to find the single overlong URL in a redirect map, or an ID that breaks the expected format. Lines of equal length fall back to alphabetical order, so the result is the same on every run. The sorter moves whole lines and leaves the characters inside them alone. To flip the text within a line, use the Text Reverser.

Frequently asked questions

How does numeric sorting differ from alphabetical?
Alphabetical sorting compares text character by character, so "10" lands before "9" because "1" comes before "9". Numeric sorting reads the first number in each line and compares its value, so 9 correctly comes before 10. Lines with no number at all are pushed to the bottom.
Does it remove duplicates case-sensitively?
Not by default: "Apple" and "apple" count as the same line and only the first is kept. Tick Case sensitive if you want them treated as two different entries.
Does it sort non-English text correctly?
Yes. Sorting uses the browser's locale-aware comparison, so Cyrillic, accented Latin and other alphabets sort by alphabet, not by raw code. The browser language decides the edge cases: Å comes right after A in English but after Z in Swedish.

Related tools