Skip to content

PGN Cleaner & Validator

Find and repair malformed PGN files.

Repair options

Illegal moves are found by replaying each game from the starting position. Missing tags are filled with "?" and the Result tag is matched to the move text.

How to use the PGN Cleaner & Validator

Messy PGN files from scoresheets, databases or copy-and-paste often break other chess software. This tool replays each game from the starting position, flags illegal moves, fills in missing tags and lets you download a cleaned PGN.

  1. Paste your PGN (one game or many) or choose Open .pgn file.
  2. Choose any Repair options you want, such as cutting a game at its first illegal move, leaving out games that are still invalid, or removing comments, variations, !? symbols and [%clk] or [%eval] tags.
  3. Press Clean and validate and read the report.
  4. Check the Cleaned PGN box, then use Copy or Download cleaned.pgn.

PGN Cleaner & Validator FAQ

How does it find illegal moves?

Each game is replayed move by move from the starting position, so a move that is not legal in the position is reported.

What happens to missing tags?

Missing tags are filled with “?” and the Result tag is matched to the move text.

Can I strip comments and variations?

Yes. The repair options can remove comments, variations, !? symbols and $ codes, and [%clk] and [%eval] tags from comments.

More in games & notation

CONVERT

PGN–FEN–SAN–UCI Converter

Convert between chess notation formats.

Open tool →
CHECK

Chess Game Result Checker

Check mate, stalemate and common draw conditions.

Open tool →
VALIDATE

FEN Validator

Check a FEN field by field, plus whether the position is legal.

Open tool →