Skip to content
Free text tool

Line shuffler

This tool puts lines of text in a random order, or reverses or rotates them. Teachers, event hosts and analysts use it to shuffle names, quiz questions, playlists or rows of data.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result

Your input

33 characters

Action
Lines moved from top to bottom; negative goes up
Keep header line first
Remove blank lines

Result

Name
Linus
Grace
Margaret
Ada
Tim

The short answer

Shuffling reorders the lines with the Fisher-Yates method so every order is equally likely. Reverse flips the order and rotate moves lines from the top to the bottom. Keeping the header line first leaves a title or CSV header row in place.

Worked exampleIn the sample, the first line "Name" is a header and stays on top, while the five names Ada, Grace, Linus, Margaret and Tim are put in a random order using the browser's secure random generator, so each run can differ.

Example

Input
Name
Ada
Grace
Linus
Margaret
Tim
Result
Name
Linus
Grace
Margaret
Ada
Tim

How to use the line shuffler

  1. Paste your lines into the One item per line box.
  2. Choose Shuffle, Reverse or Rotate in Action, and set Rotate by if rotating.
  3. Choose whether to keep the header line first and whether to remove blank lines.
  4. Press Run for a new shuffle, then Copy result.

How it works

Shuffling uses the Fisher-Yates method with your browser's secure random number generator, so every order is equally likely.

Rotate by 1 moves the top line to the bottom. A negative number moves lines from the bottom to the top instead.

Keep header line first leaves the first line in place, which is useful for CSV data with column names.

You need at least two lines to reorder, not counting the header. The limit is 100,000 lines.

Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.

Questions and answers

How do I randomize a list?

Paste one item per line and keep Action on Shuffle. Press Run again for a different order.

Is the shuffle truly random?

It uses the secure random generator built into your browser with an unbiased method, so no order is favored.

Can I shuffle CSV rows but keep the header?

Yes. Keep header line first is on by default, so the column names stay at the top.

Last updated November 1, 2026. Maintained by SnowRock. How our tools work

All 220 SnowRock tools