godz.online
Back to tools

Developer tools

Line tools

Sort, dedupe, reverse, shuffle, and clean a list of lines. Each action transforms the text in place, so they chain. Everything runs in your browser - nothing is uploaded.

Sort case

How it works

Paste a list and reshape it line by line. Each button acts on the text in place, so you can chain operations: sort it, then remove duplicates, then shuffle. Sort A to Z or Z to A orders the lines alphabetically, with an option to ignore letter case so that Apple and apple sit together. Dedupe removes repeated lines and keeps the first occurrence, reverse flips the order top to bottom, and shuffle randomises it using the secure Web Crypto generator for a genuinely unbiased order.

Two cleanup helpers round it out: remove empty lines strips out blank rows, and trim lines removes leading and trailing whitespace from each line. Live counters show the total number of lines and how many of them are unique, so you can see at a glance how many duplicates a list contains. Everything runs in your browser, so nothing you paste is uploaded, and you can copy the result or clear it with one click.

Example. Paste a list of names with some duplicates and blank rows. Click Remove empty, then Dedupe, then Sort A to Z, and you get a clean alphabetical list. The counters might drop from 40 lines to 31 unique, telling you nine were repeats.

FAQ

Do the operations combine?

Yes. Every button transforms the current contents of the box, so the operations stack in the order you click them. Dedupe then Sort gives a sorted unique list; Sort then Shuffle just re-randomises the sorted list. There is no separate input and output, so what you see is always the latest result, ready for the next step.

How does dedupe decide which line to keep?

Dedupe keeps the first occurrence of each line and drops any later exact duplicates, preserving the order of the lines that remain. Comparison is exact, so two lines that differ only in trailing spaces count as different - run Trim lines first if you want those treated as the same.

Is the shuffle truly random?

It uses a Fisher-Yates shuffle driven by the Web Crypto getRandomValues generator, the same cryptographically secure source used for keys, rather than the predictable Math.random. That gives an unbiased ordering where every arrangement is equally likely, which matters for things like fair draws or random sampling.

Is my text sent anywhere?

No. All the sorting, deduping, and shuffling happen entirely in your browser as you click. Nothing you paste is uploaded, logged, or stored, so it is safe to use with private lists.