Coin Flipper
Flip a virtual coin with cryptographically fair randomness. Track stats, streaks, and flip multiple coins at once.
Statistics
Last 20 Flips
Flip a virtual coin with a true 50/50 outcome powered by your browser's cryptographic random number generator — the same one used for encryption keys. Track heads vs. tails stats, view streaks, or batch-flip up to 100 coins at once for probability homework or quick group decisions. And everything runs in your browser. Nothing gets uploaded.
How It Works
When you hit the button, the browser calls crypto.getRandomValues() to generate a random number — the same API that powers TLS encryption. If the value is even, heads. Odd means tails. The 3D spin animation plays while the result is already decided, then the coin lands on the correct face. No tricks, no patterns, no bias.
Examples
Settling Who Picks the Restaurant
Two people, one decision. Classic use case.
1 coin flip
Heads = Alice picks
Tails = Bob picks
TAILS!
Bob picks the restaurant.
Best of 5 Series for Game Night
Your group wants to flip best-of-5 to decide teams. Flip 5 coins at once and count the results instead of flipping one at a time.
Flip 5 coins at once
H T H H T
Heads: 3 | Tails: 2
Heads wins the series.
Probability Homework — 100 Flips
A stats student needs to record 100 coin flips and compare the distribution to the expected 50/50 split. Doing this by hand takes forever. Set the count to 100 and flip once.
Flip 100 coins
Heads: 48 (48%)
Tails: 52 (52%)
Longest streak: 7 tails in a row
Who Uses This
Quick first-player picks and tiebreakers when no physical coin is around.
Generating large sample sets for probability and statistics assignments.
Testing binary logic, A/B split paths, or random boolean generation during prototyping.
Virtual coin toss for pickup games, fantasy league drafts, or online tournaments.
Common Mistakes
Getting 6 heads in a row feels weird, but it is completely normal. In 100 flips, a streak of 6 or 7 identical results is expected. Randomness is clumpy — that's actually proof it's working, not evidence of a bug.
Flip 10 coins and you might get 7 heads and 3 tails. That doesn't mean it's unfair. The law of large numbers only kicks in over hundreds or thousands of flips. Try 1,000 — you'll land very close to 50%.
A coin flip is great for picking who drives or which movie to watch. Do not use it to generate passwords or encryption keys — use a dedicated password generator for that. Different tools for different jobs.
Technical Details
- Processing: 100% client-side — nothing leaves your browser
- Randomness Source:
crypto.getRandomValues()(CSPRNG) - Browser Support: Chrome, Firefox, Safari, Edge (all modern browsers)
- Animation: CSS 3D transforms, no canvas or WebGL required
Frequently Asked Questions
Is an online coin flip truly random?
This one is, yes. It uses crypto.getRandomValues(), which pulls from your operating system's cryptographic random number generator. That's the same source browsers use for SSL connections. It is not a Math.random() pseudo-random hack.
Can I flip more than one coin at a time?
Yes. Change the coin count before flipping. The tool generates an independent random value for each coin, so flipping 10 coins is the same as flipping one coin 10 separate times — statistically identical.
Why did I get 8 heads in a row?
Because random does not mean alternating. The probability of 8 heads in a row is 1 in 256, which sounds rare but shows up pretty quickly if you're doing dozens of flips. Expected behavior, not a glitch.
Does this save my flip history?
Only while the tab is open. Your last 20 flips and running stats show on screen, but nothing gets saved to a server or local storage. Refresh the page and everything resets to zero.
Is a coin flip really 50/50 in real life?
Not perfectly. A 2023 Stanford study found real coins land on the same side they started about 51% of the time due to wobble physics. This digital version doesn't have that problem — each flip is an independent event with an exact 50/50 probability.