Skip to content
ToolZone

Coin Flip

Simulate flipping a coin for a random heads or tails result, useful for quick decisions or settling a simple everyday disagreement.

Runs in your browser. Nothing you enter or upload leaves your device.

Flip!

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the Coin Flip

Coin Flip is a virtual coin toss for settling decisions, starting games or exploring probability. Click the coin or the Flip Coin button, watch it spin, and get heads or tails. The tool also tracks your recent results, the heads-to-tails split and your current streak.

How it works

When you flip, the coin plays a 0.7-second spinning animation, then the tool draws a number from Math.random between 0 and 1. Above 0.5 is Heads; otherwise it's Tails, which is an even 50/50 chance for practical purposes. Each flip is independent of the ones before.

Results are added to a history that keeps the most recent 20 flips, and the heads and tails counts and percentages are calculated from that history. Separately, the tool counts how many times in a row the latest side has come up and shows the streak once it reaches two. Reset clears the history and the streak.

How to use

  1. 1

    Click Flip Coin, or click the coin itself.

  2. 2

    Wait for the spin to finish and read Heads or Tails.

  3. 3

    Check the counts, percentages and the row of recent H and T markers.

  4. 4

    Click Reset to clear the history and start fresh.

Worked examples

Who goes first

Two players call heads or tails before a chess game.

Input
One flip
Result
Tails

Probability experiment

A class flips 20 times and records the result.

Input
20 flips
Result
Heads: 9 (45%), Tails: 11 (55%), with a streak such as 4× Tails in a row along the way

An exact 10-10 split happens only about 18% of the time with 20 fair flips, so small imbalances are normal.

Limitations
Only one coin is flipped at a time. Counts and percentages cover the latest 20 flips only, not every flip in the session. Results use Math.random and are cleared when the page is reloaded.
Assumptions
Heads and tails should each have an equal chance.
Privacy
Flips happen in your browser, and no results are sent anywhere or saved.

Frequently asked questions

Is each flip truly 50/50?+

Yes, for all practical purposes. Each flip is independent and heads and tails are equally likely.

Can I flip multiple coins at once?+

No, it flips one coin at a time. Flip repeatedly and use the history to see several results.

Why are my results not exactly half heads?+

Random results vary. Over 20 flips, splits like 8-12 or 12-8 are common, and the percentages only settle near 50% over many flips.

How many flips does the history keep?+

The last 20. The counts and percentages are based on those 20, while the streak counter keeps counting until the side changes or you reset.

Does a long streak mean the coin is unfair?+

No. Streaks of four or five are normal in a few dozen flips. Each flip still has the same 50/50 chance.

Related tools