Extract Random Lines – Pick a Random Line from Text | WordTweek
Free online text tool

Extract Random Lines

This tool picks random lines from your text. Paste one item per line, choose how many lines you want, and it lists them in random order. Press Pick again for a new draw. It is free and runs in your browser.

Extract random lines example

Before

Rain taps softly on the window She twirls her hair and smiles The first snowfall of the year A shared smile across the room

After (number of random lines: 1)

The first snowfall of the year

How to extract random lines

  1. Paste your lines. Put one item on each line, or import a .txt file.
  2. Set the number. Enter how many random lines you want to get.
  3. Pick and copy. Press Pick again for a new draw, then press Copy result.

What you can use it for

Giveaways and raffles

Paste a list of names and pick one or several winners fairly.

Quizzes and games

Draw random questions, words or challenges from a long list.

Sampling data

Pull a random sample of rows from a large text or data file for testing.

Frequently asked questions

What does the Extract Random Lines tool do?

It picks one or more lines at random from the text you paste and lists them. You choose how many lines you want, and every line has an equal chance of being picked.

How do I pick a random line from text?

Paste your text with one item per line, set Number of random lines to 1, and the tool shows a random line. Press Pick again to draw a new one.

Can I extract more than one random line?

Yes. Set Number of random lines to any number up to the total lines in your text. The tool returns that many different lines.

Can the same line be picked twice?

No. Each line can be picked only once in a single draw, so the result never repeats a line. Duplicate lines that appear twice in your text can show up twice, because they count as separate lines.

Are blank lines counted?

No. Empty lines are ignored, so only lines with text are used for the draw.

Is the selection truly random?

The tool uses your browser's secure random number generator, which is suited to fair picks such as giveaways, raffles and quiz questions.

What can I use it for?

Common uses are picking a giveaway winner from a list of names, choosing a quiz question, sampling rows from a data file, selecting a writing prompt and testing with random sample data.

Is my text uploaded anywhere?

No. The tool runs in your browser, so your text stays on your device. It is free and needs no account.

Share this tool

Bookmark this page: press Ctrl+D (Windows) or Cmd+D (Mac).

Last updated: November 2026 · Free · No sign-up · Runs in your browser

Copied!