Games tool

Free Online Chess — Legal Moves & PGN

Select a piece and then one of its highlighted legal squares. Play locally with another person, undo moves and save or download the game as PGN.

Runs in your browser. No upload.

Play a local two-player game. Use legal moves, undo and save or download a PGN. Nothing is uploaded.

Choose a piece, then a highlighted destination.

Chess.js BSD-2-Clause license

About this tool

Free Online Chess — Legal Moves & PGN made simple.

Chess rules are checked in your browser. The game supports legal moves, check, checkmate, stalemate, castling, en passant and promotion. It does not connect players online or upload moves.

Guide

Using Free Online Chess — Legal Moves & PGN

This is a two-player chess board that runs on one device. You click a piece, then click one of the lit-up squares, and the rules are checked for you, including check, checkmate, stalemate, castling, en passant and pawn promotion. You can undo moves, flip the board and save or download the game as a PGN file. It does not play against you, keep a clock or connect you to other people online.

How to use it

  1. Click one of your pieces when it is your turn. The squares it may legally move to light up. You can also move around with the arrow keys and press Enter or Space to pick a piece or a square.
  2. Click a lit-up square to make the move. If a pawn reaches the last row, it turns into the piece shown in the Promote pawn to list, so set that list to Queen, Rook, Bishop or Knight before you move.
  3. Use Undo move to take back one move at a time, Flip board to turn the board around, and New game to go back to the standard starting position.
  4. To keep a game, press Save game on this device, or press Download PGN to get a file. Load saved game brings the saved position back later in the same browser.

Worked examples

The fastest checkmate (fool's mate)

You enter
Moves
f2-f3, e7-e5, g2-g4, d8-h4
You get
Status
Checkmate — Black wins!
Move list
1. f3 e5 2. g4 Qh4#

White opens the diagonal to its own king with two weak pawn moves, and the black queen on h4 gives check with no escape. The move list marks the final move with a hash sign.

Run through the tool’s own code.

Castling short

You enter
Moves
e2-e4, e7-e5, g1-f3, b8-c6, f1-c4, f8-c5, then king e1 to g1
You get
Move list
1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5 4. O-O
White king
g1
White rook
f1

Once the squares between king and rook are empty, you click the king and then g1. The tool moves the rook for you and writes the move as O-O.

Run through the tool’s own code.

Capturing en passant

You enter
Moves
e2-e4, a7-a6, e4-e5, d7-d5, then pawn e5 to d6
You get
Move list
1. e4 a6 2. e5 d5 3. exd6
Pawn on d5
removed

The black pawn jumped two squares and landed next to the white pawn. White may take it only on the very next move, landing on d6, and the black pawn on d5 disappears.

Run through the tool’s own code.

Promoting to a rook

You enter
Promote list
Rook
Moves
h2-h4, g7-g5, h4xg5, a7-a6, g5-g6, a6-a5, g6xh7, a5-a4, then pawn h7 to g8
You get
Move list
... 5. hxg8=R
Piece on g8
white rook

The list is read at the moment of the move. With Rook chosen the pawn becomes a rook; with the default Queen the same move gives hxg8=Q.

Run through the tool’s own code.

When it helps

  • Play a friendly game with a friend, a sibling or a child on one phone, tablet or laptop.
  • Try out an opening idea by moving pieces and using Undo to test another path.
  • Learn how castling, en passant and promotion work, because only legal squares are lit.
  • Save a finished game as a PGN file to open in another chess program or keep as a record.

Limits to keep in mind

  • It is for two people on the same device. There is no computer opponent, no hint button, no clock and no way to play with someone over the internet.
  • Undo takes back one move at a time, and New game clears the board without asking. Save first if you want to keep the position.
  • The save button keeps a single game in this browser's own storage, and each save replaces the last one. Clearing site data, or switching browser or device, loses it.
  • The PGN file uses placeholder headers (a question mark for event, site, round and player names) and ends with an asterisk even after checkmate. Edit it in a text editor if a site needs real details.

Tips

  • Set the Promote pawn to list before the move that reaches the last row, because there is no pop-up asking you afterwards.
  • Download the PGN of a game you want to keep. The browser save holds only one game at a time.
  • If small squares are hard to click, use the arrow keys to move around the board and press Enter to choose.

Sources

Common questions

About Free Online Chess — Legal Moves & PGN.

Does this chess game play against the computer?

No. Two people take turns on the same screen. There is no engine, no rating and no hint, so it works for friendly games and for trying out ideas rather than for training against a strong opponent.

Is this really online chess?

The name says online because it lives in a web page, but it does not connect players. Nothing is matched, chatted or sent to a server. Both players share one device and take turns clicking.

How do I promote a pawn?

Choose Queen, Rook, Bishop or Knight in the Promote pawn to list first, then move the pawn to the last row. The list starts on Queen, so a move with no change always makes a queen.

What is a PGN file and where can I use it?

PGN stands for portable game notation, a plain text list of moves. Many chess programs and websites can read it. This tool downloads it as usefulverse-chess-game.pgn and can also keep one copy in your browser.

Why can I not move a piece where I want?

Only legal moves are allowed. Your king may be in check, the piece may be pinned in front of the king, or it may be the other side's turn. Click a piece that shows lit-up squares.

Are my games uploaded or shared?

No. The board and the rules run inside your browser. A saved game goes into storage on your own device only, and nothing is sent to UsefulVerse or anyone else.

Who checks the chess rules?

The move rules come from chess.js, an open-source library under the BSD-2-Clause licence that is named on the page. It handles legal moves, check, checkmate, stalemate and other draws such as repetition.

How do I use Online chess?

Select a piece and then one of its highlighted legal squares. Play locally with another person, undo moves and save or download the game as PGN.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.