Text Line Sorter
Sort lines alphabetically or by length, reverse them, and strip duplicates or blank lines — all at once, in your browser.
How to use the Text Line Sorter
- Paste your lines. One item per line is all the tool expects.
- Choose the order. Sort alphabetically, by length, or leave the order alone.
- Clean it up. Optionally strip duplicates, blank lines and stray whitespace.
Frequently asked questions
- Does sorting handle accented characters correctly?
- Yes. It uses locale-aware comparison, so é sorts next to e rather than after z, which is what naive sorting by character code does.
- Are numbers sorted as numbers or as text?
- Numerically, so 2 comes before 10. Plain alphabetical sorting would put 10 first because it compares character by character, which is rarely what anyone wants.
- How are duplicates decided?
- By exact match after any trimming you have enabled. Turn on case-insensitive matching to treat Apple and apple as the same line.
- Is my text uploaded anywhere?
- No. Everything is processed in your browser and nothing is transmitted or stored, so it is safe to paste internal lists.
Related tools
- Text Tools
Word & Character Counter
Count words, characters, sentences and paragraphs as you type. Includes reading time, and your text never leaves your browser.
- Text Tools
Case Converter
Convert text between upper case, lower case, title case, sentence case, camelCase, snake_case and kebab-case, all at once.
- Text Tools
Find and Replace
Replace text across a whole document in your browser. Plain search or regular expressions, with a live count of how many matches were changed.
- Text Tools
Lorem Ipsum Generator
Generate placeholder text in paragraphs, sentences or words. Classic lorem ipsum, ready to paste into a mockup or a layout.
- Text Tools
Slug Generator
Turn any title into a clean URL slug. Strips accents and punctuation, optionally drops stop words, and joins the rest with hyphens.
- Developer Tools
Base64 Encoder & Decoder
Encode text to Base64 and decode it back, right in your browser. Handles Unicode correctly and never sends your data anywhere.
Last updated