Shuffle List

Shuffle list items randomly.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste a list with one item per line and press Run to get the same lines in a random order. Run it again for a new order.

How to use

1
Step 1
Paste the list into Input, one item per line.
2
Step 2
Press Run.
3
Step 3
Copy the shuffled list, or press Run again to reshuffle.

How it works

The lines are shuffled with a Fisher-Yates pass driven by the browser's Math.random. Every ordering is equally likely for a fair generator, but Math.random is not a cryptographic source, so do not use the tool where someone could gain by predicting the result.

Worked example

Presentation order

Input
Ana Bo Cem Dee Eli
Output
The same five names in a random order, different each run
Walkthrough
Nothing is added or removed; only the order changes.

Limitations

  • Uses Math.random, not a cryptographic generator.
  • Blank lines are shuffled like any other line.
  • No seed, so a result cannot be reproduced.

Questions

How do I randomise the order of a list?
Paste one item per line and press Run.
Is the shuffle fair?
It uses a Fisher-Yates shuffle, which gives every order the same chance with a fair random source.
Can I repeat the exact same shuffle?
No. There is no seed.

Features

  • Fisher-Yates shuffle
  • Reshuffle with one click
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • HTML in 100 Seconds

    Fireship

    Quick HTML mental model next to text transform tools.

    Watch on YouTube
  • Learn JSON - Full Crash Course

    freeCodeCamp.org

    Structured text formats often sit next to plain-text tools.

    Watch on YouTube