Skip to the game
Tic Tac Toe

Minesweeper

Clear the minefield square by square, flag the mines the numbers give away, and chase best times on three classic boards. Your first Minesweeper click always opens an area.

Play Minesweeper

Mines left

10

Time

0

Loading the game…

Tap or click to

Click to dig and right-click to flag. On a phone, tap to dig and press and hold to flag, or switch to Flag. With a keyboard, use the arrow keys, Enter or Space to dig, F to flag, and N for a new game.

Game settings
Changing the difficulty starts a new game.
Difficulty

Best times

Best time and games won for each difficulty
DifficultyBestWon
Beginner––
Intermediate––
Expert––

How it works

How to play Minesweeper

Open one square to crack the board open, then let each number's count of touching mines tell you what to dig next and what to flag.

  1. Step 01

    Open a square

    Click or tap any square to start. The first one is never a mine, and it always opens an area of the board.
  2. Step 02

    Read the numbers

    A number tells you how many mines touch that square, counting all eight neighbors, diagonals included. A blank square has none, so its neighbors open by themselves.
  3. Step 03

    Flag mines and clear the board

    Right-click, or press and hold on a phone, to flag a square you know is a mine. Open every safe square to win. Open a mine and the game is over.

Features

The classic rules, with a few modern touches

  • A first click that always opens

    Mines are placed after your first click, never on that square or the eight around it, so every game starts with an opening.

  • Beginner, Intermediate, and Expert

    The three classic boards: 9×9 with 10 mines, 16×16 with 40, and 30×16 with 99.

  • Chording

    Click an opened number once its flags are placed to open all its other neighbors in one go.

  • Easy flags on touch screens

    Press and hold to flag, or switch to Flag mode so every tap places a flag.

  • Arrow keys, F to flag, and spoken squares

    Move with the arrow keys, dig with Enter or Space, flag with F. Every square reads out what it shows.

  • Best times and wins

    The timer starts with your first click. Your fastest win and games won are saved for each level.

Strategy

Minesweeper strategy: patterns and tips

Most of Minesweeper is spotting a few patterns. Learn these and you'll rarely need to guess on Beginner and Intermediate.

  • Count the hidden squares

    If a number touches exactly as many hidden squares as its value, every one of them is a mine. A 1 in a corner with one hidden neighbor is the simplest case.

  • Clear around finished numbers

    When a number already has that many flags around it, its other hidden neighbors are safe. Click the number to open them all at once.

  • The 1-1 pattern at a wall

    Two 1s side by side, with the first one against the edge of the board, share one mine between them. The third square along from the edge is safe.

  • The 1-2-1 pattern

    Along a straight edge of hidden squares, 1-2-1 means the mines sit opposite the two 1s, and the square opposite the 2 is safe.

  • The 1-2-2-1 pattern

    Along a straight edge, 1-2-2-1 puts the mines opposite the two 2s. The squares opposite the 1s are safe.

  • Guess with the odds

    When nothing is certain, compare chances. A 1 with six hidden neighbors puts a mine under each about one time in six, often better than a square picked at random on Expert.

About the game

Minesweeper online: the classic logic puzzle

The rules, the numbers, the three levels, flags and chording, controls, best times, and where the game came from.

Minesweeper is the classic single-player logic puzzle: a grid of hidden squares, a fixed number of mines, and a number on every safe square that tells you how many mines touch it. This version has the three classic boards, a first click that always opens space, long-press flags for phones, and a best time for every level.

Minesweeper rules: open every safe square

The goal in Minesweeper is to open every square that doesn't hide a mine. Click or tap a hidden square to open it. If it's a mine, the game is over. If it's safe, it shows a number from 1 to 8, the count of mines among its eight neighbors, or stays blank when none of them is a mine. A blank square opens its neighbors automatically, so one click can clear a large patch of the board.

You win the moment the last safe square opens. You don't have to flag a single mine to win: flags only help you keep track. If you hit a mine, the board shows where every mine was, marks any flag you placed on a safe square, and tells you how much of the board you cleared.

What the numbers in Minesweeper mean

Every number counts the mines in the eight squares around it: up, down, left, right, and the four diagonals. A square on the edge has only five neighbors and a corner square has three, which makes edge and corner numbers easier to read.

Reading the board is a matter of combining clues. If a 2 touches only two hidden squares, both are mines. If a 1 already touches a flagged mine, every other hidden square around it is safe.

Beginner, Intermediate, and Expert boards

The three levels use the board sizes and mine counts that have been standard for decades:

  • Beginner: 9×9 squares with 10 mines, so about one square in eight is a mine.
  • Intermediate: 16×16 with 40 mines, about one square in six.
  • Expert: 30×16 with 99 mines, about one square in five. It often needs a guess or two.

The mines are placed at random after your first click, and boards aren't checked to be solvable by logic alone, so now and then the numbers can't decide between two squares. That happens most on Expert, where the mines are packed tightest.

On a narrow phone screen, Expert Minesweeper turns on its end to 16 squares wide and 30 tall, so each square stays big enough to tap.

A first click that always opens an area

Mines aren't placed until you open your first square, and then never on that square or any of the eight around it. With no mines next to it, the first square is always blank, so it always opens an area of the board to work from. Some versions of Minesweeper only make sure the first click isn't a mine, which can leave you looking at a lone number with nothing to go on.

Flags, chording, and the mine counter

A flag marks a square you're sure is a mine. Right-click it, press and hold it on a touch screen, or press F on the keyboard. A flagged square can't be opened by accident: you have to remove the flag first, and blank areas spreading across the board stop at it too.

