Generators

Online Tic-Tac-Toe

Play a real opponent online or invite a friend with a private room code

Loading interactive tool…

Embed this tool on your site

About this tool

Play a quick game of Tic-Tac-Toe with someone on another device. Find a random opponent who is looking for a game, or create a private room and share its six-character code or invite link with a friend. The server checks every move, keeps both boards in sync, and decides wins and draws. After a round, both players can agree to a rematch; your marks switch and your match scores carry over. No account, download, or payment is needed. Keep the same browser tab open to keep your seat. A brief connection loss gives you 45 seconds to reconnect, and refreshing the tab restores your game. Anonymous sessions and game state are stored temporarily on our server and expire after an hour of inactivity.

Why use it

  • Real opponents: Play against another person connected to the same server.

  • Private invitations: Share a room link or code to play with a friend on any device.

  • Fair turns: The server rejects occupied squares, out-of-turn moves, and outdated requests.

  • Rematch together: Both players consent before a new round, with alternating marks and a running score.

How to use

  1. Choose Quick match to find a real opponent, or Challenge a friend to create a private room.
  2. For a private game, share the room code or invite link; your friend enters the code and selects Join.
  3. Wait for both players to connect. X goes first; select an empty square when it is your turn.
  4. Connect three of your marks in a horizontal, vertical, or diagonal line to win. A full board with no winner is a draw.
  5. After a round, select Run it back. The next round begins after your opponent accepts, with X and O switching seats.

When it helps

  • Challenge a friend on a phone, tablet, or laptop without installing an app.
  • Take a short break with a random player who is also looking for a match.
  • Play a series with the same opponent and compare your running score.

Tips

  • X moves first in every round; take note when your mark changes after a rematch.
  • Use the same tab to reconnect. A shared invitation joins an empty seat and does not recover an existing player.
  • Keyboard users can reach every playable square with Tab and select it with Enter or Space.

Frequently Asked Questions

Is this real online multiplayer?
Yes. Two separate players connect to our backend. The server stores the shared board and validates each move. Random matchmaking waits for another person; it does not substitute a bot.
How do private room codes work?
Create a private room and share the six-character code or invite link. Your friend opens this page, enters the code, and selects Join. A room has two seats, and only the first joining player gets the empty seat. Share the invitation only with your intended opponent.
What happens if my connection drops?
Your opponent sees a disconnected status. You have 45 seconds since your last successful heartbeat to reconnect in the same tab. After that, the active opponent wins by forfeit. Leaving explicitly ends the round immediately.
Can I refresh the page during a game?
Yes. The anonymous player token is kept in this tab’s session storage, so refreshing reconnects you to the same seat. Closing the tab, clearing storage, or moving to another browser may lose that seat.
How do rematches and scores work?
Both players must request or accept a rematch. The board then resets, X and O switch, and X starts. Your wins, their wins, and draws remain in the room until the series ends. You cannot rematch an opponent who has left.
Why is random matchmaking still searching?
A match needs two people searching at the same time. Keep the page open while you wait. The queue expires after two minutes; you can search again or cancel and invite a friend using a private room.
Do I need an account, and what is stored?
No account is required. An anonymous token stays in your browser tab. The server temporarily stores game state, scores, room codes, and token hashes. Sessions and rooms expire after an hour of inactivity.

Explore the category

A LITTLE HELP. A LOT DONE.
Good tools.
Great flow.

Your shortcut to the everyday. Create, convert, calculate,
and get back to what you love.

✓ Free to use✓ No sign-up✓ 500+ possibilities