What is FEN (Forsyth–Edwards Notation)?
FEN is the standard one-line way to write down a chess position. Chess engines, databases, puzzle sites and GUIs all use it to pass positions around. Unlike PGN, which records a whole game move by move, a FEN string is a snapshot: it holds everything needed to continue from one position, and nothing about how the game got there.
A FEN has six fields separated by spaces. Here is the position after 1.e4:
| # | Field | Example | Meaning |
|---|---|---|---|
| 1 | Piece placement | …/4P3/… | Ranks 8 → 1, separated by /. Letters are pieces, digits count empty squares. |
| 2 | Side to move | b | w = White to move, b = Black to move. |
| 3 | Castling rights | KQkq | K/Q = White can castle kingside/queenside, k/q for Black, - = none. |
| 4 | En passant square | e3 | The square “behind” a pawn that just moved two squares, or -. |
| 5 | Halfmove clock | 0 | Half-moves since the last capture or pawn move. Used for the 50-move rule (100 half-moves). |
| 6 | Fullmove number | 1 | Starts at 1 and goes up after each Black move. |
Piece letters
Uppercase is White and lowercase is Black: K king, Q queen, R rook, B bishop,
N knight (K is taken by the king), P pawn. Each rank is read from the a-file to the h-file, so
4P3 means four empty squares, a white pawn on e, then three empty squares.
Example FEN Positions
Click any example to load it on the board above.
How to Use This FEN Viewer
- Paste one or more FENs (one per line) and click Load. Lines like
[FEN "…"]from PGN headers and Lichess-style FENs with underscores also work. - Check the status panel under the board. It shows check, checkmate, stalemate, insufficient material, legal move count, material balance, and any problems with the FEN.
- Navigate with the arrow buttons or ← →, and press F to flip the board.
- Share or export: copy a link to the position, or download a PNG or SVG diagram in your chosen board theme.
- Edit or play: open Setup Board to place pieces, or switch on Play to make legal moves (with undo).
- Analyze deeper: open the position in Lichess for engine analysis, or in the Syzygy tablebase when 7 or fewer pieces remain.
Frequently Asked Questions
What is a FEN string?
FEN (Forsyth–Edwards Notation) is a one-line text format that describes a chess position. It has six fields separated by spaces: piece placement, side to move, castling rights, en passant target square, halfmove clock and fullmove number.
How do I view a FEN position?
Paste one or more FEN strings (one per line) into the box and click Load. Use the arrow buttons or the left and right arrow keys to step through positions, and press F to flip the board.
Why does my FEN show an error?
The viewer checks that the board has 8 ranks of 8 squares, uses only valid piece letters, has exactly one king per side, has no pawns on the first or last rank, and that the side not to move is not in check. Castling and en passant fields that do not match the board are corrected automatically and reported as warnings.
How do I convert a FEN to an image?
Load the position, choose a board theme, and click PNG or SVG under the board. The diagram downloads instantly, with optional coordinates, ready for blogs, worksheets or social media.
Can I share a position as a link?
Yes. Click Share link to copy a URL containing the FEN. Anyone who opens it sees the same position. You can also build links yourself with ?fen= followed by the FEN string.
Can I set up a custom position?
Yes. Click Setup Board, pick a piece from the palette and click squares to place it (right-click erases). Set the side to move, castling rights and en passant square, then click Use Position.
Can I play moves from a FEN?
Yes. Turn on Play mode, click a piece to see its legal moves, then click a target square. Castling, en passant and promotion are supported, each move adds a new FEN to the list, and Undo takes moves back.
Is this FEN Viewer free?
Yes. It is completely free, needs no sign-up, and runs entirely in your browser.