Skip to content
Toolcroft

Dice Roller - Standard Dice & Custom Dice Notation

Random Generators

Roll d4, d6, d8, d10, d12, d20, or d100 in Simple mode; use Dice Notation for custom sides like 1d7, modifiers, keep, and explode rules.

Quick rolls:

Pick a die type and click Roll to get started.

How to use this tool

  1. Choose a die type. In Simple mode, choose a preset d4, d6, d8, d10, d12, d20, or d100, then set the number of dice and an optional modifier. For custom sides, use Dice Notation instead.
  2. Or type an expression. Switch to Dice Notation for expressions like `4d6kh3` or `2d20kl1+5`, or for custom-sided dice such as `1d7`. Click an example chip to prefill.
  3. Roll. Click Roll (or press Enter in the notation input). Each die result is shown individually; dropped dice appear grayed out.
  4. Review history. Your last 20 rolls are listed below the result. Click any expression in the history to re-run it in the notation input.

Simple presets and custom-sided dice

Simple mode offers one-tap presets for the standard polyhedral dice: d4, d6, d8, d10, d12, d20, and d100. Choose a preset, set how many to roll, and add an optional modifier.

For a die with a different number of sides, switch to Dice Notation and enter an expression such as 1d7 or 2d30. Notation accepts custom side counts from d2 to d10,000, so the Simple presets are not the limit on supported dice.

What dice notation is supported

The Notation tab accepts full dice notation. Here are the building blocks:

  • 2d6: roll 2 six-sided dice and add the results
  • 2d6+3: same, plus a flat modifier of +3
  • 4d6kh3: roll 4d6, keep the highest 3 (drop the lowest)
  • 2d20kl1: roll 2d20, keep the lowest 1 (disadvantage in D&D 5e)
  • 3d8!: exploding dice: re-roll and add whenever the max value is rolled
  • 2d6+1d4-2: two dice groups plus a negative modifier

You can combine these freely. 4d6kh3+1d4! is a valid expression. Dice count is capped at 100 per group and 200 total; sides can be 2–10,000.

How randomness works

Every die roll calls crypto.getRandomValues: the browser's cryptographically secure random number generator. It is seeded by your operating system's entropy pool, making it far stronger than Math.random(). Rejection sampling eliminates modulo bias: values that would skew the distribution are discarded and a new value is drawn instead.

Keep-highest and keep-lowest

4d6kh3 is the classic D&D ability score roll: roll four d6s, discard the lowest. kl does the opposite: keep the lowest N. k without a suffix defaults to keep-highest. Dropped dice are shown grayed out with a strikethrough in the result; they don't contribute to the total.

Exploding dice

When a die rolls its maximum value (e.g., 6 on a d6), an exploding die (`!`) is re-rolled and the new value is added to the chain. This continues until a non-max value is rolled, up to 20 explosions per die (a safety cap that is statistically never reached). The full explosion chain is shown below the dice chips for transparency.

Common RPG expressions

  • D&D 5e ability score: 4d6kh3
  • Advantage: 2d20kh1
  • Disadvantage: 2d20kl1
  • Fireball (average): 8d6
  • Sneak attack (10th level rogue): 5d6
  • Savage Worlds trait: 1d8!

Frequently asked questions

What dice notation is supported?

Simple mode has preset buttons for d4, d6, d8, d10, d12, d20, and d100. For custom-sided dice, switch to Dice Notation and enter an expression such as `1d7` or `2d30`; notation supports sides from d2 to d10000. It also supports modifiers (`2d6+3`), keep-highest (`4d6kh3`), keep-lowest (`2d20kl1`), the `k` shorthand (`4d6k3`), exploding dice (`3d8!`), and multiple groups (`2d6+1d4-1`), with up to 100 dice per group.

What are exploding dice?

Exploding dice (marked with `!`) mean: whenever a die rolls its maximum value, roll it again and add the result. For example, a d6 that rolls 6 gets re-rolled; if that also rolls 6, it re-rolls again. The total is the sum of the entire chain. This is common in systems like Savage Worlds and Shadowrun.

What does 4d6kh3 mean?

`4d6kh3` means "roll 4 six-sided dice and keep the highest 3". This is the standard D&D ability score generation method. The lowest die is dropped, and the kept dice are totalled. Dropped dice are shown in gray.

What is advantage and disadvantage (D&D 5e)?

Advantage is `2d20kh1` - roll two d20s, keep the highest. Disadvantage is `2d20kl1` - roll two d20s, keep the lowest. Type either expression directly in the Notation tab, or use the quick-access buttons.

Is the randomness truly random?

Yes. Every roll uses `crypto.getRandomValues` - the browser's cryptographically secure random number generator, seeded by OS entropy. Rejection sampling ensures uniform distribution with zero modulo bias.

Browse all random generators