FEN or PGN: Which One Do You Need?
One records a position, the other records a game. Knowing which you have saves a lot of confusion when a tool refuses to accept what you pasted.
· 3 min read

The two formats get confused constantly, usually at the moment a tool rejects what you pasted. They record different things and neither substitutes for the other.
What each holds
A FEN is a single position on one line. Piece placement, side to move, castling rights, en passant square, and two move counters. Nothing about how the position arose.
r1bqkbnr/pppp1ppp/2n5/4p3/2B1P3/5Q2/PPPP1PPP/RNB1K1NR w KQkq - 4 4
A PGN is a game. A block of tags, then the moves in algebraic notation, then the result.
[Event "Club championship"]
[White "Player A"]
[Black "Player B"]
[Result "1-0"]
1. e4 e5 2. Bc4 Nc6 3. Qf3 d6 4. Qxf7# 1-0
Which to use for what
| You want to | Use |
|---|---|
| Ask about one position | FEN |
| Share a puzzle | FEN |
| Review a whole game | PGN |
| Study an opening line | PGN |
| Store a game with commentary | PGN |
| Set up a board quickly | FEN |
The rule of thumb: if the question is "what should I play here", it is a FEN. If the question is "where did this go wrong", it is a PGN, because the answer is a move you made earlier and a position alone cannot show you that.
What each format loses
A FEN loses history, and history matters more than people expect. Threefold repetition depends on positions having occurred before, and a FEN cannot record that. Neither can it tell you whether the position arose from a sharp gambit or a quiet manoeuvring game, which is context a human would use.
A PGN loses nothing about the moves but frequently loses the clock. Time spent per move is stored by some sites in comments and dropped by others, and time trouble explains a great many moves that look inexplicable in notation.
The parts that go wrong
Line breaks in a FEN. A FEN is one line. Copying it out of a PDF or a chat window sometimes inserts a break, and the tool sees half a position.
Move numbers pasted into a FEN field. The last two fields of a FEN are numbers, and a PGN also has numbers. Pasting 1. e4 e5 into a FEN box produces a validation error that does not explain itself.
A PGN starting from a custom position. If a game did not start from the usual setup, the PGN needs a [FEN "..."] tag and a [SetUp "1"] tag. Without them the moves are replayed from the standard start and produce nonsense, or an error partway through.
Annotation symbols. A PGN full of !? and $14 codes is still valid, but some simple parsers choke. If a game will not load, stripping the annotations is worth trying before anything else.
A practical habit
When you save a game worth studying, save the PGN. When you find a position worth returning to, save the FEN of that position separately, alongside a sentence about why.
The FEN alone will not remind you what you were thinking, and by the time you come back to it, that sentence is the part you will actually need.
Reading a FEN at a glance
Two fields tell you most of what you need before you look at the board.
The second field is the side to move. Check it first, every time. A position analysed for the wrong side gives a confident answer to a question nobody asked, and it is the single most common cause of an evaluation that seems impossible.
The last two numbers are the halfmove clock and the move number. In a middlegame they are irrelevant. In an endgame the halfmove clock decides whether a win is reachable before the fifty-move rule intervenes, so a FEN typed by hand with those set to 0 1 is not the position you meant.
Getting one from the other
Every board tool will give you the FEN of the position currently displayed, so extracting a FEN from a PGN is a matter of navigating to the move you care about and copying.
Going the other way is impossible in principle. A FEN has no history, and history is not recoverable from an arrangement of pieces. If someone sends you a FEN and asks where they went wrong, the honest answer is that the question needs the game.
Common questions
- What is the difference between FEN and PGN?
- A FEN is one position, written as a single line. A PGN is a whole game, written as a list of moves with tags for the players, event and result. A PGN can contain a FEN, in a tag that says where the game started when it did not start from the usual position.
- Can I convert a PGN to a FEN?
- Yes, by playing the moves out. Any board tool that accepts a PGN will give you the FEN of whatever position you have navigated to. The reverse is not possible: a FEN records where the pieces are and not how they got there.
Try it on your own position
The analysis board runs the same engine in your browser, free. The app adds what a web page cannot: reading a position straight from a photograph, saved boards, and analysis with no connection.
