Code Breaker: Crack the Code Online

A code-breaking logic game, free in your browser. A vault hides a secret row of coloured gems; make a guess, and gold and silver lights tell you how close you came. Read the clues, narrow it down and crack the code before you run out of tries. Three modes and a new Daily code every day. No download, no sign-up.

Play Code Breaker
Goal
Find the secret row of gems in as few guesses as you can
Modes
Easy and Classic (4 gems, 6 colours), Hard (5 gems, 8 colours), Daily
Controls
Tap gems to fill a guess, then Check; number keys on a computer
Cost
Free, no download, no sign-up

Our Code Breaker game

AllFun Code Breaker is set inside a brushed steel bank vault at night. The game is played sideways: the hidden code waits behind question marks on the left, and every guess you make becomes a new column of round gem holes, with a little panel of clue lights underneath. Each gem colour also carries its own white sign, a circle, a diamond, a star, a heart and more, so the game reads well for colour-blind players too.

A counter beside the vault shows how many codes still fit every clue you have seen. When it drops to one, you know the answer; when you get it right, the secret slides open and every light flashes gold.

How to play Code Breaker

The lights never say which gem they mean; that is the puzzle. Crack the code in few guesses for three stars. Hint opens one gem of the secret for you; one hint is free in each game and a short video gives you more. Run out of tries and a video buys two more, or you can see the code.

Three modes and a Daily code

Easy hides four gems from six colours, all different, with ten tries. Classic allows the same colour more than once. Hard hides five gems from eight colours, with twelve tries. Your wins, streak and best result are kept for each mode.

The Daily code is a Classic code that is the same for every player that day, and you get one go at it. Crack it on days in a row to grow your streak. Our Code Breaker guide explains how to read the lights, and more logic games are on the puzzle games page.

Tips

Questions

Is Code Breaker free?

Yes. It plays in your browser with no download, no sign-up and nothing to buy. One hint per game is free, and a short video gives you more.

Why is it played sideways?

So that every gem is big enough to tap. Hold your phone sideways; if it stays upright, the game turns itself.

Can I play on a computer?

Yes, on Windows, Mac or a Chromebook. Press the number keys to pick gems, Enter to check, Backspace to take a gem back, H for a hint and P to pause.

More games like this

Embed Code Breaker on your site

Put Code Breaker on your blog, class page or website for free: copy the code and paste it into your page. The game loads from AllFun Games and works on phones and computers.

<div style="max-width:960px;margin:0 auto">
  <div style="position:relative;aspect-ratio:16/10;border-radius:12px;overflow:hidden;background:#0b1020">
  <iframe src="https://allfun.games/api/embed/codebreaker/" title="Code Breaker — AllFun Games" style="position:absolute;inset:0;width:100%;height:100%;border:0" allow="autoplay; fullscreen; gamepad; clipboard-write; web-share" allowfullscreen loading="lazy"></iframe>
  </div>
  <p style="margin:8px 0 0;font:14px/1.4 sans-serif;text-align:center">Play <a href="https://allfun.games/codebreaker/">Code Breaker on AllFun Games</a></p>
  </div>
Free to use. Please keep the link under the game.