Utilities

Coin Flip

Flip a coin online for heads or tails with a 3D animation, flip up to 20 coins at once, track the tally and streaks, or play best of 3, 5 or 7.

Coin Flip
Flip one coin or a handful, or settle it with a best-of match.
Coins
HHeads
TTails
Press Flip to toss the coin.
Tally
Heads
0
0%
Tails
0
0%
Total flips
0
Current streak
0
Longest heads streak
0
Longest tails streak
0

Results come from your browser's cryptographic random number generator with unbiased sampling, and nothing leaves your device.

History

Your recent flips will appear here.

About this tool

The Coin Flip tosses a virtual coin and shows heads or tails with a 3D flip animation, which is skipped if your device asks for reduced motion. Flip a single coin, or 2, 3, 5, 10 or 20 coins at once and see how many landed each way. A running tally counts heads and tails with percentages, your current streak and the longest runs of heads and of tails, and the history lists your recent flips. To settle a decision properly, switch to Best of mode and play a best of 3, 5 or 7 match, where the first side to win a majority takes it. Each flip uses your browser's cryptographic random generator, so heads and tails are exactly equally likely and every flip is independent of the last. Nothing is sent anywhere.

How to use the Coin Flip

  1. Press Flip to toss the coin and see heads or tails.
  2. To flip several at once, choose 2, 3, 5, 10 or 20 coins.
  3. Watch the tally for totals, percentages and streaks, and the history for recent flips.
  4. For a decision, switch to Best of, pick 3, 5 or 7, and flip until one side wins the majority.

Use it from your code

The Coin Flip is also a REST API endpoint. Create a free API key and call it from your own scripts and apps.

# Flip five coins
curl -X POST https://opentools.ca/api/v1/tools/coin-flip \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"count": 5}'

# Best of 5 match
curl -X POST https://opentools.ca/api/v1/tools/coin-flip \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bestOf": 5}'

Give us your feedback

Help us improve Coin Flip!

Frequently asked questions

Is this coin flip really 50/50?

Yes. Each flip takes one bit from your browser's cryptographically secure random number generator, so heads and tails each have exactly a 1 in 2 chance. A real coin can be very slightly biased by how it is thrown; this one is not.

I got heads five times in a row. Is something wrong?

No. Streaks are normal: in 100 fair flips, a run of five or more of the same side is more likely than not. Each flip is independent, so the coin does not "owe" you tails after a run of heads.

How does best of 3, 5 or 7 work?

Heads and tails each need a majority: 2 wins in a best of 3, 3 in a best of 5 and 4 in a best of 7. The match ends as soon as one side gets there, so a best of 5 can be over in three flips.

How are streaks counted when I flip several coins?

The coins are added to the tally in order, left to right, so streaks run across a multi-coin flip and into the next one.

Is my history saved?

Only for this visit. The tally and history are kept in the page and cleared when you reload it, and nothing is sent to a server.

Coin Flip screenshot