Reveal all safe cells without hitting a mine
Minesweeper is one of the most iconic logic puzzle games ever created, first bundled with Microsoft Windows 3.1 in 1990 and played by hundreds of millions of people worldwide since then. The concept is elegantly simple: a grid of blank tiles hides a set number of mines, and your job is to uncover every safe square without detonating one. Each revealed square either shows a number — indicating how many of its eight neighboring squares contain mines — or opens up as a blank cascade that automatically clears connected empty areas. Using those number clues like logic constraints, you can deduce which squares are safe and which must contain mines. The game rewards methodical thinking and pattern recognition. When you see a "1" on the border of the revealed area, it means exactly one of its hidden neighbors is a mine. When you have already flagged that mine with a right-click, the "1" is satisfied and all its other neighbors are guaranteed safe. More complex situations arise when numbers overlap and you must solve a system of constraints simultaneously — this is where Minesweeper transitions from a casual pastime into a genuine logic puzzle that sharpens deductive reasoning skills. Our free online Minesweeper includes all the classic features you expect. Three standard difficulty levels follow the original Windows convention: Beginner uses a 9×9 grid with 10 mines (12.3% density), Intermediate uses a 16×16 grid with 40 mines (15.6% density), and Expert uses a 30×16 grid with 99 mines (20.6% density). A Custom mode lets you define your own grid dimensions and mine count for a personalized challenge. The first cell you click is always guaranteed safe — the mines are placed after your first click, and an extra-safe zone ensures you open into a spacious area, not a single cramped cell. The mine counter in the top-left uses the classic red LCD display to show how many unflagged mines remain (total mines minus flags placed). The timer on the right starts counting the moment you reveal your first cell, giving you a way to measure and improve your speed. The smiley face in the center doubles as a New Game button — clicking it at any time resets the board. The face changes expression to reflect your game state: a neutral smile while playing, a surprised face while pressing down on a cell, cool sunglasses when you win, and the classic X-eyed face when you lose. Right-clicking (or long-pressing on mobile) places a flag on any unrevealed cell to mark a suspected mine. Right-clicking a flagged cell cycles to a question mark if the question-marks option is enabled, and again to clear the marker entirely. Chord clicking — clicking a revealed number when the correct number of adjacent mines have been flagged — automatically reveals all remaining neighbors of that cell, letting you clear known-safe areas rapidly. Personal best times are saved automatically in your browser for each of the three standard difficulty levels, along with your overall win rate and games played. These statistics persist between visits so you can track your improvement over time. All computation happens locally in your browser — no server required, no account needed, and the game works offline after the first load. Minesweeper remains as compelling today as it was in the 1990s. The combination of pure logical deduction, occasional necessary guessing in ambiguous situations, and the heart-pounding tension of the final few cells makes every game unique. Whether you are a nostalgic veteran aiming to beat your personal best time or a new player learning the basic patterns, our free Minesweeper has everything you need to enjoy this timeless classic.
Understanding Minesweeper
What Is Minesweeper?
Minesweeper is a single-player logic puzzle played on a rectangular grid. Each cell is either a mine or a safe square. You start with all cells hidden and must reveal every safe cell without clicking a mine. When you reveal a safe cell, it shows a number from 1 to 8 indicating how many of its eight neighboring cells contain mines. A cell showing zero mines auto-expands, revealing its neighbors through a flood-fill cascade. By cross-referencing the number clues, you deduce which hidden cells are safe and which contain mines, marking the latter with flags to keep track. The game ends when you have revealed all safe cells (win) or clicked a mine (loss).
How Does Board Generation Work?
The board is generated after your first click, not before. This guarantees you can never lose on the very first move. Once you click a cell, the game randomly places mines across the grid, but excludes the clicked cell and all eight of its neighbors from mine placement. This creates a comfortable opening area so you start with useful information rather than being immediately cornered. After mines are placed, neighbor counts are computed for each safe cell by counting how many of its eight adjacent cells contain mines. The result is a board where all number clues are consistent and the game is ready to solve from your opening position.
Why Is Minesweeper a Great Brain Exercise?
Minesweeper trains constraint-based logical reasoning. Each revealed number is a constraint that limits where mines can be. As you reveal more cells, constraints overlap and combine, letting you make increasingly confident deductions about hidden cells. Experienced players recognize dozens of patterns — from simple '1-2-1' sequences that reveal a mine's exact position to more complex multi-cell constraint systems. This type of reasoning is directly applicable to logic puzzles, programming, and analytical thinking. Speed-running Minesweeper also trains fast pattern recognition and decision-making under pressure. Even the ambiguous end-game situations where guessing is unavoidable teach probabilistic reasoning.
Limitations and Fairness
Standard random board generation does not guarantee every game is solvable by pure logic. Near the end of a game, you may encounter a 50/50 situation where two cells are symmetric and indistinguishable by any logical deduction — you must guess. This is a known and accepted part of classic Minesweeper. Some advanced implementations offer a 'no-guess' mode that generates boards guaranteed to be solvable by logic alone, though this requires running a constraint solver on multiple candidate boards during generation. Our game uses standard random generation for full compatibility with the classic experience. Custom grids with very high mine densities (above ~25%) are significantly harder and may involve more frequent forced guesses.
How to Play Minesweeper
Choose a Difficulty
Select Beginner (9×9, 10 mines) for a quick introduction, Intermediate (16×16, 40 mines) for a moderate challenge, or Expert (30×16, 99 mines) for the full classic experience. You can also choose Custom to set your own grid size and mine count. The mine density percentage shown next to each difficulty gives you an idea of how crowded the board will be.
Click Any Cell to Start
Left-click any cell on the board to reveal it. Your first click is always safe — the mines are placed after you click, so you will never explode on the first move. A blank area will flood-fill outward from your click, and number clues will appear along the border showing how many mines neighbor each revealed cell. Use these numbers to figure out where mines are hiding.
Flag Mines and Reveal Safe Cells
Right-click (desktop) or long-press (mobile) any unrevealed cell to place a red flag marking a suspected mine. The mine counter in the top-left decrements with each flag placed. Once you have flagged a number cell's neighboring mines, you can chord-click the number to automatically reveal all its remaining unrevealed neighbors — a huge time-saver when clearing known-safe areas. Continue revealing safe cells and flagging mines until the board is cleared.
Win by Clearing All Safe Cells
You win when every safe cell on the board has been revealed. The timer stops, the smiley button turns into a cool sunglasses face, and any unflagged mines are automatically flagged for you. Your finish time is recorded and compared against your personal best for the difficulty. Click the smiley face or press F2 at any time to start a fresh game with the same settings.
Frequently Asked Questions
Why is my first click always safe?
Minesweeper generates the mine layout after you make your first click, not before. This design choice — introduced in the Windows XP version — ensures you can never randomly lose the moment you start a game. The clicked cell and all eight of its immediate neighbors are excluded from mine placement, so you always open into a comfortable area with useful number clues visible from the start. This makes every game fair from the first move and gives you a meaningful starting position to reason from rather than starting blind next to a mine.
What does chord clicking do?
Chord clicking is an advanced technique that speeds up play dramatically. When you click a revealed number cell, the game checks whether the count of flagged cells adjacent to it matches the cell's number. If they match — meaning you have correctly identified all neighboring mines with flags — clicking that numbered cell automatically reveals all of its remaining unrevealed, unflagged neighbors simultaneously. This can cascade into a large flood-fill reveal. If you have incorrectly flagged a neighbor, a chord click on that number will still trigger and may detonate a mine, so use it only when you are confident in your flags.
What is the difference between a flag and a question mark?
A flag (right-click or long-press) marks a cell you believe contains a mine. It prevents accidental left-click reveals on that cell and counts against the mine counter display. A question mark is an optional intermediate state accessed by right-clicking a flagged cell when the question-marks option is enabled. It marks a cell as uncertain — you suspect it might be a mine but are not sure enough to commit. Question marks do not decrement the mine counter. Right-clicking a question-marked cell clears it back to blank. You can toggle the question-marks feature on or off in the options row below the board.
Are there situations where I have to guess?
Yes. Standard random Minesweeper boards can produce unavoidable guess situations, typically at the end of a game when two or more cells are completely symmetric and no available number clue can distinguish between them. The most common scenario is a 50/50 corner where two hidden cells touch only one number and either arrangement of mines is logically consistent. In these cases you must guess and have a 50% chance of winning. Experienced players minimize guess situations by carefully managing the order in which they reveal cells, but some boards simply require a lucky guess to complete without dying.
How are personal best times saved?
Your best completion times for Beginner, Intermediate, and Expert difficulties are stored in your browser's localStorage, along with your total games played and win count. This data is saved automatically whenever you complete a game and persists between visits in the same browser. The data stays only in your browser and is never sent to any server. If you clear your browser's localStorage or site data, your saved statistics will be reset. Stats are tracked separately per difficulty level, so your Beginner best time is independent of your Expert best time.
How do I play on a phone or tablet?
On mobile devices, a single tap reveals a cell just like a left-click on desktop. To place a flag, use a long press — hold your finger on a cell for about half a second until the flag appears. This is the standard mobile control scheme used by all major Minesweeper implementations. Chord clicking works the same way on mobile: tap a revealed number cell once its neighboring mines are all flagged, and it will auto-reveal the remaining neighbors. The game board scrolls horizontally if it is wider than your screen, so you can always access all cells on the Expert 30-column grid from a phone.