Free online text tool

Randomly Sort Lines of Text

Randomly Sort Lines of Text shuffles the lines of your text into a random order. Paste your lines, click the button and copy the shuffled list. It is free and runs in your browser.

Randomly Sort Lines of Text

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

Randomly Sort Lines of Text Example

The order changes every time. This is one possible result.

Before
Monday
Tuesday
Wednesday
Thursday
After
Wednesday
Monday
Thursday
Tuesday

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Randomly Sort Lines of Text do?

This tool shuffles the lines of your text into a random order. Each line is kept whole, and only the order of the lines changes.

Every click gives a new order, so you can click again to shuffle once more. Empty lines are removed, and repeated lines are kept.

Use it to mix up a list of names, questions or quiz answers, to draw a random order for turns, or to shuffle a playlist or a to-do list.

Randomly sort lines examples

Each example shows your lines before and after. The order is random, so each After shows one possible result.

CaseBeforeAfter
Four lines (one possible result)
Monday
Tuesday
Wednesday
Thursday
Wednesday
Monday
Thursday
Tuesday
Names
Ann
Ben
Cara
Dan
Eva
Dan
Ann
Eva
Cara
Ben
Empty lines are removed
red

green

blue
blue
red
green
Repeated lines are kept
yes
yes
no
no
yes
yes
One line
Only one
Only one

How to randomly sort lines of text

  1. 1
    Add your lines
    Paste your text into the box, one item on each line, or import a text file.
  2. 2
    Click Randomly Sort Lines
    The lines are put in a random order and shown in the box.
  3. 3
    Shuffle again if you like
    Click the button again for a new order, or Undo to bring your text back.
  4. 4
    Copy it
    Click Copy and paste the shuffled list where you need it.

When to randomly sort lines

Good for

Mixing up names, questions or quiz answers, drawing a random order for turns, and shuffling playlists and to-do lists.

Check first

Put one item on each line. Empty lines are removed, and repeated lines are kept. The order is different every time. The result replaces your text, so use Undo if you need the original.

Other tools

To pick only a few random lines try Extract Random Lines. To sort A to Z try Alphabetical Sort. To remove repeated lines try Remove Duplicate Lines.

Randomly sort lines FAQ

What does the Randomly Sort Lines of Text tool do?

It shuffles the lines of your text into a random order. Each line is kept whole and only the order changes.

How do I shuffle lines of text?

Paste your lines, one on each line, then click Randomly Sort Lines. The shuffled lines replace the text in the box. Click Copy to use them, or Undo to go back.

Do I get a different order each time?

Yes. Every click gives a new random order. Click it again if you want to shuffle the lines once more.

Can I get my original order back?

Yes. Click Undo to bring back the text from before the last shuffle.

Are empty lines kept?

No. Empty lines and lines with only spaces are removed, so the result is a clean list.

Does it remove duplicate lines?

No. A line that appears twice is kept twice. To remove repeated lines use Remove Duplicate Lines.

Can I pick only a few random lines?

Yes. Use Extract Random Lines to choose how many random lines you want.

Is this tool free and is my text private?

Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.

Looking for more text tools?

Browse Sorting Tools

Last updated: 10 November 2026