Dice Roller
Roll one or more virtual dice — d4, d6, d8, d10, d12, or d20 — with an optional modifier and a running roll history.
Roll History
How to Roll Virtual Dice
- Choose your die type — d4, d6, d8, d10, d12, or d20 — using the pill buttons.
- Set how many dice to roll at once (from 1 to 12), and optionally add a +/- modifier for things like attack rolls.
- Click "🎲 Roll" to roll all the dice simultaneously.
- Read the total below the dice tray, along with the individual roll values shown in parentheses when rolling more than one die.
- Every roll is logged in the Roll History list below, so you can scroll back through past results — click "Clear" to reset it.
Frequently Asked Questions
How does the dice roller generate its results?
It uses your browser's crypto.getRandomValues() API for cryptographically secure randomness, with rejection sampling to ensure every face of the chosen die has an exactly equal chance of coming up.
Can I roll dice with different numbers of sides at the same time?
No — the dice-count field rolls that many dice, all of the currently selected type, so if you need a mixed pool, like a d20 plus two d6s, you'll need to roll each die type separately.
What's the maximum number of dice I can roll at once?
Up to 12 dice per roll — entering a higher number is automatically capped at 12.
Is this fair enough for tabletop games like D&D?
Yes — it's built for exactly that kind of use, using a cryptographically secure random source rather than a simpler pseudo-random function, so results aren't predictable or biased toward certain numbers.
What does the total shown below the dice mean?
It's the sum of every individual die rolled in that batch, plus your modifier if you set one — for a single die with no modifier it just shows that die's value, and otherwise it also lists each individual result and the modifier in parentheses.
What does the Modifier field do?
It adds (or subtracts, if negative) a flat number to the sum of your dice roll — useful for tabletop games where you roll a die plus a bonus, like a d20 attack roll with a +3 modifier. It's applied once to the total, not to each individual die.
What is the Roll History for?
It keeps a running log of your last 20 rolls in this browser tab — die type, dice count, modifier, and total — so you can scroll back through recent results without re-rolling. It only exists in memory for the current page session and clears if you reload the page or click "Clear".