Fun & Misc

Coin Flip & Dice Roller


Flip one or many coins and roll d4 to d100 dice with fair, cryptographic randomness — free, private, and rendered entirely inside your browser.

H
Heads
0
Tails
0

The Coin Flip & Dice Roller is a free online tool that flips virtual coins and rolls polyhedral dice with genuinely fair randomness. Switch between coin and dice mode, choose how many coins to flip or which die to roll (d4, d6, d8, d10, d12, d20, or d100), press the button, and watch a quick animation reveal each result along with running tallies, the total, and a history log — all computed on your own device with nothing saved or sent to a server.

How to flip coins and roll dice

  1. Pick a mode at the top: Coin Flip for heads-or-tails, or Dice Roller for polyhedral dice.
  2. Set the amount — enter the number of coins, or choose a die type and how many dice to roll at once.
  3. Press Flip or Roll and watch each coin or die animate before settling on its face.
  4. Read the outcome: coins show Heads/Tails with cumulative tallies, and dice show every face plus the summed total.
  5. Review the history log of recent rolls, or reset the tallies to start a fresh session.

What makes the randomness fair?

Every flip and roll is drawn from crypto.getRandomValues, the browser's cryptographically secure random number generator, rather than the weaker Math.random. To keep the odds perfectly even, the tool uses rejection sampling: it discards the rare raw values that would otherwise make some faces slightly more likely, so a coin is a true 50/50 and every side of a die has exactly the same chance. Each outcome is independent of the last, which means past results never influence the next one.

Why use a virtual coin and dice roller?

A digital roller is faster and fairer than hunting for a physical coin or a missing d20, and everyone can see the same on-screen result. It is ideal for tabletop and role-playing games that need a d20 or a fistful of d6s, for board games where the dice went missing, for settling a yes/no decision with a coin toss, or for teaching probability with dozens of flips in seconds.

  • Truly fair: cryptographic randomness with rejection sampling gives every result equal odds.
  • Multi-roll: flip up to 100 coins or roll a whole pool of dice in a single click.
  • Full dice set: d4, d6, d8, d10, d12, d20, and d100 for any game system.
  • Tallies & history: running heads/tails counts and a log of recent dice totals.
  • Private & offline: pure vanilla JavaScript with no libraries, so nothing is stored or uploaded.

When to flip, roll, or spin instead

Reach for a coin when a choice is binary and for dice when you need a number in a fixed range or a weighted pool of outcomes. When there are more than two named options to choose between, a wheel is the friendlier picker — the Random Decision Wheel spins through a labeled list and lands on one winner, which reads more clearly than mapping choices onto dice faces. And when you are not choosing between things you already have but need a fresh idea to act on, the Business Idea Generator conjures concepts you can then narrow down with a flip or a roll.

Because both modes lean on the same secure randomness under the hood, this tool sits alongside other browser-based random generators you might already use. If you need unique identifiers instead of game results, the UUID / GUID Generator produces collision-resistant IDs, and when the goal is a secret rather than a roll, the Strong Password Generator uses the very same crypto.getRandomValues source to build passwords you can trust.

Frequently Asked Questions

Is the coin flip and dice roll actually fair?

Yes. Results come from crypto.getRandomValues, the browser's cryptographically secure generator, and rejection sampling removes any modulo bias. That gives a coin a true 50/50 chance and every die face equal odds, with each flip or roll independent of the previous one.

Which dice can I roll?

You can roll standard polyhedral dice: d4, d6, d8, d10, d12, d20, and d100. You can roll several dice of the same type at once, and the tool shows each individual face plus the combined total.

Can I flip more than one coin at a time?

Yes. Set the number of coins and the tool flips them together, showing each Heads or Tails outcome and adding them to running heads and tails tallies so you can track results across many flips.

Is anything saved or sent to a server?

No. The entire tool runs client-side in your browser using vanilla JavaScript. Your flips, rolls, tallies, and history live only in the page and are never stored, logged, or uploaded anywhere.

Does it work offline?

Once the page has loaded it works without an internet connection because there are no external libraries or server calls. The animations, the randomness, and the history all run entirely inside your browser.