PGN in Chess: What It Means and How to Use It
PGN — Portable Game Notation: a standardized text format for recording chess games, moves, and metadata.
What “pgn” means in chess
PGN is a plain-text format that captures a complete chess game: the moves (in algebraic notation), player names, event details, date, result, and comments. A PGN file contains metadata in brackets (e.g., [Event "World Championship"], [White "Kasparov"], [Black "Karpov"]), followed by the moves in algebraic notation separated by spaces and numbered with move numbers (1., 2., etc.). The result appears at the end: 1-0 (White wins), 0-1 (Black wins), or ½-½ (draw).
PGN is human-readable and machine-parsable, making it the gold standard for chess databases, study, and analysis. You can copy a PGN into any chess engine or platform, and it will replay the game perfectly. Variations and comments are nested with parentheses and braces, allowing analysts to notate alternate lines and explanations.
Every serious chess platform—chess.com, lichess, ChessBase, Chess DNA—uses PGN as the import/export format. Learning to read and write PGN is essential for storing your games, sharing them with coaches or friends, and studying the masters. A simple game might be just 10 lines; a complex annotated game can span hundreds.
How it plays out in practice
- Save your games as PGN files for long-term storage and offline analysis.
- Import opponent PGN files to study their patterns in your chess engine.
- Share PGN files with your coach or study group; everyone can open them.
- Use PGN comments and variations to document your thoughts during review.
Common mistakes
- Beginners sometimes confuse PGN (a file format) with a chess engine; PGN is just notation, not analysis.
- Not all platforms export full PGN (with metadata); always verify you have the [Event], [Date], and [White/Black] tags.
Does this concept show up in your games?
Definitions are the easy part — the hard part is knowing whether pgn situations are winning or losing you games. Chess DNA analyzes your real Chess.com and Lichess games with Stockfish and shows the exact patterns — tactical motifs, structures, endgame situations — where you gain or lose rating, with targeted drills for the ones you keep getting wrong. Free to try on your recent games.
Frequently Asked Questions
How do I export a game to PGN?
On most platforms (chess.com, lichess), click "Download" or "Export" on the game page and select PGN format. You'll get a .pgn file that any chess software can read.
Can I edit a PGN file in a text editor?
Yes. PGN is plain text. You can open it in Notepad or any text editor, add comments, fix metadata tags, or modify moves—just maintain the format carefully to avoid corruption.
What does the asterisk (*) mean in PGN?
It doesn't appear in standard PGN. If you see unusual symbols, they are likely comments or engine annotations. Standard PGN uses brackets for metadata, algebraic notation for moves, and parentheses for variations.