Text Line Tools
Remove duplicate lines, sort or shuffle them, number them, and strip empty ones, all in one pass. Everything runs in your browser and nothing is uploaded.
How to use
- Type or paste your text into the box, one line per line. The result updates as you type, so there is no button to press.
- Turn on the operations you want: remove duplicate lines, remove empty lines, sort, shuffle, and number lines. Each enabled operation shows its own options, like ignoring letter case for dedupe or a pad width for numbering.
- Operations always run in the same order no matter when you switch them on: duplicates first, then empty lines, then sorting and shuffling, then numbering. Shuffle runs after sort, so leaving both on gives you a shuffled list.
- Copy the result from the output box. A line break at the end of your text is kept in the result as long as any lines remain.
Frequently asked questions
Is my text uploaded or stored anywhere?
No. Every operation runs in your browser tab. Nothing is uploaded, nothing is stored, and the page sets no cookies. Once the page has loaded, it keeps working offline. Ad slots on the page are served by third-party networks, which follow their own privacy policies.
What counts as a duplicate line?
Two lines are duplicates when they match character for character. Turn on ignore letter case and Tea, tea, and TEA all count as one line, with the first spelling kept. The first occurrence always wins, and lines that are not duplicates keep their original order.
How does numeric sort treat lines that are not numbers?
Lines that read as numbers, like 7, -2, or 3.14, sort by value, so 10 lands after 9 instead of before it. Lines that are not numbers, such as headings or notes, go after every number and keep the order you gave them. That holds for descending sorts too; only the numbers flip.
Does alphabetical sort care about capital letters?
It compares character codes, so capital letters come before lowercase ones and Zebra sorts before apple. Lines that compare equal keep their original order. The comparison never consults your system language settings, so the same list sorts the same way in every browser.
How does the shuffle work?
It uses the Fisher-Yates shuffle, where every line can land in any position and all orderings are equally likely. It runs after sorting, so if both are on you get a freshly shuffled list. The randomness comes from your browser's crypto generator and never leaves the page.
What happens to the line break at the end of my text?
It is remembered. If your text ends with a line break, the result ends with one too, as long as at least one line survives the operations. If an operation removes every line, the result is empty. Windows CRLF breaks are read as normal line breaks and the output uses standard Unix line endings.