Skip to main content
Back to tools

Shuffle Lines

Randomly shuffle the order of lines in your text

About Shuffle Lines

Randomizes the order of the lines you paste and shows the result in a separate panel, ready to copy. The shuffle runs entirely in your browser, so lists of names, emails or test IDs stay on your machine. Handy for randomizing test data, quiz questions, playlists or the speaking order at a stand-up.

Category: Text.

Frequently asked questions

Is the shuffle truly random?

▾

It uses the Fisher–Yates algorithm with Math.random(), so every ordering is equally likely for everyday purposes. Math.random() is not cryptographically secure, though, so don't rely on it for prize draws or anything where a predictable result could be exploited.

Does it modify line content?

▾

No. Only the order of lines changes. Each line's content, including leading/trailing spaces, is preserved exactly.

Does it preserve blank lines?

▾

Yes. Blank lines, including the empty line left by a trailing newline, are shuffled like any other line and can end up at the top or in the middle, so delete them before shuffling if you don't want gaps.

Can I shuffle multiple times?

▾

Yes. Each click of Shuffle Lines produces a new random permutation. You can reshuffle as many times as you like.

Related tools