Online Dice Roller for D&D
Roll 3D dice online: d4, d6, d8, d10, d12, d20 or any custom die up to d100. Roll up to 20 dice at once for D&D, tabletop RPGs and board games.
Runs in your browser. No data leaves your device.
About this tool
Rolls 3D tabletop dice (D4, D6, D8, D10, D12, D20, D100, or any custom die from 2 to 100 sides) and shows each die plus the total. Useful for D&D and other tabletop RPGs, board games, or any time you need fair dice without physical ones.
Features
- Preset dice buttons: D4, D6, D8, D10, D12, D20 and D100
- Custom dice toggle with a slider and +/- buttons for any die from D2 to D100
- Roll 1 to 5 dice with the quick buttons, or turn on Custom amount for 1 to 20 dice per roll
- Each die is Math.floor(Math.random() * sides) + 1, a uniform integer from 1 to the number of sides
- Dice are rendered in 3D with Three.js (WebGL); D4 through D20 have numbered faces and other sizes use a 20-sided shape
- Optional traditional dot pips for D6
- Three animation styles: Full tumble, Quick shake, or No animation; the total appears after the animation finishes
- Statistics sidebar with total rolls and a by-dice-type breakdown, plus a Recent Rolls list of the last 20 rolls with individual results and totals
- Copy history button puts a plain-text log of every roll (dice, individual results, total, time) on the clipboard
How to use it
- Choose a die type, or turn on Custom dice and set the number of sides.
- Choose how many dice to roll (1-5, or Custom amount for up to 20).
- Click Roll, or press Space or Enter.
- Read each die and the total; review past rolls in the sidebar or copy the history.
Outputs
- Individual die results and their sum on screen
- Plain-text roll history copied to the clipboard
Limits and notes
- All dice in one roll are the same type; mixed rolls like 1d20 + 2d6 need separate rolls.
- Uses Math.random(), not a cryptographic random source.
- Needs WebGL for the 3D dice; if WebGL is unavailable the dice area shows a message instead.
- Roll history, selected die, dice count, custom sides, animation style and D6 pip style are saved in localStorage (overtooled:dice-roller:*).
Keyboard shortcuts
- Space: roll the dice
- Enter: roll the dice
Frequently Asked Questions
How does the Dice Roller work?
For each die, the tool generates a random integer with Math.floor(Math.random() * sides) + 1, a uniform value between 1 and the die size. Pick a preset (D4, D6, D8, D10, D12, D20, D100) or a custom die from D2 to D100, and roll 1 to 20 dice at once. The dice are drawn in 3D with Three.js (WebGL), and your roll history with a per-type breakdown is saved in localStorage.
What dice types can I roll?
Presets for d4, d6, d8, d10, d12, d20 and d100, plus a custom die with any number of sides from 2 to 100 (d100 for percentile rolls). Each roll uses one die type, rolled up to 20 at a time.
Are the dice rolls truly random?
Each die uses the browser's Math.random() to pick a uniform result from 1 to the number of sides, so every face is equally likely. It is fair for games, though it is not a cryptographic random source.
Can I roll multiple dice at once like 4d6?
Yes. Select the dice type and quantity, and roll them all at once. The tool shows each individual die result plus the total sum.