Play Tic Tac Toe Online Free

Free online tic tac toe. Play vs computer, locally, or with friends.

or join with a code

You0
Draws0
CPU0

Your turn

X Facebook WhatsApp
Try Ultimate Tic-Tac-Toe
9 boards in one. A whole new challenge.
Data · 16,505 online games
The Centre Square Has the Lowest Win Rate. Here Is Why.
25%
3,116 games
27%
593 games
27%
1,993 games
28%
490 games
19%
5,595 games
26%
504 games
27%
1,772 games
25%
586 games
29%
1,856 games
First-mover advantage · online games
Goes first
38.7% win
Goes second
9.2% win
Read the full analysis →

How to play tic tac toe

Play free tic tac toe online — no sign-up needed. Challenge the computer, pass the phone with a friend, or invite someone to a private online room and play in real time.

1
Play against the computer or challenge a friend — locally or in a private online room.
2
Click a square to place your mark on the 3×3 grid. X goes first.
3
First to get three in a row — across, down, or diagonal — wins.
4
Fill all nine squares with no winner and it's a draw.

About this game

Tic tac toe looks simple. Two players, a 3x3 grid, first to line up three marks wins. Most people learn it before they can read. But the game has been interesting enough to survive for at least 2,000 years, which is longer than most things that seem simple.

The history goes back to ancient Rome, where a nearly identical game called Terni Lapilli was scratched into stone floors across the empire. The modern version with pencil and paper spread through Britain in the 19th century, where it was called noughts and crosses. In 1952, OXO became one of the first computer games ever written, a tic tac toe program that ran on a vacuum tube machine at Cambridge and never lost.

This version has three modes: vs computer on easy or hard, pass and play for two people on the same device, and online multiplayer where you invite a friend with a room code or get matched with a random opponent.

Is tic tac toe a solved game?

Yes. Mathematicians proved it decades ago. With perfect play from both sides the game always ends in a draw. Every position has been analysed. There is no sequence of moves that beats a perfect opponent.

In practice this rarely comes up, because most people do not play perfectly. Beginners miss forks, skip obvious blocks, and hand the game away without noticing. The Hard mode AI on this site does play perfectly using the minimax algorithm, which means the best outcome you can get against it is a draw. If you want to understand why, the strategy guide walks through the key positions.

Strategy

The centre is the single most valuable square. It appears in four winning lines: two diagonals, one row, one column. Every other square appears in two or three. Take the centre on your first move when you can.

After the centre, corners beat edges. A corner appears in three winning lines; an edge square only appears in two. Corners also set up forks, which are positions where you have two different ways to win at once. Your opponent can only block one of them.

The real point of tic tac toe strategy is not memorising moves. It is learning to see two moves ahead. Once you can do that consistently, the game becomes much harder to lose. Read the full strategy guide →

Frequently asked questions

Can you always win at tic tac toe?

No. With perfect play from both sides the game always ends in a draw. The Hard mode AI plays optimally using minimax, so the best you can do against it is force a tie. Against a human who makes mistakes, winning is possible. Learn the key moves that guarantee a draw →

What is the best first move in tic tac toe?

The centre. It appears in more winning lines than any other square, and taking it limits your opponent's options immediately. If the centre is taken, a corner is the next best choice. Edges are the weakest opening move.

Who goes first in tic tac toe?

X goes first by convention. On TicToe.org the starting player alternates each round so both sides get an equal first-move advantage over a session. Curious about where the name comes from? See why it's called tic tac toe.

How do I play with a friend online?

Pick Online then Invite a Friend. Share the room code or link that appears and your friend joins automatically. No account needed on either side.

What's the difference between Easy and Hard mode?

Easy plays random legal moves, so you can win by paying attention to the board. Hard runs the full minimax algorithm and evaluates every possible position. It never loses. Once you can beat Easy without thinking, Hard is the real test.

Is it free?

Yes, completely free. TicToe.org needs no account, no download, and no payment. The Hard mode AI, online multiplayer, and every other game on the site work the same way, right in your browser on any device. 5 reasons tic tac toe is good for kids →

Play with friends online

The Online mode connects two players in real time from anywhere — no accounts, no downloads. One player creates a private room and shares the link; the other clicks it and the match starts instantly.

How it works

Step 1

Create a room — pick Online → Invite a Friend above. A private 6-character room code is generated.

Step 2

Share the link — copy the invite link and send it via WhatsApp, iMessage, Discord, email — anywhere your friend is.

Step 3

Play instantly — the match starts the moment they join. Real-time moves, no page refreshes.

What's included

Invite-link rooms

Private by default. Share the link with one person and only they can join.

Random opponents

No friend free? Pick Random Opponent and we'll match you with someone playing right now.

Real-time moves

Moves go over a WebSocket connection — no polling, no page refreshes, no waiting.

Rematch

Both players hit Rematch and a new game starts with X and O swapped.

Works on any device

Phone, tablet, laptop — anywhere with a browser.

No account needed

No sign-up, no email, no profile. Open the page and play.

Multiplayer FAQ

Does the invite link expire?

The invite link is tied to your room and stays valid while you're on the waiting screen. If you close the tab the room is released.

Can I play with a stranger?

Yes. Pick Random Opponent and we'll match you with another player looking for a game right now.

Is there a mobile app?

No app needed — TicToe.org is fully responsive and works in any mobile browser. Save it to your home screen for one-tap access.

Online Multiplayer
How do you want to play?
Invite a Friend
Create a room and share the link or code
Join a Room
Enter a room code from a friend
Random Opponent
Match with someone playing now

Online
You0
Draws0
Opponent0

Your turn

Watching live

Watching

Browse all games
Games on TicToe.org
Tic Tac Toe
The classic. Play vs computer, locally, or with friends.
Terni Lapilli
The ancient Roman version. Pieces slide around the board.
Rock Paper Scissors
Play vs the computer or challenge a friend online.
Ultimate Tic-Tac-Toe
9 boards in one. Beat the AI or play a friend online.
SameGame
Click groups of matching blocks to clear the board.