TEXT · SORT & RANDOMIZE

Line Sorter & Randomizer

Sort or shuffle your lines in one click. Paste any text list and quickly order it A–Z, Z–A, or randomize the line order for quick draws and simple raffles.

  • Sort alphabetically A–Z or Z–A with consistent, clean ordering.
  • Randomize lines to shuffle a list of names, ideas, or small datasets.
  • Perfect for organizing word lists, name lists, or preparing simple random picks.

Everything runs in your browser. Your text is not uploaded to any server, making this tool safe for sorting or shuffling internal lists and sensitive data.

Input text
Each line will be treated as one item. You can sort the lines or shuffle them into a random order.
Sorting & randomization mode
Options
When off, sorting ignores capitalization (treats Apple and apple as similar).

Sorted / randomized result

Lines in the result
0
line(s) after processing
Waiting for input… Mode: sort A–Z (ascending)
Original lines
0
Total lines in the input (including empty)
Non-empty lines processed
0
Lines used for sorting / randomization
Unique non-empty lines
0
Distinct non-empty values among processed lines
Empty lines ignored
0
Skipped because “Ignore empty lines” is enabled
Paste your text on the left, choose a mode, then click “Sort / randomize lines” to generate a processed list.

What does the Line Sorter & Randomizer do?

This tool takes your text, splits it into lines, and then either sorts the lines or shuffles them into a random order. It is ideal for any list where each item sits on its own line, such as names, words, tasks, simple datasets, or short notes.

Instead of manually moving lines up and down, you can paste your list into the tool, click a button, and instantly get a sorted or randomized version of your list.

How it works

When you click “Sort / randomize lines”, the tool will:

  • Split your text into separate lines.
  • Optionally trim spaces at the start and end of each line.
  • Ignore empty lines if that option is enabled.
  • Count how many non-empty and unique lines you have.
  • Apply the chosen mode:
    • Sort A–Z: sort lines alphabetically from A to Z.
    • Sort Z–A: sort lines alphabetically from Z to A.
    • Randomize lines: shuffle all processed lines into a random order.

The summary on the right shows how many lines you started with, how many non-empty lines were processed, how many unique values you have, and how many empty lines were ignored.

When to use this tool

The Line Sorter & Randomizer is useful in many everyday scenarios:

  • Organizing lists of words or tags before using them in documents or apps.
  • Sorting name lists for events, attendance, or classroom activities.
  • Preparing simple raffles by randomizing a list of participant names.
  • Randomizing ideas or tasks when you want to pick a random starting point.
  • Cleaning and ordering small datasets before copying them into spreadsheets.

Tips for best results

  • Enable “Trim whitespace” if some lines have accidental spaces. This keeps sorting consistent and avoids lines that look the same but don’t match exactly.
  • Use case-insensitive sorting (default) when capitalization is not important, so apple and Apple are grouped naturally.
  • Ignore empty lines if you want a clean list without blank rows.
  • Use the “Randomize lines” mode repeatedly if you are running a quick raffle or need a new random order each time.

Use this tool whenever you need a fast way to sort or shuffle line-based text, from simple name lists to small text datasets, without opening a spreadsheet or writing code.