Code Breaker Online: Play with Friends

Set up a new game

Right colour, right placeRight colour, wrong place

New game

Each on your own phone, tablet or computer. No account needed.

Got a link from a friend? Just open it.

Code Breaker on your own devices

Code Breaker online is the colour-peg deduction game for two to four people, each on their own phone or computer. One player sets a secret code on their own screen, and only their screen ever shows it. The others take turns guessing, and after every guess the key pegs say how close it came: a black peg for a right colour in the right place, a white peg for a right colour in the wrong place.

The host picks the code: 4 pegs from 6 colours, 5 from 8, or 4 different digits with bulls and cows. Repeated colours can be switched off, and the breakers get 10 or 12 guesses. Crack the code in time and the breakers win the round; run out and the setter does. Every rematch passes the job of setting the code to the next player, and the rounds won are counted for the room.

Free for 2–4 players, each on your own phone, tablet or computer. Share a link or a 6-character code; nobody needs an account or a download.

Code Breaker online, play with friends: a code board with a hidden code on top and four rows of coloured pegs guessed, each scored with black and white key pegs

How to play Code Breaker online with friends

A Code Breaker room is for two to four people, each on their own phone, tablet or computer. Create a room, send the link or the 6-character code, and wait until every name has appeared before the host taps Start. One player sets the code and everyone else breaks it together, taking turns. The host chooses in the lobby:

  • Code: 4 pegs from 6 colours, 5 pegs from 8 colours, or 4 different digits, the bulls and cows version.
  • Repeated colours: on by default, so a colour can appear more than once in the code. Turn it off for a code of all different colours.
  • Guesses: 10 or 12 before the code holds.

In a room a person always sets the code. To crack a code chosen by the computer, on your own, use the one-device game.

Setting the code on your own device

The first player sets the first code, and each rematch passes the job to the next person. The setter taps a colour (or a digit) for each hole, or Random for a code chosen for them, and then Set the code. While they choose, the other screens say who is setting it. Once it is set, the setter’s own screen keeps showing the code above the guesses, so they can watch the others close in on it.

Our server keeps the code. The breakers’ devices get the guesses and their key pegs, never the code itself, so there is nothing hidden in the page to peek at until the round is over.

Taking turns at the guesses

The breakers guess in turn, each on their own device. Fill the holes by tapping colours or typing their numbers (digits for the digit code), fix a mistake with Backspace, then Check. Every screen shows the same rows: each guess with its key pegs, and the guesses left. A black peg is a right colour in the right place, a white peg a right colour in the wrong place; with digits they are bulls and cows. The order of the key pegs never says which hole they belong to, so the deduction is yours.

A guess has to fill every hole, and the same guess can’t be tried twice, so no turn is wasted by accident. Crack the code within the guesses and every breaker wins the round. Run out, and the setter wins. Either way, every screen then shows the code, and the room keeps count of the rounds won.

Tips for Code Breaker with friends far away

  • Talk about the last pegs before you guess. With three breakers, saying what each guess ruled out keeps the next one useful.
  • Use the first guesses to find the colours. Two colours, two pegs each, tells you a lot about which colours are in at all.
  • Set a fair code for a first game. A code with repeated colours is much harder to crack; turn Repeated colours off for new players.
  • Digits for a quick round. Bulls and cows with four different digits is a classic you can play in a few minutes.

The Code Breaker rules explain the key pegs, the three codes and the scoring in full, and the Code Breaker strategy tutorial shows how to choose guesses that narrow the code down fast. Want to crack the computer’s code, or share one device? Play Code Breaker on one device instead.

Rooms are private and close by themselves after the game; the server keeps a room’s names and moves only while it is open. See the privacy policy for the details.

How it works

  1. Create a room. You get a link and a 6-character code.
  2. Share it. Friends open the link or type the code, then join with just a name. No sign-up.
  3. Play. The same Code Breaker board, each on your own screen. Dropped out? Open the link again on the same device.

Code Breaker online FAQ

Something else? Ask us.

How do you play Code Breaker online with friends?

Make a room and send its link to one to three friends. When the host starts, the setter picks a code on their own phone (or taps Random), then the breakers take turns at a guess on theirs, reading the key pegs as they go.

Can the code breakers see the secret code?

No. Our server holds the code and sends it to the setter’s device alone; the breakers get only their guesses and the key pegs, until the round is over and every screen shows it.

What do the black and white pegs mean?

Black is a right colour in the right place, white a right colour in the wrong place. With digits they are called bulls and cows, and they count the same way.

Can I break the computer’s code online?

Rooms are for people only, so a person always sets the code. To crack a code chosen by the computer, play on our one-device page.

All articles

More games to play online

All online games

Add to your Home Screen

Install Pass and Play Games so it opens like an app and works offline.

  1. Tap the Share button in Safari’s toolbar.
  2. Scroll down and tap Add to Home Screen .
  3. Tap Add. The games now open from your Home Screen.

Settings

Look

ThemeSystem follows your device.
LanguageEnglish

Playing

Accessibility

MotionReduce turns off sliding; fades stay.

Your data

Saved in this browser only.

App

Send feedback

Tell us what works, what doesn’t, or what to add. It comes straight to us.

What’s it about?

The page, the game and your type of device come with it, so you don’t need to say which game.