Skip to content
clkr

Loading tools…

    Mastermind

    Play Mastermind online free: crack the secret color code with black and white peg clues in 10 guesses. Free online code-breaking game, no download.

    Loading…

    Found it useful? Share Mastermind

    Free, no sign-up, works in the browser — send it to a friend or add it to your site.

    How to use Mastermind

    1. 1Pick how many colors and pegs to play with, and whether repeat colors are allowed
    2. 2Click or tap colors to fill your guess, then press Submit
    3. 3Read the feedback pegs: black means right color in the right spot, white means right color wrong spot
    4. 4Use the clues to narrow it down and crack the code within 10 guesses

    Frequently asked questions

    How do you play Mastermind?▾

    The game picks a secret sequence of colored pegs. You guess a full sequence and get feedback: a black peg for each color that's the right color in the right position, and a white peg for each color that's correct but in the wrong position. Use the clues to figure out the exact code within 10 guesses.

    Is this Mastermind game free and does it need a download?▾

    Yes, it's completely free, runs in your browser and needs no download, account or signup. Everything is generated and played locally on your device.

    What do the black and white pegs mean?▾

    A black peg means one of your guessed colors is the correct color in the correct position. A white peg means a color is somewhere in the code but you placed it in the wrong spot. The pegs don't tell you which specific position they refer to — that's part of the puzzle.

    Can I change the difficulty?▾

    Yes. Use more colors or more pegs for a harder code, fewer for an easier one, and toggle whether colors can repeat in the secret sequence. Your best (fewest-guesses) result is saved per difficulty setting.

    Embed Mastermind on your website▾

    Paste this snippet into your page. The embedded tool runs in your visitor's browser and shows a small “Powered by clkr.work” link.