Coin Flip

A fair coin is a 1-bit CSPRNG draw, not a person flipping a worn coin. Use this when two options should be equally likely and nobody at the table should supply the entropy. It is not a security ritual for keys; it is a decision aid.

What the coin flip tool is for

A coin flip is the simplest fair way to settle a binary choice, and having one on screen means you do not need a coin in your pocket.

Because it uses cryptographic randomness rather than Math.random(), the outcome is genuinely unpredictable — which matters when someone might dispute the result.

Common uses

  • Settling a decision between two options
  • Choosing who goes first in a game
  • Generating random binary outcomes for a demonstration

What the output means in the real world

Heads or tails is the entire result. If the decision is binding (who presents first, who takes the on-call holiday), agree on the mapping before you flip and do not re-flip after you see the answer. Close the tab if you were just settling an argument; there is nothing to store.

How this fits into real work

Physical coins have been shown to carry slight biases. For a friendly choice it does not matter. For a lab protocol that claims 'uniform random assignment', document that you used crypto.getRandomValues(), not a two-headed souvenir.

Best-of-three series are not a single bit. If you need a series, say so up front so the loser cannot demand extra flips.

Do not use a coin flip to pick a password character. That is a party trick with a two-symbol alphabet and no place in a credential.

How to use this tool

  1. Choose how many coins to flip.
  2. Flip and read the result.
  3. For repeated decisions, flip again — outcomes are independent.

Tips

  • Agree what heads and tails mean before flipping, not after.
  • For more than two options, use the random decision tool instead.

Privacy & how it works

Everything happens inside your browser. The values you type are held in page memory only, are never sent to a server, and disappear when you close the tab. You can confirm this in your browser's network tab: the only request a tool makes is one that names the tool for a usage count, with nothing you typed in it. The tools also work with the internet disconnected. Randomness comes from crypto.getRandomValues(), the browser's cryptographically secure generator, not Math.random(). Math.random() is seeded predictably and must never be used for anything security-related, because an attacker who learns part of the sequence can reconstruct the rest.

Frequently asked questions

Is this really 50/50?
Yes. Unlike a physical coin, which has a very slight bias from its weight distribution and how it is thrown, this draws from a uniform cryptographic source.

Browse other tools

All tools run entirely in your browser — nothing you type is sent to a server, except the optional HIBP 5-character hash prefix.