Minesweeper Solver — Safe Cells & Mine Odds
Enter the board you're stuck on and the solver highlights every cell that's provably safe, every certain mine, and the exact mine odds for everything else. It all runs in your browser, nothing is uploaded.
How to Use the Solver
Choose your board size and set the total number of mines. Then recreate what you can see: type the number (0–8) shown in each revealed cell, type x in any cell you already know is a mine, and leave the still-covered cells blank. Press Solve. Provably safe cells turn green ✓, certain mines turn red ✕, and if nothing is certain, every hidden cell shows its mine probability so you can pick the safest guess. Tap Example to try one.
How the Solver Works
Each revealed number is really a constraint: "exactly this many of my hidden neighbours are mines." The solver reads every number into such a constraint, then reasons about them together — first the easy cases (a satisfied number means its neighbours are safe; a number that equals its hidden count means they're all mines), then the subset rule that compares overlapping numbers, and finally, where logic alone stalls, an exact enumeration of every valid mine arrangement to compute true per-cell probabilities. That's how it can prove safe cells and mines, and give exact odds when certainty isn't possible. Everything runs on your device — your board never leaves the browser.
Frequently Asked Questions
How do I enter my board?
What do the colours mean?
How does it find safe cells?
Why does it sometimes only show probabilities?
Is anything uploaded?
Related Solvers & Games
Prefer to play? Try the AI Minesweeper game with its no-guess boards. Solving other games? Use the Sudoku Solver or the Connect 4 Solver, or browse all AI solvers & analyzers.
Add This Minesweeper Solver to Your Website
Put the Minesweeper Solver on your own page — free, no sign-up, no watermark. It runs entirely in your visitors' browsers. Copy the snippet and paste it into your page's HTML.