List Shuffler

Randomize the order of every line while preserving all entries and duplicates.

How to use

These are example steps; replace the values for your task.

  1. Enter at least two items, one per line.
  2. Select Shuffle.
  3. Check the item count and copy the result if needed.

Enter values

Result

—

About this tool

Unlike the Roulette tool, which selects one item, this tool returns the complete list in a new random order. Duplicate lines are retained.

You can copy the result, but neither the input nor output is stored in localStorage.

Try a use case and check the result

Shuffle lists with duplicate lines and whitespace to check what is preserved and what is removed.

Example buttons replace the inputs and settings above and calculate. Restore previous input steps back one example at a time. After trying multiple examples, repeat restore to return to your original input. This history is lost when the page closes.

Keep both copies of a duplicated B line

Input and settings

Input lines: A / B / B / C

Expected result

Four output lines: one A, two Bs and one C, in an unspecified order.

Remove outer whitespace and blank lines

Input and settings

Input: padded A, blank line, B, A and a trailing newline

Expected result

Three output lines: two As and one B. Blank lines and outer whitespace are omitted.

How to read the result

Duplicate content remains as many times as entered. Shuffling can legitimately return the original order. This is unsuitable when blank lines or indentation must remain byte-for-byte unchanged; check the output line count and duplicate counts.

Scope and limits

At least two non-empty trimmed lines are required. Deduplication, sampling and fixed-seed replay are unsupported. Examples replace input and output. Restore recovers the original input including its whitespace and blank lines, but not a previous shuffled result. Restoring invalidates the result and copy button; shuffle again before copying.

Verification: existing functions check duplicate multisets, blank-line removal and rejection of fewer than two lines. Browser checks compare actual line counts and multiplicities without assuming an order, then verify restoration of whitespace-rich input and copy state.

Continue with the next task

Choose a presentation order while keeping duplicates

Input lines A, B, A produce two A lines and one B line. A shuffle can return the original order; a different order is not guaranteed.

Leading and trailing whitespace is trimmed and blank lines are omitted. The input stays unchanged so you can compare it with the output before copying.

Frequently asked questions

Are duplicate lines removed?

No. Every occurrence is preserved.

What happens to blank lines?

Blank lines are ignored.

Can I recover the original order?

Yes. The input field is not changed when the result is shuffled.

Related tools

Inputs and storage

Keep any content you need before clearing. This tool does not autosave inputs or results. Reloading or closing the page, clearing inputs or resetting may discard your work.

Favorites and language preferences are stored separately and may be lost when site data is cleared. Tool resets and site-data deletion do not delete files already downloaded to your device.

Explore tools & games

All 120 tools · 16 games

All 120 tools · 16 games

Text & writing 26

Calculators & converters 22

Date & time 12

Images & PDF 26

Data & web 28

Random & handy 6

Games 16