Text tools

Shuffle Lines

Shuffle Lines Randomly

Put lines in a random order with a fair, secure shuffle, and shuffle again with one click.

About this tool

About Shuffle Lines

Randomize the order of quiz questions, a presentation running order, names for a draw, a playlist, test cases or flashcards. Paste one item per line and the list is shuffled immediately with the Fisher–Yates algorithm, driven by your browser's cryptographically secure random number generator, so every possible order is equally likely and there's no hidden bias toward the start or end of the list. Click Shuffle again for a fresh order as often as you like. Empty lines are dropped so they don't count as entries, spaces around each line are trimmed, and you can remove duplicates first so nobody gets two chances. Each line is moved as a whole and its text never changes. When you need the result to be visible to others, as in a giveaway, the Random Picker and Random Team Generator show the draw on screen, while this page is the fastest way to get a shuffled list to paste elsewhere. Nothing is uploaded or recorded.

Built and maintained by Abhi JainUpdated

How to Shuffle Lines

  1. 1

    Paste the list

    Paste one item per line into the Lines box.

  2. 2

    Shuffle

    The list is shuffled at once. Click Shuffle again for a new order, and tick Remove duplicates if needed.

  3. 3

    Copy

    Copy or Download the shuffled list.

Shuffle Lines: questions and answers

Is the shuffle truly random?

It uses crypto.getRandomValues, the same secure source used for passwords, with an unbiased Fisher–Yates shuffle, so every order has the same probability.

Why does it reshuffle when I type?

Any change to the list produces a new shuffle. Paste the complete list first, then use Shuffle again until you are happy and copy.

How do I pick one random winner?

Use the Random Picker, which draws one or more names and shows the result.

Can I split a shuffled list into teams?

Yes, with the Random Team Generator, which shuffles names and divides them into balanced groups.