Play Tic Tac Toe Online for Free
Tic Tac Toe, also called noughts and crosses or Xs and Os, is a game for two players on a 3×3 grid. One player is X and the other is O. You take turns marking squares, and the first to get three in a row wins.
This version is free, runs in your browser on desktop and mobile, and needs no download or account. Play against a friend on the same device, or against the computer on three difficulty levels.
A short history
A similar game called terni lapilli (“three pebbles at a time”) was played in the Roman Empire around the first century BC. The modern name “tic-tac-toe” became common in the US in the 20th century. In 1952, A. S. Douglas wrote a noughts-and-crosses program for the EDSAC computer at the University of Cambridge, which later became known as OXO and is counted among the earliest video games.
Tic Tac Toe Rules
- The board is a 3×3 grid of nine squares.
- X always goes first. Players then take turns placing their symbol in an empty square.
- The first player to get three of their symbols in a row wins. A row can be horizontal, vertical or diagonal, so there are 8 winning lines.
- If all nine squares are full and nobody has three in a row, the game is a draw.
With perfect play from both sides, the game always ends in a draw.
How to Play Here
- Choose 2 Players or vs AI.
- If you choose vs AI, pick a difficulty and whether you want to play X or O.
- Type your names if you like (up to 14 characters), then press Start Game.
- Click or tap an empty square to place your symbol.
- When the game ends, a window shows the result. Choose Play Again or Main Menu.
| Action | How |
|---|---|
| Place a symbol | Click or tap an empty square |
| Restart the board | Restart button (circular arrow, top right, or at the bottom) |
| Back to the menu | Home button or Menu button |
Good to know
- X always starts. In 2 Players mode, Player 1 is X and Player 2 is O. Against the computer, if you pick O the computer plays X and moves first.
- Same device only. Two-player mode is for two people taking turns on the same screen. There is no online matchmaking.
- Scores. The scoreboard counts wins for X and O. It carries over between rounds while the page stays open and resets when you reload. It does not reset when you change mode or names.
- Draws. They do not add to either score.
- No undo, no keyboard controls. Moves are placed by click or tap only.
Playing the Computer
| Level | How the computer plays |
|---|---|
| Easy | Takes a winning move if it has one. Otherwise it picks a random empty square. It does not block you. |
| Medium | Takes a winning move if it has one, blocks your winning move if you have one, and otherwise picks a random square. |
| Hard | Looks at every possible continuation of the game (a full minimax search) and always chooses the best move. It cannot be beaten, so the best result you can get is a draw. |
The computer replies after a short pause (about 0.3 to 0.65 seconds, longer on harder levels).
Tic Tac Toe Strategy and Tips
1. Start in the centre or a corner
If you go first as X, take the centre or a corner. The centre is part of four winning lines and corners are part of three, while edges are part of only two.
2. Answer a corner with the centre
If your opponent opens in a corner, take the centre. Replying on an edge or another corner makes it much harder to avoid losing.
3. Always check for a win, then a block
Before each move, ask yourself two questions: can I win right now, and can my opponent win next turn? Win if you can; otherwise block.
4. Build a fork
A fork is a move that creates two threats at once, so your opponent can only block one. Forks beat the Easy and Medium computer, which never plan ahead for them.
5. Stop your opponent’s forks
If the other side is about to make a fork, force them to respond to a threat of your own, or occupy the square where the fork would happen.
6. Don’t expect to beat Hard
Because the game is solved, the Hard computer never makes a mistake. Aim for a draw, and treat any slip by your opponent as the chance to win in other modes.
7. Play both sides
Try playing as O against the computer. It shows how much X’s first move matters, and how much accuracy O needs to draw.
Tic Tac Toe FAQ
Is Tic Tac Toe free to play here?
Yes. It is free to play, with no download and no sign-up.
Can two people play on one device?
Yes. Choose 2 Players and take turns on the same screen. There is no online multiplayer.
Can I play against the computer?
Yes, on Easy, Medium or Hard.
Can I choose to be O?
Yes, when playing against the computer. The computer then plays X and goes first.
Who goes first?
X always goes first. In 2 Players mode, Player 1 is X.
Can the Hard computer be beaten?
No. It plays perfectly, so the best you can do is draw.
Does the Easy computer block me?
No. It takes a win if it can see one and otherwise plays a random move.
What happens in a draw?
The game ends with a draw message. Neither score changes.
Are scores saved?
They are kept while the page is open, but not saved between visits.
Can I change player names?
Yes, in the menu before you start. Names are up to 14 characters, and the computer’s name is fixed.
What is the difference between Tic Tac Toe and noughts and crosses?
Nothing. They are the same game. Noughts and crosses is the more common name in the UK and Commonwealth countries.
More Free Strategy and Two-Player Games
- Connect Four – get four in a row
- Nine Men’s Morris – form mills of three
- Dots and Boxes – claim the most boxes
- Pentago – five in a row on a twisting board
- Hex – connect your two sides
- Isolation – trap your opponent
- Checkers – jump and capture