Dice Notation Roller

Roll RPG dice notation: 3d6, 1d20+5, 4d6kh3.

Open tool

Overview

The Dice Notation Roller parses and evaluates the standard tabletop RPG dice expressions you already know — 3d6, 1d20+5, 4d6kh3, 2d10! — and rolls them with a cryptographically secure random source. Type any well-formed expression and the tool returns each individual die, the modifiers applied and the final total.

This roller is designed for game masters running Dungeons & Dragons or Pathfinder sessions, players who lost their physical dice and developers prototyping loot tables or damage formulae. Long-tail searches like "online dice notation parser", "roll 4d6 drop lowest" and "advantage roll calculator" all resolve here.

How it works

Dice notation follows a small grammar. NdS rolls N dice with S sides; the optional suffix kh/kl keeps the highest or lowest K dice; ! triggers exploding dice — a maximum-roll re-rolls and adds; + and - apply flat modifiers; and dl/dh drops the lowest or highest. The roller tokenises the expression, builds an evaluation tree and walks it left to right, drawing fresh random values from the OS CSPRNG for every die.

Because each die is sampled independently from a uniform integer range, distributions match the underlying maths exactly. For example, 4d6kh3 (the classic D&D ability-score roll) produces a distribution skewed toward higher numbers because the lowest die is discarded. The tool surfaces the dropped or exploded rolls so you can verify the result.

Examples

3d6 → [4, 2, 6] = 12
1d20+5 → [14] + 5 = 19
4d6kh3 → [6, 3, 5, 2] keep [6, 5, 3] = 14
2d10! → [10!, 4, 7] = 21  (a 10 exploded into a re-roll)

FAQ

Which dice notations are supported?

The roller understands NdS, modifiers (+, -), keep-highest/keep-lowest (khN, klN), drop-highest/drop-lowest (dhN, dlN) and exploding dice (!). Expressions can be combined, e.g. 2d6+1d4+3.

Why are the rolls cryptographically random?

Tabletop rolls deserve provably-unbiased randomness. The OS CSPRNG removes any pattern that a deterministic PRNG could leak, which matters when you roll many dice in a session.

Can I roll advantage or disadvantage?

Yes. 2d20kh1 gives advantage (roll two d20, keep highest) and 2d20kl1 gives disadvantage (keep lowest), matching the D&D 5e rules.

What is the maximum die size?

Practical limits are around a few thousand sides per die and a few hundred dice per expression. Larger inputs are rejected to keep response times instant.

Are the individual rolls visible?

Every die result is shown alongside the total, including dropped and exploded values, so you can audit the outcome.

Try Dice Notation Roller

An unhandled error has occurred. Reload ×