Skip to content

Shuffle Lines

Put the lines of any list in random order.

How to use the shuffle lines

Three steps, all in your browser.

  1. 1

    Add your text

    Type, paste or open a .txt file. Press Sample to try an example.

  2. 2

    Choose the order

    Pick an order or format. The result updates live.

  3. 3

    Copy or download

    Copy the result in one click or save it as a .txt file.

Shuffle Lines: what to know

Shuffle Lines puts the lines of your list in a random order. Press 'Shuffle again' as many times as you like for a new order each time.

It uses the Fisher-Yates shuffle, which gives every possible order the same chance when its random numbers are uniform. The random seed comes from your browser's cryptographic random number generator, and the shuffle itself runs on your device.

Empty lines are removed by default so blank entries don't end up in your result. Each line is treated as one entry, whatever it contains, so you can shuffle names, questions, URLs or whole sentences, and copy or download the new order as a .txt file.

Popular uses

  • Randomizing quiz and exam questions
  • Drawing names for a raffle or giveaway
  • Picking a random order for presentations or turns
  • Shuffling a playlist, word list or flashcards

Tips for the best result

  • To pick one winner, shuffle and take the first line.
  • Keep a copy of your original list; the shuffle replaces the order completely.
  • For draws with prizes, follow your contest's rules and record how the draw was done.

Read how JustYourText works and our privacy details. Text you type or paste is processed in your browser and is never sent to our server.

Frequently asked questions

It uses the Fisher-Yates shuffle, which gives every order the same chance, with randomness from your browser's secure random number generator when you press Shuffle again.

Yes: paste the entries, shuffle, and take the first line. For anything with legal or financial stakes, follow the rules of your contest and keep a record of the draw.

No. Every tool runs in your browser, so the text you type or paste is processed on your device and is not sent to our server or stored. Reloading or closing the page clears it.

Yes. Every tool is free with no sign-up and no limits on use. Clearly labeled ads keep it that way.

Yes. The tools work in any modern browser on phones, tablets and computers. Copy and Download work on mobile too.