Guide
Rolling tabletop RPG dice with notation: keep, drop, explode, count successes
Tabletop role-playing games run on dice, and rulebooks write rolls in a shorthand: 2d6+3, 4d6 drop the lowest, roll with advantage. Typing the shorthand into a roller is quicker than counting out dice and adding, and a log of rolls settles any argument afterwards. This page reads that shorthand and shows every die that was rolled, not just the total.
The notation
The basic form is NdS: N dice, each with S sides, so 2d6 is two six-sided dice. The number of dice can be left out for one, as in d20. A plain number is a modifier, and terms are joined with plus or minus: 1d8+1d4-1 rolls an eight-sided and a four-sided die and subtracts one. A percentile die is d%, and fudge dice, with faces of minus one, zero and plus one, are dF. Spaces and capital letters do not matter.
Keep and drop
The letters k and d followed by h or l keep or drop the highest or lowest dice. 4d6dl1 rolls four dice and drops the lowest one, the usual way to roll an ability score. 2d20kh1 rolls two twenty-sided dice and keeps the higher, which is rolling with advantage in the most popular game; 2d20kl1 keeps the lower, disadvantage. The number after the letters says how many, and it can be left out for one. In the roll log the dropped dice are struck through.
Exploding dice
A ! after the dice makes any die that shows its highest face roll again, adding the new roll, and that can repeat, up to 20 extra rolls for each die. 1d6! rolls a six-sided die, and if it shows 6 rolls again, and so on. Exploded rolls have a dashed outline. Exploding dice cannot be combined with keep or drop in one term; the page refuses and says so.
Counting successes
A comparison after the dice counts the dice that meet it, rather than adding. 5d10>=8 rolls five ten-sided dice and counts those showing eight or more; the total is the number of successes. The operators are greater, greater or equal, less and less or equal. Many systems use this kind of roll, called a dice pool. The dice pool panel does the same in a form: choose the number of dice, the sides and the number a die must reach, and switch on exploding or on the rule that every 1 cancels a success.
Ability scores
The ability-score panel rolls six scores at once by one of three methods: 4d6 drop the lowest, 3d6 straight or 2d6 plus 6. It shows the six totals and their sum, average, highest and lowest, and hovering over a score shows the dice. Averages differ: 3d6 averages 10.5, 2d6 plus 6 averages 13, and 4d6 drop lowest about 12.2.
A worked example
Type 4d6dl1 and press Roll. The log shows one total in large type, for instance 14, with four dice beneath it and one struck through. The total is the sum of the other three. Type 2d6!kh1 and the page shows an error that exploding dice cannot be combined with keep or drop. Press the Advantage button and the page rolls 2d20kh1. Roll the pool of six ten-sided dice with a target of 8 and the result shows each die, the net successes and how many came up at 8 or more.
Fair dice
Every roll uses the browser’s cryptographic random number generator, so each face is equally likely and one roll has no memory of the last. That is the same as a fair physical die, and better than a worn or weighted one. Over a very large number of rolls the average of a d6 settles at 3.5.
Limits
The notation covers sums, keep and drop, explode, success counts and fudge and percentile dice. It does not support rerolling, nested expressions, macros or the rules of any particular game. A roll can have up to 100 dice of up to 1,000 sides and 20 terms, and the log keeps the last 30 rolls.
Related tools
Dice Roller rolls simple dice. Card Deck Shuffler and Dealer deals cards. Flip a Coin settles a two-way choice, and Random Number Generator picks numbers in any range.
Checked against the current version of the RPG Dice Roller on .

