Skip to content
Minesweeper

Embed Minesweeper on Your Website

A free Minesweeper widget for any site. Build your snippet below β€” choose the board size, mine count and theme, then copy and paste it wherever you want the game to appear. The snippet is two parts: the game frame, and a one-line credit link underneath it.

Embed Options

This only affects the small line inside the game frame. Either way, the snippet below ends with a one-line β€œPlay Minesweeper” credit link under the game β€” that link is how the embed stays free, and it is plain HTML you can see and style yourself.

Paste both lines: the game frame and the credit link underneath it.

<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>

URL Parameters

  • size - beginner, intermediate, expert, or WxH (e.g., 10x10)
  • mines - number of mines (for custom sizes)
  • theme - light, retro, or dark
  • branding - false hides the "Powered by" line inside the game frame. It does not remove the credit link below the iframe, which is part of the snippet you paste into your own page.

Live Preview

Play Minesweeper β€” free online Minesweeper, no download

Iframe size: 316Γ—437px, plus the caption line underneath.

Setup guides for your platform

The snippet is the same everywhere. What changes is where the platform keeps its HTML field and what it strips out on save. These guides give the exact menu path, the right board size for that layout, and the specific thing that breaks embeds there.

Or browse all Minesweeper embed guides by platform.

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 as 12x12
  • mines β€” the mine count, for custom board sizes
  • theme β€” dark for dark pages, retro for the original Windows 95 silver-and-bevel look
  • branding β€” set to false to 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

Minesweeper embed FAQ

Is the Minesweeper embed free to use?
Yes, on any site, commercial or not. There is no account, no API key and no usage limit. The snippet you copy includes a short credit line under the game with a link back to play-minesweeper.games β€” that link is how the embed stays free, and we ask that you keep it. It is ordinary HTML in your own page, so you can restyle it to match your design.
How do I add Minesweeper to my website?
Choose a board size and theme in the generator above, copy the snippet, and paste all of it into the HTML of your page β€” both the iframe and the credit line beneath it. On most platforms that means a raw HTML block or a code view in the post editor; the platform guides on this page cover the exact menu path for each one.
Do I need JavaScript or a plugin on my site?
No. The widget is a plain iframe, so your page loads nothing but the tag itself. The game runs inside the frame on our servers, which also means it stays up to date without you changing anything.
How do I change the size, mine count or theme?
Use the generator, or edit the URL parameters directly: size accepts beginner, intermediate, expert or a custom value such as 12x12; mines sets the mine count for custom boards; theme accepts dark or retro; branding=false hides the Powered by line inside the game frame. Note that branding only affects what is drawn inside the frame β€” the credit link below the iframe is part of the snippet in your own page and is not controlled by a URL parameter.
Does the Minesweeper widget work on mobile?
Yes. Tap to reveal a cell and long-press to place a flag. The board itself has fixed pixel dimensions, so pick the Beginner 9x9 size for pages with significant mobile traffic, or wrap the iframe in a scrollable container.
Can I embed Minesweeper in Notion, WordPress or Google Sites?
Yes, and each behaves differently. Notion accepts a URL rather than iframe code. WordPress needs the Custom HTML block and an account with the unfiltered_html capability. Google Sites uses Insert > Embed > Embed code and places the game in a fixed-size box. There is a dedicated guide for each below.
Will the embed slow my page down?
An iframe loads in its own browser context and does not block your page from rendering. If you want to be careful, add loading="lazy" to the iframe tag so the game only downloads once a reader scrolls near it.