Online Coin Flip Simulator
Flip a virtual coin with a 3D spin animation. Call heads or tails in Guess mode, track heads vs tails statistics and your streak, and copy your flip history.
Runs in your browser. No data leaves your device.
About this tool
Flips a virtual heads-or-tails coin with an animated 3D coin and keeps a running tally of every flip. Use it to settle a two-way decision, or switch to Guess mode to call heads or tails before each flip and track how often you are right.
Features
- Each flip is decided by Math.random() < 0.5 (heads) vs >= 0.5 (tails), so heads and tails are equally likely
- Two modes: Guess (separate Heads and Tails buttons that record your call before flipping) and Flip (one Flip Coin button)
- Three animation styles: Full spin (1 second CSS 3D rotation), Quick flip (0.3 second edge flip) and No animation (instant pulse)
- Statistics panel: total flips plus heads and tails counts with percentage bars
- Guess mode shows correct guesses out of total guesses, accuracy percentage and the current streak of correct calls
- Recent Flips panel lists the last 20 flips, with a green or red dot showing whether each guess was right
- Copy history button puts a plain-text report (totals, percentages and every numbered flip with its date and time) on the clipboard
How to use it
- Pick a mode: Guess to call the result first, or Flip to just flip.
- In Guess mode click Heads or Tails (or press H or T); in Flip mode click Flip Coin (or press Space).
- Read the result under the coin, plus Correct or Wrong in Guess mode.
- Check the Statistics sidebar or use the copy button to export the full history as text.
Outputs
- On-screen result (Heads or Tails) with flip number
- Plain-text history report copied to the clipboard
Limits and notes
- Uses Math.random(), not crypto.getRandomValues(); fine for games and decisions, not for security purposes.
- One coin per flip; there is no option to flip several coins at once.
- Flip history, animation style and mode are saved in this browser's localStorage (overtooled:coin-flip:*) and persist between visits until you clear history.
- The coin is silent; the tool plays no sound.
Keyboard shortcuts
- H: guess heads and flip (Guess mode)
- T: guess tails and flip (Guess mode)
- Space: flip the coin (Flip mode)
Frequently Asked Questions
How does the Coin Flip Simulator work?
Each flip calls Math.random() and compares the result to 0.5 -- below is heads, at or above is tails, giving a 50/50 split. The result drives a CSS 3D transform animation that rotates the coin element over one second. Flip history and running statistics are persisted in localStorage.
Is the coin flip truly random?
Yes. The result is determined by the browser's random number generator, giving a genuine 50/50 chance on every flip -- no patterns or biases.
Can I flip multiple coins at once?
The tool is designed for single flips with animation. For quick decisions, you can flip repeatedly and the statistics panel tracks your running totals of heads vs tails.
Does it track my flip history?
Yes. The tool shows a running count of heads and tails, along with the percentage split, so you can see how close your results are to the expected 50/50 distribution.