Flip a Coin
A fast, fair virtual coin flip with animation. Track heads/tails statistics, flip multiple coins at once, and see your flip history.
How to use Flip a Coin
Flip a virtual coin for a perfectly fair 50/50 decision — powered by the Web Crypto API for true randomness, not Math.random(). Flip single or multiple coins at once, track heads/tails streaks, and see the cumulative frequency chart for long runs. Use it for settling debates, making binary choices, running probability experiments, or teaching statistical concepts.
- Click the large coin or the "Flip" button for a single flip.
- Set "Number of flips" to flip multiple coins simultaneously for probability experiments.
- View the animated coin result and the heads/tails tally.
- Check the streak counter for the current consecutive run.
- Use the Reset button to clear history and start a new experiment.
Your data never leaves your device — 100% private processing.
Probability and the law of large numbers
A single fair coin flip has exactly 50% probability for heads and 50% for tails. However, in a small sample (say, 10 flips), results like 7 heads / 3 tails are entirely normal — the observed frequency can deviate significantly from 50%. As the sample size grows, the observed proportion converges toward 50% — this is the Law of Large Numbers. With 1,000 flips, the result will typically be within 2–3% of 50/50. With 10,000 flips, within 1%. This tool lets you observe this convergence directly in real time.
| Number of flips | Expected heads range (95% CI) | Typical deviation |
|---|---|---|
| 10 | 2–8 | ±30% |
| 100 | 40–60 | ±10% |
| 1,000 | 469–531 | ±3% |
| 10,000 | 4,902–5,098 | ±1% |
Real randomness vs. perceived fairness
People are notoriously bad at judging randomness — a sequence of HHHHHH seems "less random" than HHTHTH, yet both are equally likely from a fair coin. This cognitive bias (the gambler's fallacy) leads people to believe a run of heads "makes tails more likely" — it does not. Each flip is statistically independent; the coin has no memory. Use this tool to run long sequences and verify that long streaks of the same result occur regularly in truly random data, which is counterintuitive but mathematically certain.
Glossary
- Law of Large Numbers
- The statistical principle that as sample size increases, observed frequencies converge toward theoretical probabilities.
- Gambler's fallacy
- The false belief that past random events influence future independent events (e.g., "tails is due after a long run of heads").
- Confidence interval
- A range that contains the true value with a specified probability (e.g., 95% of 100-flip experiments will have 40–60 heads).
- Independent event
- An event whose probability is not affected by previous outcomes — each coin flip is fully independent.
Related reading
Frequently Asked Questions
Get weekly tool tips & updates
New tools, power-user tips, and productivity hacks — delivered free every Friday.
No spam, ever. Unsubscribe with one click.
Why use Flip a Coin?
- Cryptographically random generators for secure use cases
- Fully configurable output — length, charset, quantity
- Download or copy output in one click
- No data logged or stored — 100% private generation
Common use cases
- Generate a strong random password for a new account
- Create test data with realistic-looking names and emails
- Produce random numbers for a classroom lottery
- Generate Lorem Ipsum placeholder text for mockups
- Create unique UUIDs for software development
Related Generators
Dice Roller
Roll virtual dice online. Roll d4, d6, d8, d10, d12, d20, d100, or custom dice. Roll multiple dice at once. Free online dice roller with roll history.
Random Picker
Pick a random item from a list online. Enter your options, spin, and get a winner instantly. Pick multiple winners without repeats. Free random choice picker.
Random Number Generator
Generate random numbers between any range instantly. Choose count, allow duplicates, and use dice shortcuts (d6, d20). Free online random number generator.
Password Generator
Generate strong, secure, random passwords instantly. Uses the Web Crypto API — nothing is sent to any server, so your passwords stay private.
List Randomizer / Shuffler
Randomize and shuffle any list online. Enter items, click shuffle, and get a randomly ordered list. Also sort alphabetically or by length.
Yes or No Decision Maker
Get a random Yes or No answer instantly. Magic 8-ball mode, adjustable probability, and custom choice picker. Free online decision maker.
Explore all Generators.