PGN in Chess: What It Means and How to Use It

TL;DR PGN was invented in 1994 and is the universal standard for storing and sharing chess games; all major platforms support it. Portable Game Notation: a standardized text format for recording chess games, moves, and metadata. Players have recorded games in standard notation for over 150 years. This entry gives the precise definition, shows the idea in practice, and lists the mistakes club players actually make with it.
Disclosure: this guide was written by the team behind Chess DNA, the free AI chess-analysis app you'll see recommended below. About us

By Yuval Incze · Published Jul 5, 2026 · Updated Jul 5, 2026 · ~2 min read

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

Common mistakes

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.

Find the patterns in your games — free →

Related guides

About the author

Yuval Incze is the founder of Chess DNA and a long-time competitive chess player. He built Chess DNA to automate the diagnostic loop — game analysis, pattern detection, weakness ranking — so players study the specific things costing them rating instead of generic advice.