FEN
Reading & writing moves
A one-line code that captures a single position exactly.
FEN (Forsyth-Edwards Notation) describes one position in a single line: where every piece sits, whose turn it is, castling and en passant rights, and the move clocks.
Where PGN stores a whole game, FEN is a snapshot of one moment β perfect for setting up a puzzle or sharing a position.
Move 0 of 13
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
- Piece placement
- rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR β where every piece sits, rank 8 β 1
- Side to move
- w β w = White, b = Black
- Castling rights
- KQkq β who can still castle (K/Q/k/q)
- En passant target
- - β a square if one is available, else β
- Halfmove clock
- 0 β moves since a pawn move or capture
- Fullmove number
- 1 β counts up after each of Black's moves
FEN captures just this position in a single line. Step through and watch it change.