TextArray
100% local

Shuffle text

Put lines, words or letters into a truly random order.

Input
Output

Shuffle text

Paste your text and shuffle it into a random order. Three modes let you pick the unit: shuffle lines to randomize a list, shuffle words to scramble a sentence while every word stays readable, or shuffle letters to mix the individual characters — useful for anagrams, word games and classroom exercises.

Line mode is the everyday workhorse: randomize a list of names before drawing an order, mix quiz questions so no two students get the same sequence, or reorder test data to remove accidental patterns. Word mode keeps the original spacing and line breaks and only swaps the words between the slots. Letter mode is code-point aware, so accented characters and emoji survive the mix intact.

The shuffle uses the Fisher–Yates algorithm driven by your browser's cryptographic random generator, with rejection sampling to avoid modulo bias. That means every possible ordering is equally likely — no cheap pseudo-randomness, no patterns, and a different result on every run. Press the button again whenever you want a fresh arrangement; the tally under the output tells you how many units were shuffled.

Shuffling happens entirely in your browser. Nothing you paste is sent to a server, so it is safe to randomize participant lists, unpublished quiz banks or any other private data. Once the order looks right, copy the result with one click or download it as a .txt file and use it wherever you need it.

FAQ

Is the shuffle truly random?
As random as software gets. It uses the Fisher–Yates algorithm with the browser’s cryptographic random generator and rejection sampling, so every ordering is equally likely.
Do I get a different result each time?
Almost always. Each run draws fresh random numbers, so pressing the button again produces a new arrangement. With very few units the same order can occasionally repeat by chance.
Does shuffling words destroy my formatting?
No. Word mode keeps the original spaces, tabs and line breaks in place and only swaps the words between those positions.
Is my text uploaded anywhere?
No. The tool runs entirely in your browser and your text never leaves your device.