Coin Flip
Heads or tails — flip a truly random virtual coin, one at a time or in batches, with streak tracking and an optional biased-coin mode.
Recent Flips (last 20)
How to Flip a Virtual Coin
- Set the "Number of coins to flip" — leave it at 1 for a single flip, or raise it (up to 100) to flip a batch at once.
- Optionally turn on "Biased coin mode" and drag the slider to set a custom heads probability, instead of the default fair 50/50 coin.
- Click "Flip Coin" — the coin animates and lands on heads or tails; a batch flip also shows every individual coin plus a Heads/Tails tally for that batch.
- Check the result message, the Current Streak and Longest Streak stats, and the growing history of chips below the coin.
- Watch the Heads, Tails, and Total Flips counters — with live percentages — update after every flip.
- Click "Clear History" to reset the coin, counters, streaks, and flip log back to zero.
Frequently Asked Questions
How is the coin flip result determined?
The tool uses your browser's crypto.getRandomValues() API to generate a cryptographically secure random bit, then checks if it's even or odd to decide heads or tails — giving each side a genuinely equal 50/50 chance.
How many past flips does the history show?
The flip history keeps your 20 most recent individual coin results as chips, including every coin from a batch flip, with the newest flip added to the front; older flips beyond 20 drop from the display, though the Heads, Tails, Total, Current Streak, and Longest Streak stats keep counting every flip since the last reset.
Why did I get heads or tails several times in a row?
Streaks are a normal part of true randomness — with a fair 50/50 coin, getting the same result multiple times in a row is expected to happen periodically over many flips, and it doesn't mean the tool is biased.
Does Clear History affect anything besides the display?
Clearing resets the coin face back to its default icon, empties the flip history chips and any batch result, and zeroes out the Heads, Tails, Total, Current Streak, and Longest Streak stats — it's a full reset with no saved data left behind. Your chosen batch size and biased-mode settings stay as they are, since those are settings rather than history.
Can I use this to make a real decision, like settling a bet?
Yes, as long as Biased coin mode is turned off — with the default fair coin, each flip is generated from a cryptographically secure random source, so it's as fair as a physical coin flip for casual decision-making. If Biased coin mode is on, the odds are intentionally skewed, so switch it off first for a genuinely fair 50/50 call.
Can I flip more than one coin at once?
Yes — enter a number from 1 to 100 in the Number of coins to flip field before clicking Flip Coin. Each coin is flipped independently with the same crypto.getRandomValues() source, and you'll see every individual result in a batch grid plus a tally of how many came up Heads versus Tails in that batch, alongside the running session totals.
What do Current Streak and Longest Streak mean?
Current Streak is how many flips in a row, ending with your most recent flip, landed on the same side — it resets to 1 the moment a different result comes up. Longest Streak is the highest that count has reached since your last reset, even after the current streak breaks. Both count individual coins one at a time, including every coin inside a batch flip, in the order they were flipped.
What is Biased coin mode, and is it still random?
Biased coin mode is an educational feature for exploring probability: turn it on and a slider lets you set the chance of heads anywhere from 1% to 99%, instead of the default fair 50/50. It's still genuinely random — each flip still comes from crypto.getRandomValues() — but the odds are intentionally uneven, so don't use it for anything you want to be fair.