Search DevFox

Search tools and pages.

Dice Roller

Roll any combination of dice using d-notation (e.g. 1d20+3, 4d6) with summed results

Roll:
Generated output

Output will appear here...

Advertisements

content bottomup to 300x250

What is Dice Roller

Written by Giorgos Kostas. Last reviewed:

Dice Roller accepts standard tabletop d-notation — like `2d6`, `1d20+3`, or `4d8-1` — and returns each individual roll along with the sum, modifier, and grand total.

It's perfect for tabletop RPGs (Dungeons & Dragons, Pathfinder, Call of Cthulhu), probability demos, and loot/damage rolling without installing an app.

Why use it

  • Run virtual tabletop sessions without physical dice.
  • Quickly roll 4d6 drop-lowest for character stats.
  • Simulate large dice pools for probability demos.
  • Share fair rolls in chat by copy-pasting output.
  • Teach probability concepts with visible per-roll values.

Features

  • Standard d-notation (NdM±K)
  • Supports 1–1000 dice per roll
  • Shows each individual roll
  • Computes sum, modifier, and total
  • Processes Dice Roller locally in your browser, no upload required

How to use Dice Roller

  1. Type d-notation. e.g. 1d20, 4d6+2, 3d8-1.
  2. Click Run. See per-roll values, sum, and total.
  3. Share results. Paste output into your game chat.

Example (before/after)

Input

2d6+3

Roll

Roll: 2d6+3
Rolls: 4, 5
Sum of dice: 9
Modifier: +3
Total: 12

Common errors

Invalid notation

The format must be NdM with optional ±modifier.

Fix: Example: 1d20, 4d6+2, 3d8-1.

Too many dice

Rolls are capped at 1000 dice.

Fix: Reduce the dice count for large simulations.

FAQ

Does it support modifiers?

Yes — +N or -N modifiers are added to the sum.

What's the randomness source?

Math.random, which is sufficient for games and demos but not cryptographic.

Can I roll 100 dice?

Yes — up to 1000 dice per roll.

Is input uploaded?

No — the roller runs entirely in your browser.

Are drop-lowest mechanics supported?

Not directly — roll 4d6 and discard the lowest yourself, or use the output's rolls list.