Free tool
Coin Flip, Dice Roller & Random Picker
Flip a coin online with your browser's cryptographic random generator, flip many at once, roll dice or pick a name from a list. Fair 50/50, no sign-up.
Flip a coin
Result
Press Flip
- Heads (all flips)
- 0
- Tails (all flips)
- 0
- Share heads
- –
Totals add up while this page stays open. Nothing is saved.
Roll dice
Total
–
Pick at random
Picked
–
Assumptions and limits
Randomness comes from your browser. The numbers shown here are exact probabilities, not claims about any real coin.
- Every flip, roll and pick uses crypto.getRandomValues from your browser. Values are mapped to a range with rejection sampling, so every outcome has exactly the same chance. There is no seed, history or hidden weighting.
- A fair coin has a probability of 1/2 per side. The chance of exactly k heads in n flips is C(n, k) ÷ 2ⁿ, shown for up to 100 flips.
- Flips are independent. Earlier results never change the odds of the next one.
- Real coins can lean slightly toward the side that starts facing up (about 51% in one published study). A digital flip has no starting side.
- Results are not logged or signed, so they cannot serve as an auditable draw.
Runs entirely in your browser. Nothing you type or upload is sent to our servers.
How an online coin flip works
A fair coin flip is an event with two outcomes that are equally likely. The tool gets a random 32-bit number from your browser's secure generator and reads it as heads or tails, so each side comes up with a probability of exactly 1/2. Because the generator is seeded from the operating system rather than the time, the result cannot be predicted from earlier flips. Dice work the same way with more outcomes, and the picker draws names from your list one at a time without replacement.
Worked example 1: three heads in a row
Each flip has a 1/2 chance of heads and flips are independent, so the chances multiply.
- Three flips: 1/2 × 1/2 × 1/2 = 1/8.
- As a percent: 1 ÷ 8 × 100 = 12.5%.
- Checking by counting: three flips have 2 × 2 × 2 = 8 equally likely outcomes, and only HHH is all heads.
Worked example 2: exactly 5 heads in 10 flips
- Number of outcomes: 2¹⁰ = 1,024.
- Ways to place 5 heads among 10 flips: 10 × 9 × 8 × 7 × 6 ÷ (5 × 4 × 3 × 2 × 1) = 30,240 ÷ 120 = 252.
- Chance: 252 ÷ 1,024 = 0.2461, or 24.61%.
So even a perfectly fair coin gives exactly five heads in ten flips only about one time in four. Set the number of coins to 10 and flip several times to watch the split move around. For up to 100 coins, the tool shows this exact chance for the split you got.
Good uses and limits
- Good for tiebreakers, turn order and everyday either-or choices.
- Roll several dice by raising the count, or use 20 sides for tabletop games and 100 for percentile rolls.
- Not an audited draw: nothing is recorded or verifiable, so do not use it where the rules require a witnessed or certified method.
Related tools
To see how odds like 3 to 1 translate into a share of the whole, use the Ratio Calculator. For exact arithmetic on chances written as fractions, try the Fraction Calculator, and for random strings to use as passwords the Password & API Key Generator uses the same secure generator.
Frequently asked questions
Is this coin flip really 50/50?
Yes. Each flip takes a random number from your browser's cryptographic generator and maps it to heads or tails, with no weighting, history or memory. A rejection step removes the tiny bias that comes from squeezing random numbers into a smaller range, so each side has a probability of exactly 1 in 2. Nothing is sent to a server, so nobody can influence the result.
Is a real coin exactly 50/50?
Almost, but not exactly. A 2007 study by Persi Diaconis, Susan Holmes and Richard Montgomery found that a normal coin flipped by hand tends to land on the same side that started facing up, at about 51% instead of 50%. For a decision between two friends the gap does not matter, and a digital flip has no starting side at all.
If I get five heads in a row, is tails due?
No. Each flip is independent, so the next one is still 1 in 2 no matter what came before. A run of five heads has a chance of (1/2)⁵ = 1/32, or 3.125%, but that is the chance before the flips happen. Once four heads are on the board, the fifth is an ordinary 50% flip. Believing otherwise is called the gambler's fallacy.
How does the random number generator work?
It calls crypto.getRandomValues, the browser's secure source of random numbers, the same one used to make passwords and encryption keys. It is seeded by the operating system, not by the clock, so it is not predictable from the time or from earlier results. This is stronger than the everyday random functions in programming languages, which are built for speed and are not meant for security.
Why do many flips not split exactly in half?
Chance varies around the average, and exactly even splits are less common than people expect. With 10 fair flips, exactly 5 heads happens 252 times in 1,024 outcomes, or 24.61%. The share of heads gets closer to 50% as flips pile up, but the gap in the raw count can still grow. Use the multiple-flip box to see this.
Can I use it to make a decision or for a giveaway?
It is fine for casual choices such as who goes first, what to eat or a tiebreaker between friends. It keeps no record, so it is not suitable for anything that needs an auditable result, such as a regulated lottery or a prize draw with legal rules. For those, use a method your rules name, and keep an independent record.
Is anything saved or sent?
No. The flips, rolls and the names you type into the random picker stay in your browser and disappear when you close or reload the page. The only thing recorded is that the tool was used, without any of your results or text.
Link to this tool
Found it useful? Copy a link for your page, newsletter or documentation.
Get new tools and guides by email
Optional. The tool above works without signing up.
More free tools
Browse all everyday calculators or the full list of free tools.
- Grade CalculatorCalculate your weighted course grade from category weights and scores, and find the score you need on the final exam to reach the grade you want.
- Electricity Cost CalculatorWork out what an appliance costs to run per day, month and year from its watts, hours of use and the rate on your own bill. No assumed rates.
- Discount Calculator: Percent Off & Stacked DiscountsFind a sale price from a percent off, combine stacked discounts, work out the percent off between two prices, or recover the original price, with the working shown.
- GCF Calculator (Greatest Common Factor)Find the greatest common factor of two or more whole numbers, with the division steps, prime factorization and big-number support. Free and private.
- Username GeneratorGenerate username ideas from built-in word lists in four themes, with optional numbers, length limits and styles. No AI or account, and nothing is sent anywhere.
- Binary, Decimal & Hex Converter with Number to WordsConvert whole numbers between binary, octal, decimal and hexadecimal exactly, even for very large values, and spell any number out in words.