Flip a coin / Heads or tails generator
Heads or tails generator
Flip one coin or a million. See the counts, percentages, streaks and exact sequence.
This session
Share
Heads or tails, one flip at a time
Use this page when you want the simulator without a preset: type any number from 1 to 1,000,000 and press flip. The default is a single flip, which is the classic coin toss, but the same box handles a best-of-five, a hundred-flip experiment or a million-flip stress test.
Each round reports how many heads and tails came up, which side won, the longest streak and, for up to 100 flips, the exact sequence. Session totals keep a running count of rounds so you can see how often heads beats tails over time.
What you get from each round
- Heads and tails counts with percentages.
- Which side won, or a draw for even counts.
- The longest streak of identical flips.
- The exact H/T sequence for up to 100 flips.
- Session totals across rounds.
More coin tools
Frequently asked questions
How many coins can I flip at once?
Anywhere from 1 to 1,000,000. Large rounds finish in a fraction of a second because the flips run locally in your browser.
What does the longest streak mean?
It is the longest run of identical results in the round, for example five heads in a row. Streaks are normal in random data, and the longer the round the longer the streak you should expect.
Is the result truly random?
Yes. Each flip uses your browser's secure random number generator (the Web Crypto API), so heads and tails are equally likely and no flip depends on an earlier one.