Change one part of a guess at a time so the feedback is easier to read.
English
Logic
Play Mastermind
online for free.
Play Mastermind online
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
- Choose colors to fill the current guess row.
- Submit a complete row to receive match clues.
- Use exact-position and wrong-position clues to refine the next guess.
- Crack the secret code before all attempts are used.
A little help
Mastermind tips
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.