Minesweeper Solver
Copy the numbers from your game, press Solve, and see which cells are safe, which are mines, and the exact chance for every other cell.
Painting tips
Pick a tile, then click or tap cells to paint them. Click a painted cell again to clear it. Keys 0 to 8, F and U switch tiles, Enter solves. On a computer, right-click places a flag.
How to use the solver
Have a screenshot or image of your game? Skip to reading a screenshot.
- Choose your board size and the total number of mines, or pick Beginner, Intermediate or Expert.
- Select a number tile and paint the revealed cells that show that number. Use the blank tile for revealed cells with no number, and the flag tile for mines you have already marked.
- Leave covered cells as unknown, then press Solve.
- Open the green cells, flag the red ones, enter the new numbers and solve again. If no cell is certain, the solver marks the safest guess with an orange outline.
Not sure where to start? Press Load example to see a real mid-game board with safe cells and mines already worked out.
Reading a screenshot
You do not have to type every number. Press Read from a screenshot, or paste or drop a screenshot or image of your game. A purple box appears on the picture. Drag it so it covers only the cells, check that Rows and Columns match your game, and press Read board.
The board is filled in for you. Cells the reader was not sure about get a dashed outline. Compare the board with your game, fix anything by painting, and press Solve.
It reads Google Minesweeper and the classic grey Windows style. Other looks may need more corrections. Use a picture of a game in progress: a finished game has no covered cells left to solve. The picture is read in your browser and is never uploaded.
Boards and versions it works with
The solver handles any board up to 50 x 50. The presets match the standard difficulty levels: Beginner is 9 x 9 with 10 mines, Intermediate is 16 x 16 with 40 mines, and Expert is 30 x 16 with 99 mines. Pick Custom for anything else.
The rules are the same in every version, so it works for Google Minesweeper, the Windows game, phone apps and puzzle collections. Enter the board exactly as your game shows it. It works in a phone browser too: pick a tile, then tap the cells.
How the solver works
Every revealed number is an equation: it tells you how many of its covered neighbours are mines. The solver collects those equations for the whole board and splits the covered cells that touch a number into groups that do not affect each other. For each group it checks every possible arrangement of mines that satisfies the numbers.
It then combines the groups using the total mine count. That is why the mine count matters: it decides how many mines are left for the covered cells that touch no number, and it can prove cells safe when every mine is already accounted for.
A cell is certainly safe if it holds no mine in any valid arrangement, and certainly a mine if it holds one in all of them. For every other cell, the percentage shown is the share of valid arrangements in which it is a mine. These are exact counts, not guesses or simulations.
Patterns the solver finds for you
- 1-2-1: when a row of revealed cells reads 1, 2, 1 against a wall of covered cells, the covered cells under the two 1s are mines and the covered cell under the 2 is safe.
- 1-2-2-1: when a row reads 1, 2, 2, 1 against covered cells, the covered cells under the two 2s are mines and the covered cells under the two 1s are safe.
Frequently asked questions
- Does it work for the Google Minesweeper game and the Windows version?
- Yes. The rules are the same, so you can enter any board from any version. Pick the board size and mine count that match your game.
- Can I upload a screenshot or image?
- You can load one, but nothing is uploaded. Press Read from a screenshot, or paste or drop the image. It is read in your browser and never sent to a server.
- Can I paste a screenshot instead of choosing a file?
- Yes. Copy the picture, click the page and press Ctrl+V (Command+V on a Mac). You can also drag an image onto the solver. On a phone, use the Read from a screenshot button and pick the picture from your gallery.
- Which screenshots can it read?
- Google Minesweeper and the classic grey Windows style. Other looks may need more corrections, and the reader marks every cell it is unsure about. A picture of a game that is still being played works; a finished game has no covered cells left to solve.
- What if the reader gets a cell wrong?
- Cells it was unsure about have a dashed outline. Fix any cell by choosing a tile and painting it. Always compare the board with your game before you press Solve.
- Can I change how the page looks?
- Yes. Use the Style menu at the top right: Modern (with light, dark or system colours), Classic (a grey, Windows 98 style) or Sky (blue and colourful). The solver works the same in all of them, and the style does not change how screenshots are read.
- Does it work on my phone? Do I need to install anything?
- It works in any modern phone or computer browser, and there is nothing to install. On a phone, choose a tile and tap the cells to paint them; scroll sideways for wide boards.
- Can it tell me a safe first move?
- On an empty board there is no information, so every cell is equally likely to hold a mine. Most modern versions, including the Windows game and Google Minesweeper, never put a mine under your first click, so you can open any cell and then use the solver from there.
- Why does it ask for the number of mines?
- The total changes the odds. With fewer mines left, covered cells away from the numbers are safer, and sometimes the count alone proves cells safe.
- What if there is no safe move?
- Then the solver shows the cell with the lowest chance of being a mine. Some boards genuinely force a guess, and this tells you the best one.
- Is my board sent anywhere?
- No. The calculation runs in your browser, so nothing you enter leaves your device.
- Why does it say the numbers do not fit together?
- No arrangement of mines can match every number you entered. Usually one number was typed in the wrong place, or the mine count does not match your game.