After 1.e4
- Input
- ply 1
- Expected output
- rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1
The en passant field is "-" because no black pawn can capture on e3.
PGN Viewer and Notation Converter
pgn to fen
A PGN stores the moves; a FEN stores a position. To drill an opening, build a database or test a program, you often need every position of the game separately. This page opens on the FEN tab with the Opera Game, 17 moves that produce 34 positions (33 plies plus the starting one).
The en passant field is "-" because no black pawn can capture on e3.
EPD drops the half-move counter and the move number, which change from game to game but not the position.
That is 17 moves and 33 plies, which gives 34 FENs with the starting position and 33 without it. The game ends with White's mate (17.Rd8#), so the last ply is White's and the total is odd.
Drop the .pgn file on the upload area or click it to choose. The tool splits the games and shows a list with players, result, date, ECO code and moves. Click a row to open the game on the board. Large files with thousands of games open fine because only the selected game is read in full.
In the FEN list tab, choose the format and click Copy: it takes the whole text, even when the preview shows only the start. Download produces a .txt, .tsv or .csv file.
The list is for the selected game. Pick another in the tab's selector to get its list. For many games at once, generate one at a time or combine with PGN conversion.
The most common reason is the en passant field (see above). Another is the half-move counter. Compare only the first 4 fields (EPD) to tell whether it is the same position.
1 games loaded (opera).
One position (FEN) for each move of the open game's main line. Click a FEN in the table to analyze it.
PGN files are read and processed in your browser. Nothing is sent to servers.