Coin Flip

Flip a virtual two-sided coin once or many times using browser randomness.

← Generators

Flip a virtual two-sided coin once or many times using browser randomness.

Result: Choose how many flips.

How to flip a virtual coin

  1. Enter 1 for a single heads-or-tails decision, or choose up to 10,000 flips for a probability experiment.
  2. Click Flip Coin. A single flip shows Heads or Tails; a batch shows counts, percentages and its longest same-side streak.
  3. Read the outcome sequence: H means heads and T means tails. For batches above 100, only the first 100 outcomes are shown, while totals and the longest streak use every flip.

For a casual choice, agree what heads and tails mean before flipping. In a classroom experiment, record the batch size and totals, then compare several batches of the same size. Reset clears the visible result; changing the count clears the previous batch rather than relabeling it.

What does a 50/50 chance mean?

The model assigns equal probability to heads and tails on each independent flip. It does not force every pair or batch to balance. Ten flips can produce seven heads and three tails without indicating a problem. A run of five heads does not make tails “due” on the next flip.

For an ideal fair coin, a particular sequence of five heads has probability (1/2)⁵ = 1/32, or 3.125%. That differs from the chance of seeing a five-head streak anywhere within a much longer batch. The longest-streak result is descriptive; it is not a statistical fairness test.

How randomness is generated

The tool requires the browser’s Web Crypto random source. Each random byte is mapped to heads or tails by its parity; exactly half of the 256 possible byte values map to each side. One batch requests up to 10,000 bytes. If Web Crypto is unavailable or fails, generation stops with an error instead of switching to a different random method.

This is a software simulation, not a prediction of a physical coin. It does not maintain a saved history, publish a verifiable draw record or provide an audited lottery service. The generator code does not upload outcomes or save them in browser storage. Record any non-sensitive classroom results you need before resetting.

Related tools

For a numbered range, use the Random Number Generator. For random text, use the Random String Generator. Explore other Generators.