0 input lines
0 removed
0 output lines

Your lines (one item per line)

Result

Paste a list above to sort, dedupe, or shuffle it.

A tool for tidying up lines of text. Paste a list with one item per line and it instantly shows the result using the sort method you pick. Sorting options include alphabetical A→Z and Z→A, numeric ascending/descending (treating each line as a number), by length (shortest or longest first), reverse (flip the existing order), shuffle (random order), and none (when you only want to dedupe or trim). You can freely combine the checkbox options: remove duplicate lines, ignore case (for both sorting and dedupe), trim each line (strip leading/trailing whitespace), and drop blank lines. It's handy for everyday tasks — removing duplicates from a list pulled out of a CSV or log, putting a word list in alphabetical order, shuffling lines for a raffle or sampling, or re-ordering numbered rows numerically. Sorting uses the browser's built-in Intl.Collator for stable locale-aware comparison, so non-ASCII text sorts consistently. In numeric mode, lines that aren't numbers are grouped at the end. Shuffle uses the Fisher–Yates algorithm for an unbiased random order. Because your input may contain internal or personal data, this tool does everything entirely inside your browser (JavaScript) and never uploads, stores, or sends your input or results to a server. Your chosen sort and options are remembered in your browser. Grab the result with the "Copy" button or save it with "Download .txt".

How to use

  1. Paste your list into the input box, one item per line (use "Sample" to try an example).
  2. Pick a method under "Sort" (A→Z, numeric, by length, reverse, shuffle, etc.) and tick options like remove duplicates, trim, or drop blank lines as needed.
  3. The result appears instantly. Use "Copy" or "Download .txt" to grab it. Nothing you type is sent anywhere.

FAQ

Is the text I paste uploaded anywhere?

No. Sorting, deduplication, shuffling and trimming all run entirely in your browser with JavaScript. Your input and results are never uploaded, stored, or sent to a server, so lists with internal or personal data stay on your device.

How are non-numeric lines handled in numeric sort?

In numeric ascending/descending mode, each line is parsed as a number from its start. Lines that can't be read as a number are grouped together at the end and sorted alphabetically among themselves. Thousands separators (commas) and spaces are ignored when parsing.

Is duplicate removal case-sensitive?

By default, yes. Turn on "Ignore case" to treat lines that differ only in letter case (e.g. Apple and apple) as the same when deduplicating and sorting.

Does it sort non-ASCII text correctly?

Yes. Sorting uses the browser's built-in Intl.Collator for stable, locale-aware lexical comparison, so lists containing non-ASCII characters sort consistently (this is code-point/dictionary order, not phonetic order).

How does shuffle work?

It uses the Fisher–Yates algorithm to produce an unbiased random order, giving a different arrangement each time you run it — useful for raffles, sampling, or randomized presentation.