Line Tools
Sort, deduplicate, reverse and shuffle lines of text.
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.