Dice Roller

Updated July 2026

Roll virtual dice online — d4, d6, d8, d10, d12, d20 or d100. Roll a single die or many at once, add a modifier, or type dice notation like 3d6+2. Every roll is fair and unbiased, generated privately in your browser.

This dice roller produces fair, random rolls using your browser's secure random number generator — so a d20 lands on each number from 1 to 20 with equal odds, just like a real die. Nothing is sent to a server.
Roll 1 to 20 dice at once.
Added to the total.
Type XdY+Z and press Roll to use notation instead of the fields above.
Total
Rolled
Sum of dice
Individual rolls
Recent rolls

    How this dice roller works

    A die is rolled by picking one of its faces at random with equal probability. This tool does the same digitally: for each die you ask for, it draws a number between 1 and the number of sides — 1 to 6 for a d6, 1 to 20 for a d20, and so on — then lists every result and adds them into a total. If you set a modifier, it is added (or subtracted) from that sum.

    To keep the odds fair, the roller uses your browser's cryptographically strong random source, crypto.getRandomValues, together with rejection sampling. Naively taking a random byte modulo the number of faces would slightly favour the lower faces; rejection sampling discards the few values that would cause that imbalance, so every face is exactly equally likely. If secure randomness is unavailable, it falls back to Math.random.

    Dice notation (XdY+Z)

    Tabletop games describe rolls with a compact shorthand called dice notation. You can type it directly into the notation box above.

    NotationMeaningExample result
    1d6Roll one six-sided die1–6
    2d6Roll two six-sided dice, sum them2–12
    3d6+2Roll three d6 and add 2 to the total5–20
    1d20+5Roll one d20 and add 5 (a typical D&D attack roll)6–25
    1d100Roll percentile dice (1–100)1–100

    Reference note: X is the number of dice, Y is the number of sides per die, and Z is an optional modifier added to (+) or subtracted from (−) the total. The modifier applies once to the whole roll, not to each die.

    Worked example: rolling 3d6+2 rolls three six-sided dice — say 4, 1 and 6 — for a sum of 11, then adds the +2 modifier for a final total of 13.

    Frequently asked questions

    How does the dice roller work?
    Pick a dice type (such as d6 or d20) and how many dice to roll, then press Roll. The tool generates a random result for each die using your browser's secure random number generator, shows every die result, and adds them up — applying any modifier you set.
    Is the dice roller truly random?
    It uses crypto.getRandomValues, your browser's cryptographically strong random source, with rejection sampling so every face is equally likely and there is no bias toward any number. If that source is unavailable, it falls back to Math.random.
    What is dice notation like 3d6?
    Dice notation is written as XdY+Z. X is the number of dice, Y is the number of sides per die, and the optional +Z or -Z is a modifier added to the total. So 3d6+2 means roll three six-sided dice and add 2 to the sum.
    What dice can I roll?
    You can roll the standard polyhedral set used in tabletop games: d4, d6, d8, d10, d12, d20 and d100 (percentile). Each die is numbered from 1 up to its number of sides.
    Can I roll multiple dice at once?
    Yes. Choose how many dice to roll (for example 1 to 20) and the tool rolls them together, lists each individual result, and shows the combined total plus any modifier.
    Is this good for D&D and board games?
    Yes. It supports the dice and notation used in Dungeons & Dragons and most tabletop and board games, including the d20 and rolls like 1d20+5 or 2d6, so you can play without physical dice.
    ⚡ Dice Roller — by larely ↗

    Related tools

    Coin Flip

    Flip a fair coin online — heads or tails — and flip many at once.

    Secret Santa Generator

    Randomly assign Secret Santa pairs for a group, with no self-matches.

    Random Team Generator

    Randomly split a list of names into fair teams by count or size.

    Image Compressor & Converter

    Compress, resize and convert JPEG, PNG and WebP images in your browser — nothing is upl…

    Cipher Encoder & Decoder

    Encode and decode Caesar, ROT13, Vigenère and Atbash ciphers, with brute-force.

    Username Generator

    Generate cool, aesthetic, gamer or professional usernames and handles instantly.

    Business Name Generator

    Generate brandable business and company name ideas from a keyword.

    Email Signature Generator

    Create a professional HTML email signature for Gmail or Outlook, in your browser.

    Golden Hour Calculator

    Sunrise, sunset, golden & blue hour and moon phase for any location and date — for phot…

    Catering Calculator

    How much food, non-alcoholic drinks, ice and cake to serve for any number of party guests.

    Road Trip Cost Calculator

    Estimate road-trip fuel cost and compare gas vs EV, split among travelers.

    Random Picker

    Random number generator, dice roller, coin flip and random name picker.

    Browse all 251 free tools →