Coin Flipper: Flip 1 to 100 Coins, Heads or Tails
Flip a coin online, or up to 100 coins at once, with an animated result, a running tally of heads and tails with percentages and a history of your last 50 flips. Random and private.
Press the space bar to flip when no field is selected.
Press Flip to toss.
- Heads
- 0 (0%)
- Tails
- 0 (0%)
- Total flips
- 0
About the Coin Flipper
The Coin Flipper tosses one coin or up to a hundred coins at once and keeps score. Every coin lands on heads or tails with exactly the same chance, and the result is animated so it feels like a real toss. Use it to settle a decision, to pick who goes first in a game, or to see for yourself how heads and tails behave over many flips. A running tally shows the number of heads and tails and their percentages, and a history lists your last 50 flips with the newest first.
The flips come from your browser's cryptographic random generator (crypto.getRandomValues). Each coin takes one random byte and reads its lowest bit: 1 means heads and 0 means tails. Because every byte value from 0 to 255 is equally likely and exactly half of them are odd, the odds are an exact 50 to 50. Nothing is predictable and nothing is repeated from a seed.
How to flip a coin
Steps
- Leave Coins at 1 for a single toss, or type any whole number from 1 to 100.
- Press Flip, or press the space bar when no field is selected.
- Read the result on the coin, in the tally and in the history. Press Reset to clear the tally and the history and start again.
Keyboard and screen readers
The space bar flips the coin whenever you are not typing in a field, so you can toss again and again without reaching for the mouse. Each result is announced by a polite live region, for example "Heads." or "5 coins: 3 heads, 2 tails." If your system is set to reduce motion, the coin does not spin.
The maths of a fair coin
The chance of exactly heads in fair flips is
With two coins there are four equally likely outcomes, so one head and one tail turn up half of the time, while two heads or two tails each turn up a quarter of the time. For ten coins, exactly five heads has a chance of about 24.6 percent, which is the single most likely outcome and still happens less than a quarter of the time.
Worked examples
- Single flip: one coin gives heads or tails with a chance of 50 percent each, whatever came before.
- Streaks: the chance of five heads in a row is , about 3.1 percent. Over a long session you will see such streaks, and they do not mean the coin is broken.
- The law of large numbers: after 10 flips you might see 7 heads (70 percent). After 1000 flips the share of heads settles close to 50 percent, usually within a few points, although the raw difference between heads and tails can still grow.
Common uses
- Deciding between two options when you cannot choose.
- Choosing who starts a game or takes the first turn.
- Teaching probability with a large number of tosses in a classroom.
- Settling a friendly bet without a real coin to hand.
Privacy
Nothing is uploaded; every calculation runs in your browser and never leaves your device. The tally and the history live only on this page and disappear when you close or reload it.
Related tools
Need a number rather than a side? Use the Random Number Generator for dice and lots. The Number List Calculator sums and averages the numbers you collect, and the Password Generator uses the same cryptographic random source for secrets.
Frequently asked questions
Is the coin flip really random and fair?
Yes. Each coin takes one byte from your browser's cryptographic random generator and reads its lowest bit. Half of all byte values are odd, so heads and tails have an exact 50 percent chance each, with no seed and no pattern.
How many coins can I flip at once?
From 1 to 100. Type the number in the Coins field and press Flip. The tally counts every coin, and the history keeps the last 50 flips with the newest first.
Can I flip with the keyboard?
Yes. Press the space bar to flip whenever no field is selected. Pressing space while you are typing in the Coins field does nothing, so you can still edit the number.
Why do I get long streaks of heads or tails?
Streaks are normal. Five heads in a row has a chance of 1 in 32, about 3.1 percent, so over a long session it will happen. Each flip is independent and earlier results do not change the next one.
Does the page remember my flips?
Only until you close or reload it. The tally and the history live in the page and are never saved or uploaded. Press Reset to clear them at any time.
Does the coin animation respect reduced motion?
Yes. If your device is set to reduce motion, the coin does not spin and the result simply appears. Each result is also announced to screen readers.