Skip to content

Dice Roller

Roll any dice in one press or in standard notation — 2d6+3, 4d6kh3, advantage and disadvantage — with every die shown and a fair, cryptographic roll.

For example d20, 2d6+3, 4d6kh3 (keep the highest three), 2d20kl1, d% or 1d8+2d6-1.

Common rolls

Flip a coin → Random number generator → Spin the wheel →
Table of contents

Dice notation, in one table

The number before the d is how many dice; the number after is how many sides. Everything else is added on. Capitals and spaces do not matter, so 2D6 + 3 works as well as 2d6+3.

Type Means
d20One twenty-sided die. The 1 in front is optional.
3d6Three six-sided dice, added together.
2d6+3Two d6, plus three. Use - to subtract.
1d8+2d6Different dice in one roll — a weapon and a bonus, say.
4d6kh3Roll four d6 and keep the highest three. k3 means the same.
2d20kh1Advantage: roll two d20 and keep the higher.
2d20kl1Disadvantage: roll two d20 and keep the lower.
d% or d100Percentile, 1 to 100.

A mistake is pointed out as you type — “Can only keep between 1 and 4 of 4 dice” — rather than producing a number that quietly means something else.

Fairer than the dice in the box

Physical dice are only as fair as their manufacture. Drilled pips take more material out of the six face than the one, moulded dice cool unevenly, and an off-balance d20 can favour a face often enough to show up over a session or two. Players test for it by floating dice in salt water and watching which side keeps turning up.

A virtual die is only as fair as its arithmetic, and there is a common mistake there too. Random bytes come in 256 values; a d6 has six faces; 256 does not divide by six. Take the remainder and the faces 1 to 4 each get one extra byte value that maps to them. This roller reads just enough random bits to cover the faces, discards any value past the last face, and draws again — so each face is exactly one in six, one in twenty, one in a hundred. The randomness itself comes from crypto.getRandomValues, your operating system’s cryptographic source.

Every die is shown, not just the total, and dice a keep rule drops are struck through rather than hidden. At a table, being able to see the whole roll is what makes a digital die trustworthy.

Reading the odds

Each result shows the lowest and highest total the roll could have made, which is the quickest sanity check on a long expression. Where the total lands inside that range depends on how many dice are involved. One die is flat: a d20 gives a 1 exactly as often as a 20. Add dice together and the totals pile up in the middle — 3d6 lands on 10 or 11 a quarter of the time and on 3 or 18 less than once in a hundred rolls.

Advantage is worth more than it sounds. Rolling two d20 and keeping the higher raises the average from 10.5 to about 13.8, and the chance of a natural 20 from 5% to 9.75%. Disadvantage does the reverse. Keeping the best three of four d6 raises an ability score’s average from 10.5 to about 12.2.

For a bot, a play-by-post game or a spreadsheet, the same roller is an API: /api/v1/random?dice=4d6kh3 returns every die and the total as JSON.

Frequently asked questions

The Zeal Promise

Non-negotiable, on every tool we ship.

  • No sign-up — ever
  • No watermarks on any output
  • No ads near the download button
  • Works fully on mobile
  • Privacy-first: processing stays in your browser
  • Open source (MIT) — audit it, contribute, self-host
  • Zero runtime dependencies in tool logic