Coin Flip

Enter how many flips you want. A single flip returns Heads or Tails; several flips return the counts and, for up to 100 flips, the sequence.

Use the tool

Why this tool exists

A coin toss settles who picks the restaurant, who kicks off and who does the washing up, and it is useful in classrooms for showing that random sequences look streakier than people expect. When you do not have a coin, this does the job with a fair result drawn from the browser's secure random number generator, not a predictable pseudo-random function. You can flip once, or request many flips at once and see how many heads and tails came up. For up to 100 flips the full sequence is shown as H and T letters, which makes runs easy to spot. The count is capped at 10,000 to keep the page responsive. Nothing is stored or uploaded.

How to use it

  1. Enter the number of flips; 1 for a single toss.
  2. Run the tool.
  3. Read Heads or Tails, or the totals and the sequence for several flips.

Frequently asked questions

Is the coin fair?

Yes. Each flip uses an unbiased random bit from crypto.getRandomValues, so heads and tails are equally likely and independent of previous flips.

Why do I see streaks of heads?

Long runs are a normal feature of random sequences. In 100 fair flips, a run of five or more of the same side is quite likely, even though it feels suspicious.

What is the maximum number of flips?

10,000. Larger values are capped, and fractional values are rounded down. For more than 100 flips the sequence is hidden and only the counts are shown.

Can I use it to make an important decision?

It is fine for light-hearted choices. For anything serious, treat the flip as a prompt: your reaction to the result often shows what you really wanted.