What the Minesweeper embed code looks like
The generator produces two things, and you paste both. First an <iframe>
pointing at our embed page, which is the game itself. Then a short paragraph underneath it
with a link back to this site. There is nothing else to install β no script tag, no plugin,
no account for your visitors:
<iframe
src="https://play-minesweeper.games/embed/?size=beginner"
width="316"
height="437"
frameborder="0"
title="Minesweeper Game"
allow="clipboard-write"></iframe>
<p style="font:12px/1.5 Tahoma,'MS Sans Serif',Geneva,sans-serif;color:#555555;margin:6px 0 0;max-width:316px">
<a href="https://play-minesweeper.games/" style="color:#555555">Play Minesweeper</a> β free online Minesweeper, no download
</p> Because the game is a link rather than a copy, the board on your site improves whenever the game does, and it costs you nothing in bandwidth or storage.
The credit line, and why it is there
That second part is the whole deal. The embed is free, unmetered and has no signup because the sites that use it link back β that is what pays for it. So the credit link is always included in the snippet, and we are asking you to paste it along with the game.
We would rather be plain about it than hide it, so: it is ordinary HTML sitting in your own page, not something injected at runtime. You can see exactly what it says above. Restyle it to match your design, move it above the board, change the inline colour β all fine. Just keep the link pointing at the game.
The separate Show "Powered by" inside the game checkbox in the generator is a different thing. It controls a small line drawn inside the game frame, and it is genuinely optional β switch it off for a cleaner board and the iframe gets 30 pixels shorter. Turning it off does not remove the credit link below the frame, and no URL parameter does.
Choosing a board size that fits your layout
The most common problem with any game iframe is a board that is wider than the column it sits in. The frame does not scale its contents, so an oversized board scrolls sideways instead of shrinking. Match the board to the space you have:
- Beginner (9×9, 10 mines) β about 316 × 437 pixels. Fits sidebars, narrow themes, Notion columns and phone screens. Start here if you are unsure.
- Intermediate (16×16, 40 mines) β about 540 × 661 pixels. Suits a standard blog post column on desktop.
- Expert (30×16, 99 mines) β about 988 × 661 pixels. Needs a full-width layout and a laptop screen.
- Custom β anything from 5×5 to 30×30 with your own mine count, for a board that fits your design exactly.
URL parameters for the Minesweeper widget
Everything the generator does is expressed in the embed URL, so you can also hand-edit it later without coming back here:
sizeβbeginner,intermediate,expert, or a custom value such as12x12minesβ the mine count, for custom board sizesthemeβdarkfor dark pages,retrofor the original Windows 95 silver-and-bevel lookbrandingβ set tofalseto hide the "Powered by" line drawn inside the game frame. It has no effect on the credit link below the iframe, which lives in your page rather than ours
For example, ?size=12x12&mines=20&theme=retro gives a slightly larger than
beginner board rendered like the 1995 original.
Where a Minesweeper widget earns its place
- Puzzle and gaming blogs β a playable board inside a post about strategy keeps readers on the page
- Teaching pages β Minesweeper is a clean, tangible example of constraint-based deduction and probability
- Team wikis and intranets β a 9×9 board on the break-room page needs no login and no install
- Personal and retro sites β the retro theme is a period-correct fit for Windows 95 style layouts
- 404 and maintenance pages β turn a dead end into something to do
Terms of use
The Minesweeper embed is free on any website. We only ask that you:
- Paste the credit link along with the iframe, and leave it pointing at the game. Restyling or repositioning it is fine
- Don't wrap or modify the embed to misrepresent where the game comes from
- Don't use it for anything illegal