🍱 Lunchbox Hands

Coin Flip

Flip a fair coin, or many at once, with running tallies

Up to 10,000 flips at a time.

Is it fair? Each flip uses your browser's cryptographic random generator (crypto.getRandomValues) with rejection sampling, so heads and tails are exactly 50/50 and no flip depends on the last. Streaks happen naturally — in 100 flips, a run of 6 or 7 in a row is normal.

Need a quick heads or tails? Tap the coin for a single animated flip, or flip up to 10,000 coins at once to watch the law of large numbers in action. A running tally tracks heads, tails, percentages, and your longest streak across the whole session, and every result can be copied with one click — useful for settling a decision, starting a game, or a classroom probability experiment.

Flips use cryptographic randomness in your browser, so no side is favored and nothing is sent anywhere. For games that need more than two outcomes, use the dice roller; to draw numbers from a custom range, try the random number generator; or pick from a list of names with the wheel spinner.

Frequently asked questions

Is this online coin flip really 50/50?

Yes. Each flip uses your browser's cryptographic random number generator (crypto.getRandomValues), the same source used for encryption keys, and draws with rejection sampling so there is no rounding bias toward either side. Heads and tails are exactly equally likely on every flip. Real coins are very slightly less fair: studies of hand-tossed coins have found a small tendency to land on the side that started facing up, which this digital flip does not have. That real-world bias is small — roughly 51% versus 49% — but it is there.

Why did I get five heads in a row? Is it broken?

Streaks are completely normal for a fair coin — people tend to underestimate them. Every flip is independent, so the coin has no memory of the last result. Five heads in a row has a 1-in-32 chance from any starting point, and in a run of 100 flips the longest streak of one side is usually 6 or 7. The tally shows your longest streak so you can see this for yourself; flip 1,000 or 10,000 coins and the percentages settle close to 50%.

How do I flip many coins at once?

Enter a number up to 10,000 in the "Flip many coins" box, or tap a preset like 10, 100, or 1,000, then press Flip. You get the heads and tails count for that batch, its longest streak, and the H/T sequence (the first 1,000 flips are shown for bigger batches). Every batch is also added to the running session tally, which tracks total heads and tails, percentages, and the longest streak across all your flips, including streaks that carry over from one batch into the next. Reset the tally whenever you want to start a fresh experiment.

How close to 50% should heads be after many flips?

It depends on how many flips you make. For a fair coin, the typical spread in the number of heads is the square root of the number of flips divided by two. So after 100 flips, anything from roughly 40 to 60 heads is ordinary, while after 10,000 flips you would expect between about 4,900 and 5,100. The calculator shows this expected range under each batch, so you can judge whether a result is surprising or just normal luck. The more you flip, the closer the percentage gets to 50%, even though the raw gap in counts can grow.

Can I use this to settle a decision fairly?

Yes — agree on which side means what before you flip, then press the button once. Because the result comes from a cryptographic random generator and nothing is stored or sent anywhere, neither person can influence it. For choices with more than two options, a dice roll or a wheel spinner is a better fit, since flipping repeatedly to break ties can make some outcomes more likely than others. Your flips stay in this tab only and disappear when you close it.

Get weekly dev tools and tips