Fun

Roll Dice

Roll dice using standard notation, like 2d6 or 1d20+5. Uses a cryptographically secure random source.

GET/api/roll?dice=

Query parameters

NameTypeRequiredDescription
dicestringOptionalNotation NdS with optional +/- modifier (up to 100 dice, 2-1000 sides). Default 1d6.

Try it

Saved only in this browser. Requests use your key and count toward your quota. Get a key

GET /api/roll

Example request

curl "https://your-app.com/api/roll?dice=2d6%2B3" \
  -H "x-api-key: YOUR_API_KEY"

Response

{
  "dice": "2d6+3",
  "rolls": [5, 4],
  "modifier": 3,
  "total": 12
}