Tic-Tac-Toe Online: Play Free vs Computer or Friend

The classic three-in-a-row game. Beat the computer or challenge a friend.

vs Computer2 PlayersOnline1-2 players
Loading game…

How to play Tic-Tac-Toe

Tic-Tac-Toe is played on a grid of three rows and three columns. One player is X and the other is O. Players take turns placing their mark in an empty square, and X always goes first.

The first player to get three of their marks in a straight line wins. The line can run across a row, down a column, or along either diagonal. If all nine squares are filled and nobody has a line, the game is a draw.

Pick a mode above the board. Against the computer you play X and the computer plays O, with three difficulty levels. On easy the computer plays at random, on medium it sometimes slips, and on hard it plays perfectly and can never be beaten. In two player mode you and a friend share one screen and take turns. Online mode gives you a room link to send to a friend so you can play from different devices.

Your wins, draws and losses are saved on your device so you can track your record over time.

Controls

  • Tap or click an empty square to place your mark.
  • Keyboard: Tab to move between squares, Enter or Space to place a mark.
  • Use Restart to clear the board at any time.

Tips and strategy

  • Take the centre square when you can. It sits on four of the eight winning lines.
  • If you go first, a corner is the next strongest opening.
  • Always check whether your opponent has two in a row and block the third square.
  • Look for a fork: a move that creates two threats at once, so your opponent can only block one.
  • Against the hard computer the best result is a draw, so play for safety and wait for a mistake only on easy or medium.

Read the full Tic-Tac-Toe strategy guide

Frequently asked questions

Can the computer be beaten on hard?

No. Hard mode uses perfect play, so the best you can do is draw. If you want to win, try medium or easy.

Who goes first?

X always goes first. Against the computer you are X in the first round, then the starting player alternates each round.

What is another name for Tic-Tac-Toe?

In the UK, Australia and many other places the game is called noughts and crosses.

Is it possible to always win by going first?

No. With correct play from both sides, Tic-Tac-Toe is always a draw.

How do I play with a friend online?

Choose Online, create a room, then copy the link and send it to your friend. When they open it the game starts.

Is Tic-Tac-Toe free to play here?

Yes. It is free, runs in your browser and needs no download or account.