Coin Flip: Heads or Tails

Flip a coin for a fair heads or tails answer. Rename the sides to settle any choice, or flip up to 1,000 coins at once.

Tap the coin or press Space to flip.

Heads

0

0%

Tails

0

0%

Current streak

0

no flips yet

Longest streak

0

no flips yet

Name the two sides

How to use the coin flip

  1. The page flips one coin when it opens. Tap the coin or press Space to flip again. The result appears under the coin, and the Heads, Tails, Current streak and Longest streak boxes update.
  2. To settle a real choice, type your own words in Name of side 1 and Name of side 2, such as Pizza and Tacos. The coin, the result and the totals all use them.
  3. Switch to Many coins to flip a batch. Pick 2, 5, 10, 100 or 1000, or type a whole number from 1 to 1,000 in Number of coins and press Flip coins.
  4. Reset all stats clears the counts and streaks. Untick Sound to flip silently.

How each flip is decided

Every coin takes one random bit from your browser's crypto.getRandomValues(): 0 is side 1 and 1 is side 2. A 32-bit number holds 32 independent bits, so a batch of 100 coins uses four numbers. The result is chosen before the coin moves. The animation then turns it 5 to 8 full turns and stops on the matching face, so the picture always agrees with the text.

Worked example with 10 coins

Open Many coins and press 10. You might see "6 Heads, 4 Tails", then "60% Heads, 40% Tails" and a longest run such as "3 Heads in a row". With 10 fair coins, exactly 5 and 5 happens 252 times in 1,024 (24.6%), and a split of 4 and 6 or closer happens 672 times in 1,024 (65.6%). Flip 100 coins and the share narrows: between 40 and 60 heads turns up 96.5% of the time.

Limits and edge cases

Coin flip FAQ

Is the online coin flip really 50/50?

Yes. Each flip uses one bit from your browser's cryptographic random generator, so both sides are exactly equally likely and no earlier flip changes the next one. Short runs still look uneven: 10 flips split exactly 5 and 5 only 24.6% of the time.

Why do I get so many heads or tails in a row?

Streaks are normal in random data. In 20 flips there is a 76.8% chance of at least one run of 4 or more identical results, and in 100 flips there is an 80.7% chance of a run of 6 or more. The coin is never due to switch.

Can I flip a coin with names other than heads and tails?

Yes. Type your own words in Name of side 1 and Name of side 2, up to 24 characters each. The coin, the result and the totals use them, so Pizza and Tacos or Yes and No work.

Does a real coin land exactly 50/50?

Very nearly. A 2025 study of 350,757 real flips found heads and tails equally likely, but a coin landed on the side it started on 50.8% of the time. That small bias comes from how people flip, and it does not exist here because there is no starting side.

How many coins can I flip at once?

Up to 1,000. Use the quick buttons for 2, 5, 10, 100 or 1000, or type a number. Up to 100 coins show one dot each, and every batch shows the split and the longest run.

Sources: MDN Web Docs, BartoΕ‘ et al., Fair coins tend to land on the same side they started (2025). For everyday decisions, not gambling or certified draws.