Flip a coin

Heads and tails each have a 50% chance. You can flip 1, 10 or 100 coins at a time, and the page keeps a count of heads and tails.

Choose the number of coins (completed)

Coins per flip

Your settings and results are stored only in this browser on your device and remain after you reload or reopen this page.

Result (current step)

Please select “Flip the coin”.

How the result is drawn

  1. Each coin is flipped with your browser's crypto.getRandomValues. Heads and tails each have a 50% chance, and each coin is independent of the others.
  2. With many coins, the share of heads is usually close to one half, but each coin still has its own 50% chance.
  3. The result is fixed when you select the button, and the flipping animation is for display only.

Source

  1. W3C: Web Cryptography Level 2: getRandomValues

Last reviewed on 31 October 2026