Related tools
- Character CounterGrapheme-accurate character, word, sentence, line, byte, and LLM token counts for any text.
- Invisible CharactersReveal zero-width characters, BOMs, non-breaking spaces, bidi controls, and stray line endings in pasted text.
- Morse Code TranslatorTranslate text to and from Morse code automatically, with a timing table for any words-per-minute speed and support for common prosigns.
- Figlet ASCII BannerRender text as an ASCII art banner in ten classic FIGlet fonts, with letter spacing and line width controls, ready to paste into a README.
- HTML to MarkdownTurn HTML and rich text pasted from Google Docs or Word into tidy Markdown.
- Mojibake FixerRepair garbled text like é and ’ back to the UTF-8 it was meant to be.
What it does
Sorts, deduplicates, reverses, or shuffles the lines of any text. Sorting supports plain A-Z/Z-A order, natural order (so item2 comes before item10), and sort-by-length. Deduplication keeps the first occurrence of each line and preserves original order and casing.
How to use it
Paste your text, pick an operation, and toggle case-insensitive, trim, or remove-empty-lines as needed. For shuffle, optionally set a seed to get the same shuffled order every time: leave it blank for a fresh random order on each run.
Why this one
Most line-sorting sites bury this behind ads or only offer plain alphabetical sort. This one runs entirely in your browser, adds natural sort and seeded shuffling that other tools skip, and never sends your text anywhere.
FAQ
- What is natural sort and why does it matter?
- Natural sort treats embedded numbers as numbers, not characters, so "item2" sorts before "item10" instead of after it, the opposite of what plain alphabetical sort produces.
- Does deduplicate care about uppercase and lowercase?
- Only if you enable case-insensitive. With it on, "Apple" and "apple" count as duplicates and only the first one you typed is kept, in its original casing.
- Can I get the same shuffle result twice?
- Yes, enter a seed value and the shuffle becomes deterministic for that seed. The same text and seed always produce the same order; different seeds produce different orders.
Keyboard shortcuts: press ? anywhere on this page to see them.