Dice Roller
Roll fair virtual d4–d20 (or any custom die) instantly, right in your browser.
Privacy: your files never leave your device. All processing happens locally in your browser.
How to use
- 1.Pick a dice type — d4, d6, d8, d10, d12, d20, or tap Custom to enter any number of sides.
- 2.Set how many dice to roll using the − and + stepper, then press the Roll button.
- 3.Read each individual result, the total, your recent roll history, and session stats.
About Dice Roller
This free online dice roller lets you roll virtual dice instantly in your browser — no app, no login, and nothing uploaded. Choose a standard polyhedral die (d4, d6, d8, d10, d12, or d20), enter any custom number of sides from 2 to 1000, set how many dice to roll at once (up to 12), and press Roll. You get each individual result, the running total, a short roll history, and session statistics.
What makes it different from a quick Math.random() script is the randomness source. Every roll uses crypto.getRandomValues(), the browser's cryptographically secure pseudo-random number generator (CSPRNG). Math.random() is fast but not guaranteed to be uniform or unpredictable across engines; a CSPRNG is designed to be statistically uniform, so each face of the die is equally likely. We validated this: rolling a d6 sixty thousand times, every face lands close to 1/6 of the time and the distribution passes a chi-square fairness test. In short, these are honest dice — no loaded weighting, no bias toward high or low numbers.
The standard seven polyhedral dice are the backbone of tabletop role-playing games like Dungeons & Dragons and Pathfinder: the d20 drives attack rolls and skill checks, while d4, d6, d8, d10, and d12 handle damage and other outcomes. Board games and card games lean on the humble d6, and this tool covers all of them plus exotic dice (d100, d3, or anything you type in).
Rolling multiple dice is also a hands-on way to see probability at work. A single die is uniform — every face is equally likely. But when you sum dice, the totals form a bell-shaped curve. Roll 2d6 many times and the total 7 shows up most often (there are six ways to make 7, but only one way each to make 2 or 12), so 7 sits at the peak while 2 and 12 are the rare tails. This is why teachers use dice to introduce distributions, expected value, and the central limit theorem, and why the roll history and average-total stats here double as a live probability demo.
Common uses: playing board games or RPGs when you've lost your physical dice, running quick tabletop combat, making fair random decisions, generating random numbers within a fixed range, and teaching or learning statistics. Because everything runs client-side, it works offline once loaded, responds instantly, and never sends your rolls to a server.
Frequently asked questions
- Are these dice rolls truly random?
- Yes. Every roll is generated with crypto.getRandomValues(), the browser's cryptographically secure random number generator (CSPRNG), rather than the weaker Math.random(). This produces a statistically uniform distribution, so each face of the die is equally likely — we tested 60,000 d6 rolls and the results pass a chi-square fairness check.
- Which dice can I roll?
- All standard polyhedral dice used in tabletop and RPG games — d4, d6, d8, d10, d12, and d20 — plus a Custom option where you can enter any number of sides from 2 up to 1000 (for example a d100). You can roll up to 12 dice of the same type at once and see the combined total.
- Why does the total of two dice peak at 7?
- A single die is uniform, but the sum of two or more dice forms a bell-shaped curve. With 2d6 there are six combinations that add up to 7 but only one that makes 2 or 12, so 7 is the most likely total. That is why summed dice are a classic way to teach probability distributions and expected value.
Related tools
- Coin FlipFlip a fair virtual coin instantly, powered by a cryptographically secure random generator — no bias, no ads in the way.
- Random Name Picker WheelSpin a colorful wheel to pick a random winner from any list of names — fair, fast, and private.
- Bingo Card GeneratorCreate printable 75-ball bingo cards in one click
- Discord Timestamp GeneratorTurn a local date and time into copy-ready Discord timestamp markup for every current display style.
- Pie Chart MakerTurn a list of labels and values into a clean pie chart and download it as a PNG — right in your browser.
- Random Activity GeneratorFind a practical activity for the time and company you have instead of spending that time deciding what to do.
Generators guides
View all- Roll Dice for Yes or No: Get a Quick Two-Option Answer
- How to Generate Random Characters in Python | Online Tool
- Generate a List of Random Things to Do in Minutes
- Make a Pie Chart From Any List of Numbers
- Flip a Coin Heads or Tails: Get a Fair Result Online
- How to Generate Random Characters in Python
- How to Create Random Teams From Any Roster
- How to Generate a Random Number in MATLAB
- How to Generate Usernames That Are Unique and Easy to Remember
- How to Generate a Signature Image Online Free
- How to Make the Pie Chart Bigger in Minecraft
- Roll a Dice for Yes or No in One Click
- Flip a Coin Online for Heads or Tails in Seconds