Text Shuffler

Randomly shuffle lines, words or characters with an unbiased shuffle.

Ad placeholder (leaderboard)

Shuffle lines, words or characters

The text shuffler randomly reorders your input so that every arrangement is equally likely. Use it to randomize a list of names, scramble words for a puzzle, reorder quiz questions, or pick a fair random winner. Choose to shuffle by lines, words, or characters.

How it works

The tool splits your text by the chosen unit — by newline for lines, by whitespace for words (dropping empty tokens), or into individual characters. It then applies the Fisher–Yates shuffle: walking from the last item to the first, it swaps each item with a randomly chosen earlier-or-equal position. This produces a uniform, unbiased permutation in linear time — far more reliable than sorting on random keys. A pseudo-random generator is seeded fresh on every click, so each shuffle gives a new order. The shuffled pieces are then re-joined (lines by newline, words by space, characters with nothing).

Example

Input lines:

apple
banana
cherry
date

One shuffle might give:

cherry
apple
date
banana

Click again and the order changes. Everything runs in your browser — nothing is uploaded or stored.

Ad placeholder (rectangle)