The Mines left counter shows the mines on the board minus the flags you've placed. It doesn't check your flags, so it can go below zero, a sure sign that at least one flag is wrong.

Chording saves clicks. When an opened number already has that many flags around it, click or tap the number to open all its other hidden neighbors at once. Right-clicking the number or pressing F on it does the same. Chording trusts your flags, so if one is wrong, a mine opens and the game ends. If the flags don't match the number yet, nothing happens.

Minesweeper tips beyond the basic patterns

The strategy tips above cover the common patterns. These habits help once you've played a few boards:

  • Stay on the border. The numbers along the edge of what you've opened are your only clues, so work there before anywhere else.
  • Know why 1-2-1 works. The 2 needs two mines among the three squares it touches. If one of them sat opposite the 2 itself, one of the 1s would touch two mines, so that square is safe and the mines sit opposite the 1s.
  • Count the mines at the end. If every flag is right, Mines left is the number of mines still hidden. With 2 left and only 2 hidden squares that could hold them, both are mines.
  • Guess early, not late. If a board needs a guess, make it as soon as you find it. A wrong guess then costs a few seconds instead of a nearly finished board.
  • Stuck with no clues? Try a corner. A corner square has only three neighbors, so it's more likely than a middle square to be a blank that opens a new area.

If you enjoy logic puzzles with no luck at all, try Nonogram, where number clues reveal a hidden picture, or Sudoku.

Mouse, touch, and keyboard controls

The same board takes a mouse, a finger, a pen, or a keyboard, and each gets its own way to dig and flag:

  • Mouse: click to dig, right-click to flag, and click a number to chord. The face above the board starts a new game.
  • Touch: tap to dig, and press and hold for a moment to flag. Switch Tap or click to from Dig to Flag if you'd rather tap to flag and hold to dig.
  • Keyboard: Tab to the board, move with the arrow keys, press Enter or Space to dig, F to flag, and N for a new game.
  • Screen readers: every square has a label, such as hidden, flagged, or how many mines are nearby, and each move is announced.

On phones that support it, a short buzz confirms each flag and another marks a lost game. The page needs a connection to load, and from then on every dig, flag, and chord is worked out in your browser.

Timer, best times, and games won

The timer starts with your first click, not when the board appears, and runs until you clear the board or hit a mine. The display stops at 999 seconds, but your time is measured to a tenth of a second, and that decides a new record.

Under Best times, each Minesweeper level keeps your fastest win and how many of your finished games you've won. Beat your record and the result says New best time! Reset best times clears the records for all three levels.

Minesweeper history: from Mined-Out to Windows 3.1

Games about finding hidden mines from number clues appeared in the early 1980s, such as Mined-Out for the ZX Spectrum in 1983. The version most people know was created at Microsoft by Curt Johnson, first for OS/2, and ported to Windows by Robert Donner. It came out in Microsoft Entertainment Pack 1 in 1990, and in 1992 it was included with Windows 3.1, replacing Reversi. Since Windows 8 it no longer comes with a fresh Windows install.

The game interests mathematicians too. In 2000 Richard Kaye showed that deciding whether a Minesweeper position is consistent is NP-complete, which places it among the famously hard problems of computer science. This version was written from scratch for this site and isn't affiliated with Microsoft.

Your level, tap mode, and records between visits

This Minesweeper keeps one small record in your browser's local storage on this device: the level you last chose, whether a tap digs or flags, and for each of the three boards your best time, games won, and games finished. A board in progress isn't kept, so closing the tab mid-game starts a fresh one next time. Your digs, flags, and times aren't sent to a server, and the privacy policy names the storage key and everything in it.

FAQ

Minesweeper questions

Quick answers about Minesweeper: the numbers, the first click, flags, chording, the mine counter, and best times.

How do you play Minesweeper?

Open squares by clicking or tapping them. Each number shows how many of the eight surrounding squares hide a mine, diagonals included, and a blank square has none. Use the numbers to work out where the mines are, flag them, and open every other square to win.

Is the first click always safe?

Yes. In this Minesweeper, the mines are placed after your first click, never on that square or the eight around it, so the first click always opens an area.

How do I place a flag on a phone?

Press and hold a square for a moment, until the flag appears. You can also switch the control under the board from Dig to Flag, so that every tap places or removes a flag.

What is chording in Minesweeper?

Chording opens all of a number's hidden neighbors at once. When a number has as many flags around it as its value, click or tap it to open the rest. If a flag is wrong, a mine opens and the game ends.

What are the difficulty levels?

Minesweeper has three. Beginner is 9×9 with 10 mines, Intermediate is 16×16 with 40 mines, and Expert is 30×16 with 99 mines. On narrow phone screens, Expert is shown 16 wide and 30 tall.

Do you ever have to guess in Minesweeper?

Sometimes. Mines are placed at random and boards aren't checked to be solvable without guessing, so now and then the numbers can't decide between two squares. It happens most on Expert. See the Minesweeper tips.

Why is the Mines left counter below zero?

It shows the mines on the board minus the flags you've placed, and it doesn't check whether your flags are right. A negative number means you've placed more flags than there are mines, so at least one flag is wrong.

Where are my Minesweeper best times kept?

In your browser's local storage on this device: your fastest win, games won, and games played for each level. Your times aren't sent to a server, and Reset best times clears all three levels.

Can I play Minesweeper with only the keyboard?

Yes. Tab to the board, move with the arrow keys or Home and End, press Enter or Space to dig, and F to flag or to chord an opened number. N starts a new game, and a screen reader hears each square's label and every move.

Is Minesweeper unblocked at school?

This Minesweeper is a regular web page, with no download or plug-in. Whether it opens on a school or work network depends on what that network's filter lets through.