Shuffle lines or words randomly in your text. Free online text shuffler for randomizing lists and creating randomized content.
The shuffle text tool randomly reorders either the lines or the words in your text. Line shuffling randomizes the order of entire lines (useful for randomizing lists, teams, or quiz questions). Word shuffling randomizes the order of words within the text (useful for creating anagrams or language exercises). The shuffling uses the Fisher-Yates algorithm for truly random results.
Fisher-Yates Shuffle: for i from n-1 down to 1, swap arr[i] with arr[random(0, i)]The Fisher-Yates algorithm produces an unbiased random permutation — every possible ordering is equally likely. It iterates through the array from the last element to the first, swapping each element with a randomly chosen element from the remaining unshuffled portion.
| Input | Output |
|---|---|
| Apple Banana Cherry Date | Cherry Apple Date Banana (line shuffle) |
| the quick brown fox | brown the fox quick (word shuffle) |
| 1 2 3 4 5 | 3 1 5 2 4 (line shuffle) |