What are PGN & FEN?
PGN (Portable Game Notation) is an easy-to-read format which records both the moves of the game (in standard algebraic notation) and any related data such as the names of the players, the winner/loser, and even the date the game was played.
Here is an example taken directly from the chess.com archives:
[Event "Chess.com Staff Tournament #2"]
[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
If you were to copy this entire block of PGN and post it as a Game or Sequence of Moves diagram in a forum post, then you'd be able add commentary before/after any moves in the sequence. Anyone reading that post would be able to play through the game using the arrows at the bottom as well as see any comments you made in the editor. Also, all the information about who played it, when, where, etc., would be displayed at the top of the diagram.
Of course, you don't NEED all the extra information. Copying just the moves (1.e4 through 16.exd3) will suffice. But then you wouldn't have any player/game information unless you manually entered it in the "Game Details" tab of the editor.
In order to get a PGN from a game, simply click on the download button underneath the move buttons on any chess game, ongoing or complete:
FEN (Forsyth-Edwards Notation) provides all the information needed to describe ONE particular position. It won't tell you much about what occurred before that point in the game; for instance, it cannot indicate if a draw by threefold repetition might occur. However, it does show if there are possibilities for castling, whose move it is, and the number of moves played so far.
If you REALLY want to become good at reading FEN, read this article.
Here is what an FEN string looks like for the initial setup of the board:
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
Here is what it looks like if 1. e4 is played:
rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1
And here is what it looks like at the final position in the PGN string I provided above:
5k2/ppp5/4P3/3R3p/6P1/1K2Nr2/PP3P2/8 b - - 1 32
FEN strings are good if you want to simply show a single position, or if you want to post a puzzle. In that case, you just paste the FEN into the chess.com Diagram Editor, enter the solution moves and insert. It is much simpler than setting up each piece individually.
In order to get an FEN from a game, simply click on the "Moves" tab on the menu beside any chess game and then click once inside the little white box that says "FEN." Copy and paste it as needed.
If you have questions about using the PGN or FEN with the Analysis Board and Editor, check out this article.
Likewise, if you wish to learn more about using PGN or FEN with the puzzle/position diagrams in the forums, click here for more information.
keywords: pgn fen puzzles positions editor notation move list database record