Logic

Play Mastermind
online for free.

Guess the secret color code using feedback after each attempt.

Easy–Expert4–12 minNo sign-up

Play Mastermind online

Ready
Play at your own pace
Difficulty

4-peg code

Guesses0/10Colors6
1

● exact position · ○ right color, different position

Game introduction

What is Mastermind?

Guess the secret color code using feedback after each attempt.

Change one part of a guess at a time so the feedback is easier to read.

Category
Logic
Difficulty
Easy–Expert
Typical game
4–12 min

How to play

How to play Mastermind

  1. Choose colors to fill the current guess row.
  2. Submit a complete row to receive match clues.
  3. Use exact-position and wrong-position clues to refine the next guess.
  4. Crack the secret code before all attempts are used.

A little help

Mastermind tips

01

Change one part of a guess at a time so the feedback is easier to read.

Good to know

Mastermind Frequently asked questions

Is Mastermind free to play online?

Yes. You can play the full Mastermind game free in your browser with no account, subscription or download.

What do the Mastermind clues mean?

A dark clue means one peg has the correct color and position. A pale clue means one color is present but placed elsewhere.

Can the secret code repeat a color?

Easy and Medium use unique colors. Hard and Expert may repeat colors.

Can I play Mastermind on a phone or tablet?

Yes. The game is designed for touch screens as well as mouse controls, with keyboard controls included where they suit the puzzle.