Skip to main content
All CollectionsLearn
What are PGN & FEN?
What are PGN & FEN?
Updated over 2 weeks ago

PGN

PGN (Portable Game Notation) is a widely-used format that records a chess game’s moves in standard algebraic notation along with related data such as player names, the result, and the game date.

Here is an example of a PGN taken directly from the chess.com archives:

[Event "Chess.com Staff Tournament #2"]
​[Site "Chess.com"]
​[Date "2010.10.26"]
​[White "ACEChess"]
​[Black "piotr"]
​[Result "1-0"]
​[WhiteElo "2037"]
​[BlackElo "2125"]
​[TimeControl "1 in 3 days"]
​[Termination "ACEChess won by resignation"]

​1.e4 d5 2.exd5 Nf6 3.d4 Nxd5 4.c4 Nb6 5.Nc3 g6 6.Be3 Bg7 7.h3 O-O 8.Qd2 Nc6 9.Nf3 e5 10.d5 Ne7 11.g4 f5 12.O-O-O e4 13.Ng5 h6 14.Ne6 Bxe6 15.dxe6 Qxd2+ 16.Rxd2 Rad8 17.Bc5 Rxd2 18.Kxd2 Rd8+ 19.Kc2 Nc6 20.gxf5 Nd4+ 21.Bxd4 Rxd4 22.Rg1 g5 23.c5 Nc4 24.Bxc4 Rxc4 25.Rd1 Bf6 26.Kb3 Rxc5 27.Nxe4 Rxf5 28.Nxf6+ Kf8 29.Ng4 h5 30.Ne3 Rf3 31.Rd5 g4 32.hxg4 1-0

When you copy a PGN block and post it in a forum as a Game or Sequence of Moves diagram, readers can play through the game using the navigation arrows and view any comments you've added. The diagram will also display game details like player names and dates at the top.

If you prefer, you can copy just the moves (e.g., 1.e4 through 16.exd3), but this won’t include any additional game details unless you manually enter them in the 'Game Details' tab of the editor.

📚 Check out this article to learn how to get the PGN of any game in Chess.com: How do I get a PGN of my game?


FEN

FEN (Forsyth-Edwards Notation) is a concise way to describe a single position on a chessboard. It doesn't provide information about the moves leading up to that position, so it can’t indicate potential draws by threefold repetition, for example. However, FEN does include important details such as whose turn it is, if there's a chance for castling, and the number of moves played.

Example of FEN strings:

  • Initial setup of the board: rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1

  • After 1. e4 is played: rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1

  • A final position (using the final position in the string provided above as example): 5k2/ppp5/4P3/3R3p/6P1/1K2Nr2/PP3P2/8 b - - 1 32

FEN strings are particularly useful for showing a single position or if you want to post a puzzle. To do this, simply paste the FEN into the Chess.com Diagram Editor, enter the solution moves, and insert it. This method is easier than manually placing each piece.

📰 Check out this article if you're interested in using PGN or FEN with puzzle/position diagrams in forums: How to use the Chess.com Diagram Editor

How to get the FEN of a game

To get an FEN string from a game, go to the bottom of the game screen and click the

icon. Then select the PGN tab. The FEN will be listed above the PGN:

📚 Check out this article if you want to learn how to use a PGN or FEN in the Analysis board: How do I use the analysis board?

Did this answer your question?