A die showing two, for random rolls, board games and chance. On a 24×24 grid in stroke, duotone and fill, free under MIT.
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M6 3H18C19.6569 3 21 4.34315 21 6V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V6C3 4.34315 4.34315 3 6 3Z"/>
<path d="M7.3333 6C8.0697 6 8.6667 6.5969 8.6667 7.3333C8.6667 8.0697 8.0697 8.6667 7.3333 8.6667C6.5969 8.6667 6 8.0697 6 7.3333C6 6.5969 6.5969 6 7.3333 6ZM16.6667 15.3333C17.4031 15.3333 18 15.9303 18 16.6667C18 17.4031 17.4031 18 16.6667 18C15.9303 18 15.3333 17.4031 15.3333 16.6667C15.3333 15.9303 15.9303 15.3333 16.6667 15.3333Z" fill="currentColor" stroke="none"/>
</svg>Also called
What someone searching for this drawing would have typed instead. These are the words the browser's search matches on.
- die
- two
- random
- board game
- roll
- gamble
- chance
- game
- luck
Related icons
The rest of the dice family first, then the Shapes shelf.
FAQ
Answered from dice-2's own facts: its shelf, the weights it was drawn in, its siblings and its dates.
- What is the dice-2 icon for?
- A die showing two, for random rolls, board games and chance. It is filed under Shapes in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as die, two, random, board game, roll, gamble, chance, game and luck, and the browser's search matches all of those.
- What styles does the dice-2 icon come in?
- All three: stroke, duotone and fill. They are drawn from the same geometry, so swapping weight never moves anything.
- Is there a square or circle version of dice-2?
- No. dice-2 is drawn as a bare glyph, and the set has no boxed variant of it.
- What other icons go with dice-2?
- dice-1, dice-3, dice-4, dice-5, dice-6 and dice-6-horizontal, and 12 more, all shown below. The dice family is listed first, then the rest of the Shapes shelf, so the row under this one is the useful one even where a shelf runs long.
- How do I import dice-2 in React?
- <Dice2 /> is the component, and the weight decides the module: stroke from "@keyline-icons/react", duotone from "@keyline-icons/react/duotone" and fill from "@keyline-icons/react/fill". It takes the usual SVG props plus a size, so <Dice2 size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
- Where is the dice-2 SVG?
- icons/stroke/dice-2.svg, icons/duotone/dice-2.svg and icons/fill/dice-2.svg in the repository, normalised: no wrapper, no ids and no classes to strip out. The tabs above hand you the same drawing as SVG or JSX without the download, and neither needs an install.
- When was dice-2 added to the set?
- Added 9 Aug 2026, and last redrawn 9 Aug 2026. It ships in v0.1.0, so an install at that version or later has it.
Questions about the set rather than about this drawing are answered where they belong. The home page covers what the set is, how the three styles differ, why some icons come boxed and where the Figma file is; installing the set in a shadcn/ui project covers the React package, the CLI and using an icon without React. The MIT licence is stated in the footer of every page.