Free online tools to generate, calculate,
convert, format, encode, and play.
 

Tic-Tac-Toe

Classic strategy game. Play against a friend or challenge the AI. Get three in a row to win!

X's turn
X WINS
0
DRAWS
0
O WINS
0

How to Play

Objective

Place three of your marks (X or O) in a horizontal, vertical, or diagonal row before your opponent does.

Rules

  • X always goes first
  • Players take turns placing their mark on an empty cell
  • The first player to get three marks in a row wins
  • If all nine cells are filled without a winner, the game is a draw

Game Modes

  • vs AI — Play against the computer. You are X, the AI is O
  • 2 Player — Play against a friend on the same device

AI Difficulty

  • Easy — AI makes random moves
  • Medium — AI blocks your winning moves and takes obvious wins
  • Hard — AI plays optimally using the minimax algorithm

Controls

  • Click or Tap — Place your mark
  • 1–9 — Place mark in cell (numpad layout: 7=top-left, 9=top-right, 1=bottom-left)
  • N — New Game

Strategy Tips

  • Taking the center on the first move gives you the most winning opportunities
  • Corners are the next best opening positions
  • Try to create a fork — two ways to win at once — to force a victory
  • Always block your opponent if they have two in a row

Embed This Util

You can embed this util on your own site as a widget. Adding ?embed=1 to the URL loads a compact version with just the tool itself; no header, menu, or documentation. Paste this snippet into your HTML:


    

Copy snippet Adjust the height to taste.



Feedback

Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.


Share with