How to Add A Dice Game to Your Website

July 28, 2026

Jotform’s Dice Game widget lets you add an interactive dice roller to your website for games, activities, and other fun experiences. You can configure different dice types, display custom results, and create a rolling experience that fits your own rules or use case.

Whether you’re creating a classroom activity, tabletop game, promotional campaign, or interactive website, the widget includes several customization options to match your needs. Once everything is set up, simply copy the embed code and add it to your website.


To add a Dice Game on your website, you’ll first need to configure the Dice Game widget and copy its embed code. Here’s how to get going:

  1. On the top-left side of your Workspace page, click on Create.
Jotform Workspace with the Create button highlighted in the top-left corner, used to create a new website widget
  1. Then, in the menu that opens up, select Website Widget.
Jotform Create menu displaying the Website Widget option for creating a new website widget
  1. Next, in the Search bar in the upper-left corner of Choose Website Widget, enter Dice Game.
  2. Then, at the bottom of the Dice Game widget in the search results, click on Use Widget.
Jotform Choose Website Widget window with Dice Game entered in the search bar and the Use Widget button visible on the Dice Game widget card in the search results
  1. Now, in the Widget Properties menu that opens on the right side of Website Widgets, under the General tab, set up these properties:
    • Heading — Keep this on to display the heading above the dice board, or toggle it off to hide the heading.
    • Heading Text — Delete the existing text in the input box and enter the heading you want to display.
    • Description — Delete the existing description in the input box and enter the supporting text you want to display below the heading.
Jotform Website Widget Builder displaying the Widget Properties panel under the General tab with Heading, Heading Text, and Description settings for configuring the Dice Game widget
  1. Then, under the Dice section, you’ll notice that it already includes sample dice. You can manage them using the available action icons:
    • Downward Arrow icon — Click on it to configure the dice’s dimensions and values.
    • Duplicate icon — Click on it to create a copy of the dice.
    • Trash Can icon — Click on it to remove the dice.
  2. To add another dice, click on Add Dice.
Jotform Website Widget Builder displaying the Widget Properties panel under the General tab with the Dice section, including sample dice, Configure, Duplicate, and Delete action icons, and the Add Dice button for configuring the Dice Game widget
  1. Then, in the new dice that appears, click on and hold the Dimension slider handle, then drag it to set the number of sides for the dice.
Jotform Website Widget Builder displaying a newly added die in the Dice section with the Dimension slider for adjusting the number of sides in the Dice Game widget
  1. Next, scroll down and adjust these settings:
    • Roll Button Text — Delete the default button text in the input box and enter the text you want to display on the roll button.
    • Sounds — Leave this enabled to play sound effects when the dice are rolled, or toggle it off to disable all sounds.
    • Show History — Keep this on to display the result history below the dice, or toggle it off to hide it.
    • History Title — This is only available when Show history is enabled. Replace the default title in the input box with the heading you want to display above the result history.
    • Result Operation — Select how the dice values are calculated from the Dropdown menu.
Jotform Website Widget Builder displaying the Widget Properties panel under the General tab with Roll Button Text, Sounds, Show History, History Title, and Result Operation settings for configuring the Dice Game widget
  1. Now, under the Style tab, customize these properties:
    • Theme — Keep the default Classic option selected, or click on the Dropdown menu and select the visual style you want to use for the website widget.
    • Corner Radius — Select one of the following options to choose the corner style for the website widget, result panel, history, and button:
      • Square
      • Rounded
      • Circular
    • Jotform Branding — Keep this on to display Jotform branding in the website widget, or toggle it off to hide it.
    • Font — Toggle this on to select a custom font for the website widget. When this option is off, the website’s font is used.
    • Custom CSS — Toggle this on to add custom CSS and apply advanced styling to the website widget.
Jotform Website Widget Builder displaying the Widget Properties panel under the Style tab with Theme, Corner Radius, Jotform Branding, Font, and Custom CSS settings for customizing the Dice Game widget
  1. Next, under the Layout tab, configure these properties:
    • Widget Width — Drag the slider to adjust the maximum width of the dice game.
    • Roll Speed — Drag the slider toward Slower or Faster to adjust the duration of the 3D dice roll animation.
  2. Once you’ve finished configuring the widget, in the pink navigation bar on the top of the page, click on Publish.
Jotform Website Widget Builder displaying the Widget Properties panel under the Layout tab with Widget Width and Roll Speed sliders for the Dice Game widget, and the Publish button visible in the pink navigation bar at the top of the page

Note

If you’re not logged in, you’ll be asked to log in to your Jotform account or sign up for one. Once you’ve done that, you’ll be able to get the embed code for your widget.

  1. Then, in the Embed section, click on Copy Code.
Jotform Embed section displaying the Copy Code button for copying the published Dice Game widget embed code
  1. To view embedding instructions for a supported website builder, click on Platforms in the menu on the left side of the page.
  2. Next, in the Platforms section on the right, select the platform you want to view embedding instructions for. Or, use the Search bar at the top of the section to find it easily.
Jotform Embed page displaying the Platforms menu on the left and a list of supported website builders on the right, with a Search bar for finding platform-specific embedding instructions for the Dice Game widget
  1. Then, follow the steps in the How to Embed Your Widget section to add it to your website.
Jotform Embed page displaying the How to Embed Your Widget section with instructions for adding the Dice Game widget to a supported website platform

That’s it! Your Dice Game widget will appear on your website with all your customizations applied to it. See the screenshot below for an example of how it looks on a website.

Embedded Dice Game widget displayed on a website, showing the customized dice, roll button, result panel, and roll history with the selected theme and layout settings

Note

You can manage the website widgets you’ve created at any time from your account. For a full breakdown of how to do it, head over to our guide on How to Manage Website Widgets.

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Podo Comment Be the first to comment.
Still have unanswered questions?

We’re here for you 24/7, anytime you need us day or night. Have a question or need a hand with something? Our team is always ready to help out.