Skip to main content
Back to tools

Shuffle Lines

Randomly shuffle the order of lines in your text

About Shuffle Lines

Shuffle Lines lets you randomly shuffle the order of lines in your text.

Category: Text.

Frequently asked questions

Is the shuffle truly random?

Yes. The tool uses the Fisher-Yates shuffle algorithm seeded by Math.random(), which produces a cryptographically-weak but statistically uniform random permutation. For casual use — randomizing lists, picking orders — this is sufficient.

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 are treated as regular lines and shuffled along with the rest. If you want to exclude them, remove them first with the Remove Duplicates tool or a text editor.

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