Roll a D20

Roll a fair 20-sided die for D&D and tabletop RPGs. Add a modifier, or roll several d20s at once — all in your browser.

1d20
Press Roll to throw the dice.
Free, no sign-up Cryptographically fair Works offline

Rolling a d20

The twenty-sided die, or d20, is the signature die of Dungeons & Dragons and most tabletop role-playing games, used for attack rolls, saving throws and ability checks. This roller is preset to a single d20; add a modifier for your bonus, or raise the dice count to roll several at once. Each roll uses cryptographic randomness with rejection sampling, so all twenty faces are equally likely.

Frequently Asked Questions

How do I roll a d20?
Press Roll — the die is already set to a d20, so you get a fair result from 1 to 20. Set the modifier field to add your bonus (for example +5), and the total updates with the breakdown shown. Advantage and disadvantage are two d20s read individually, so set the dice count to 2 and take the higher or lower yourself — the tool reports both dice and their sum rather than picking one.
Is this d20 fair for D&D?
Yes — this d20 is fair enough for tabletop play. It uses the Web Crypto API with rejection sampling, so every face from 1 to 20 has an exactly equal chance, unlike a plain Math.random() roll which can carry a small bias. Every face therefore lands 5% of the time over the long run, natural 1s and natural 20s included.
Can I add a bonus to the d20 roll?
The modifier field takes any whole number from -100 to 100 and is added once to the dice total, so a +5 attack bonus is entered as 5. The result line shows the die, the modifier and the final total, which is the same breakdown you would write as 1d20 + 5. Enter a negative number for a penalty.
How often should a natural 20 come up?
A natural 20 is one face out of twenty, so it appears on 5% of rolls — about once every twenty presses on average. Streaks in either direction are normal: over 100 rolls, anywhere from roughly one to ten natural 20s is unremarkable. The generator keeps no memory between rolls, so a long drought does not make the next 20 any more likely.