← All text tools

Shuffle Lines Randomly

Randomises the order of lines in a list with an unbiased Fisher-Yates shuffle, with an option to keep the header line and a seed for a repeatable order.

  • Free
  • No sign-up
  • Works on any device

About Shuffle Lines Randomly

Shuffling a list by sorting on random numbers is biased. This tool uses the Fisher-Yates algorithm: it walks from the last line to the first and swaps each line with a randomly chosen one from the lines before it, which gives every possible order the same chance. Randomness comes from the browser's secure random generator. Keep a header line in place, skip blank lines, or type a seed to get the same order every time, handy for raffles, playlists, flashcards and test data.

How to use Shuffle Lines Randomly

  1. Paste your list with one item on each line.
  2. Decide whether to keep the first line fixed and whether to use a seed.
  3. Press Shuffle again until you like the order, then copy or download it.

Why use this tool?

Also known as

Frequently asked questions

What does the seed do?

A seed makes the shuffle repeatable. The same list and the same seed always give the same order, so you can prove or redo a draw.

Is every order equally likely?

Yes, when no seed is used. Fisher-Yates with unbiased random numbers gives each arrangement the same probability, unlike sorting by a random value.

Can I keep a header row at the top?

Yes. Tick the option to keep the first line in place and only the lines below it are shuffled.

Is Shuffle Lines Randomly free?

Yes. Shuffle Lines Randomly on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Shuffle Lines Randomly on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools