Utilities

Dice Roller

Roll d4, d6, d8, d10, d12, d20, d100 or any custom die, or type notation like 3d6+2, 2d20kh1 for advantage or 4d6dl1, and see every die and the total.

Dice Roller
Tap dice to add them, or type notation such as 3d6+2, 2d20kh1 (advantage) or 4d6dl1 (drop lowest).
Sides from 2 to 1000

1d20

Presets:

Press Roll to throw the dice.

Results come from your browser's cryptographic random number generator with unbiased sampling, and nothing leaves your device.

History

Your recent rolls will appear here.

About this tool

The Dice Roller is a quick virtual dice tray for tabletop games, board games and classroom maths. Tap the d4, d6, d8, d10, d12, d20 or d100 to add dice to your roll, add a custom die with any number of sides from 2 to 1,000, or type standard dice notation directly: 3d6+2, 1d8+1d6-1, d% for percentile, 2d20kh1 to keep the highest (advantage), 2d20kl1 to keep the lowest (disadvantage), 4d6dl1 to drop the lowest when rolling ability scores, and dh for drop highest. If the notation has a mistake, it says what is wrong and where. Each roll shows every die in its own shape, greys out dropped dice, and gives the group subtotals, the total and the possible range, with a short tumble animation that is skipped if your device asks for reduced motion. A history keeps your last 20 rolls. Rolls use your browser's cryptographic random generator with unbiased sampling, and everything stays in your browser.

How to use the Dice Roller

  1. Tap the dice you want to roll; tapping the same die again adds another (three taps on d6 makes 3d6).
  2. Or type dice notation in the box, such as 1d20+5, 2d20kh1 or 4d6dl1, or pick a preset.
  3. Add a custom die by entering its number of sides and pressing Add.
  4. Press Roll (or Enter) to see each die, the kept and dropped dice, and the total.
  5. Check the history for your last 20 rolls.

Use it from your code

The Dice Roller is also a REST API endpoint. Create a free API key and call it from your own scripts and apps.

curl -X POST https://opentools.ca/api/v1/tools/dice-roller \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"notation": "4d6dl1+2"}'

Give us your feedback

Help us improve Dice Roller!

Frequently asked questions

What dice notation does it understand?

NdS rolls N dice with S sides (d20 means 1d20, d% means d100). Join groups and fixed numbers with + or -, as in 2d6+1d4-1. After a group, kh or kl keeps the highest or lowest dice, and dh or dl drops the highest or lowest, each followed by how many (2d20kh1, 4d6dl1). k3 is short for kh3 and d1 for dl1.

How do I roll with advantage or disadvantage?

Use 2d20kh1 for advantage (roll two d20s, keep the higher) and 2d20kl1 for disadvantage (keep the lower). Add your modifier at the end, like 2d20kh1+5. Both are also available as presets.

Are the rolls fair?

Yes. Each die uses your browser's cryptographically secure random number generator with rejection sampling, which discards the few random values that would otherwise make some faces slightly more likely. Every face of every die has an equal chance, independently of earlier rolls.

What are the limits?

Up to 100 dice in one group and 200 dice in a roll, dice with 2 to 1,000 sides, up to 12 groups and modifiers, and fixed modifiers up to 10,000.

Does it support exploding dice or rerolls?

Not yet. It handles sums, modifiers, and keeping or dropping the highest or lowest dice.

Dice Roller screenshot