1. Home
  2. Writing & text tools
  3. Shuffle Text Lines

Shuffle Text Lines

Randomize the order of presentations, quiz questions or test items, draw a random sample from a list, or split a class into fair random groups.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use Shuffle Text Lines

  1. Paste one item per line.
  2. Choose what to shuffle and any limits.
  3. Click Shuffle again for a new order.

Features

  • Shuffle lines, words, sentences or paragraphs
  • Unbiased Fisher–Yates shuffle with the browser’s cryptographic random numbers
  • Keep the first line as a header
  • Keep only N random items
  • Deal the list into any number of groups

Supported formats

You can open

  • Typed or pasted text
  • TXT

You get

  • Copied text
  • TXT

Private by design

Your files are opened and processed by your browser on this device. They are never uploaded to openWorkstand or anyone else, so the Shuffle Text Lines is safe for contracts, IDs, photos and work documents. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Very large files are limited by your device’s memory; on a phone, split huge files into smaller parts first.

Guide

Shuffling a list fairly: lines, words, sentences and random groups

Putting a list in random order sounds trivial, yet many quick methods are quietly unfair. Sorting by a random number, a popular trick in spreadsheets and code, makes some orders more likely than others. This tool uses the textbook method for a fair shuffle and adds the options people usually need next: a random subset, groups and keeping a header in place.

How the shuffle works

The list is shuffled with the Fisher–Yates algorithm: going from the last item to the first, each item swaps places with a randomly chosen item at or before it. Every possible order is then equally likely. The random numbers come from the Web Crypto API, the same source browsers use for security keys, rather than from a predictable formula. Press “Shuffle again” for a new order as often as you like.

Lines, words, sentences or paragraphs

Lines are the usual unit: one name, question or task per line. Words shuffles every word in the text, which makes word-order exercises and scrambled-sentence puzzles. Sentences keeps each sentence whole and reorders them, useful for “put the story back in order” activities. Paragraphs reorders blocks separated by blank lines, such as quiz questions with their answer options underneath.

Keeping a header

When the first line is a column heading or a title, turn on “Keep the first line at the top” and only the lines below it are shuffled. Empty lines are skipped by default so blank rows do not end up scattered through the result.

Random subsets

“Keep only” draws that many items from the shuffled list, which is a fair way to choose three volunteers, a sample of ten survey responses to read first, or five questions for today’s quiz from a bank of fifty. Because the list is shuffled first, each item has the same chance of being chosen.

Random groups

“Split into groups” deals the shuffled lines into the number of groups you choose, like dealing cards: the first name to group 1, the second to group 2, and so on. Group sizes differ by at most one, so 26 students in 4 groups gives groups of 7, 7, 6 and 6. Each group is headed “Group 1”, “Group 2” and so on, ready to paste into a message or project onto the board.

Private and offline-friendly

The list never leaves your browser, so class lists and staff names are not uploaded anywhere.

A worked example

Paste eight names, set “Split into groups” to 3 and press Shuffle again. The names are shuffled and dealt into Group 1 with three names, Group 2 with three and Group 3 with two. Set “Keep only” to 6 first and only six randomly chosen names are dealt, two per group. Each press of the button gives a new draw, so do it once in front of the class and copy the result.

Fairness in practice

For draws that matter, such as prizes or the order of exam presentations, shuffle in front of the people involved or share the result immediately, so nobody can suspect a reshuffle. The random generator cannot be influenced by the order you pasted the names in, so there is no advantage in being first or last on the list.

Show a spinning wheel with the Random Name Picker, put the list back in order with Sort Text Lines, remove repeated names first with Remove Duplicate Lines, or roll for turns with the Dice Roller.

Checked against the current version of the Shuffle Text Lines on .

Troubleshooting

The file does not open

Check that it is one of the supported formats above and opens in another app. Damaged files and password-protected PDFs cannot be read until they are repaired or unlocked.

It is slow or stops on a very large file

Everything runs on your device, so speed depends on its memory. Close other tabs, use a computer rather than a phone, or split the file into smaller parts first.

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

Can I get the same shuffle again later?

No. Every shuffle is drawn fresh from the browser’s random generator and is not stored. Copy or download the result you want to keep, for example the presentation order you announced.

How do I pick one random winner from a list?

Set “Keep only” to 1 and press Shuffle again. For a spinning-wheel draw to show on a screen, the Random Name Picker is made for that.

Are sentences split correctly when I shuffle sentences?

Sentences are found by the browser’s sentence rules, with common abbreviations such as Dr. and e.g. kept inside the sentence. Unusual punctuation can still split a sentence, so read the result if the order matters.

Is the shuffle truly random?

It uses the Fisher–Yates algorithm with random numbers from the Web Crypto API, so every order is equally likely. That makes it suitable for fair draws and classroom groups.

How are groups made?

The list is shuffled, then dealt out like cards: the first item to group 1, the second to group 2 and so on. Group sizes therefore differ by at most one.

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.