What is PGN in chess? Format, example, how to download and upload a game
Ferzika Editorial Team · updated · 7 min

PGN (Portable Game Notation) is a plain-text format for recording a chess game, understood by almost every chess program and website. A file has tags in square brackets (who played, where, the result) and a list of moves, for example 1. e4 e5 2. Nf3. A file with the .pgn extension can be opened in a text editor, downloaded from a site and loaded for analysis.
- PGN is ordinary text: tags on top, moves below. You can read and write it by hand.
- There are seven required tags: Event, Site, Date, Round, White, Black, Result.
- Pieces are written with English letters: K, Q, R, B, N. Letters from other languages do not import.
- FEN describes one position, PGN describes the whole game.
What is PGN in chess: an example file
The format was proposed by Steven Edwards in 1993 and has remained the standard for exchanging games ever since. Here is a complete record of a short practice game that ends with Legal's mate:
[Event "Training game"] [Site "?"] [Date "????.??.??"] [Round "?"] [White "?"] [Black "?"] [Result "1-0"] 1. e4 e5 2. Nf3 d6 3. Bc4 Bg4 4. Nc3 g6 5. Nxe5 Bxd1 6. Bxf7+ Ke7 7. Nd5# 1-0
In a file each tag usually sits on its own line, with an empty line between the tags and the moves. Here is the same game on the board: step through it and compare it with the record.
1. 2. 3. 4. 5. 6. 7.
What a PGN file is made of
- 1Seven tagsEvent, Site, Date, Round, White, Black, Result
- 2An empty line
- 3MovesNumber, White's move, Black's move: 1. e4 e5
- 4Result1-0, 0-1, 1/2-1/2 or *
Tags
| Tag | Meaning | Example |
|---|---|---|
| Event | The tournament or event | Rated blitz game |
| Site | A place or an address | A city or the game's web address |
| Date | The date as YYYY.MM.DD | 2026.11.03 |
| Round | The round, if there is one | 1 or ? |
| White | Who played White | Your username |
| Black | Who played Black | Your opponent's username |
| Result | The result | 1-0, 0-1, 1/2-1/2 or * |
Optional tags may follow: player ratings, time control, the name of the opening. The opening, for example, goes in the Opening tag.
Moves
Moves are written in short algebraic notation: just the piece letter and the square it goes to. When a clarification is needed, the file or rank is added: Nbd7. A capture is marked x, check with +, mate with #, castling is O-O and O-O-O (the letter O, not a zero), and promotion is written e8=Q. More on the symbols in the article on chess notation.
Comments and symbols
Text in curly braces is a comment; a program does not treat it as a move. Variations go in parentheses. Move-quality symbols are encoded in the standard as numbers after a dollar sign: $1 means !, $2 means ?, $3 means !!, $4 means ??, $5 means !?, $6 means ?!. What these symbols mean in practice is covered in the article on inaccuracy, mistake and blunder.
Sites can store the clock time and the engine evaluation in comments. It looks like this: 2. exd5 { [%clk 1:01:27] } and 12. Bxf6 { [%eval 0.23] }. That is how a review can show how much time you spent on a move and when the evaluation dropped.
How to download a game as PGN
If you want to review games from chess.com or lichess, you do not need a file: enter your username and Ferzika loads them itself. If you need the file for another program, look for a PGN, Share or Download button in the game window. The downloaded file has the tags and moves, and sometimes evaluations and comments too.
How to upload a PGN game for analysis
If the game was played online, a username is enough for game analysis in Ferzika. A PGN file is needed for games that are not on any site, and for chess programs. The steps there are usually:
- Open the PGN import field in a chess program or on a website.
- Paste the whole text of the game or choose the file.
- Run the computer analysis, and the game gets symbols, a graph and an accuracy score.
If you play on chess.com or lichess, you do not have to hunt for a PGN in Ferzika: games load by username, no password needed. Game review is always free.
A game from the board: how to record it as PGN
You can get a game from a tournament or a coffee shop into a computer in two ways. First: replay it on an analysis board in a chess program, and the PGN appears by itself. Second: type the moves in a text editor and paste them. The tag header is required by the standard, but for import a single line of moves is usually enough.
If your scoresheet uses another language's piece letters, you have to convert the moves to English letters, and this is the main source of errors. PGN always uses K for king, Q for queen, R for rook, B for bishop and N for knight. The knight is the one people mix up most often: in many languages it starts with the same letter as the king does in English.
- 1Moves from the scoresheet
- 2Other-language letters to EnglishKing K, queen Q, rook R, bishop B, knight N
- 3Paste into the import field
- 4Run the analysis
What to do if your PGN will not load
| Symptom | Likely cause | How to fix it |
|---|---|---|
| An error on one move | The move is written wrongly or is illegal | Replay the game on a board up to that point |
| The game cuts off | The text has piece letters from another language | Replace them with English letters: Nf3, Bc4 and so on |
| The wrong knight on the square | No clarification: Nd7 instead of Nbd7 | Add the file of the starting square |
| Castling is rejected | Written 0-0 with zeros | Write it with letters: O-O |
| Only one game loaded | The file holds several games | Load the games one at a time: not every program accepts several at once |
How PGN differs from FEN
FEN is a single line that describes one position: where the pieces stand, whose move it is, whether castling is allowed. PGN describes the whole game from the start. If you need to ask about one specific moment, for example showing a position to an AI, you need a FEN. If you want to review the whole game, you need a PGN.
FAQ
What opens a PGN file?
Any text editor, if you just want to read it, and any chess program or website, if you want to replay the game on a board.
How do I download a game as PGN?
Open the game and look for a PGN, Share or Download button in its window. If you want to review games from chess.com or lichess, you do not need a file: a username is enough in Ferzika.
How do I upload a game for analysis?
If the game was played online, a username is enough in Ferzika. Paste a PGN file into the import field of a chess program or website, then run the computer analysis.
Can PGN use my own language's piece letters?
The standard uses English letters. Notation with localized letters often causes an import error, so convert it first. Player names and comments can be in any language.
How many tags are required in PGN?
Seven: Event, Site, Date, Round, White, Black, Result. For importing a game, most sites are fine with just the moves.



