♟ FEN Viewer

Chess Position Visualizer
♔

Load a FEN to view the position

Quick static evaluation 0.00
Equal
Material, piece placement & mobility only. No move search. Use Lichess analysis for engine lines.

Positions

No positions loaded yet

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:

rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR bKQkqe301
#FieldExampleMeaning
1Piece placement…/4P3/…Ranks 8 → 1, separated by /. Letters are pieces, digits count empty squares.
2Side to movebw = White to move, b = Black to move.
3Castling rightsKQkqK/Q = White can castle kingside/queenside, k/q for Black, - = none.
4En passant squaree3The square “behind” a pawn that just moved two squares, or -.
5Halfmove clock0Half-moves since the last capture or pawn move. Used for the 50-move rule (100 half-moves).
6Fullmove number1Starts 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

  1. 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.
  2. 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.
  3. Navigate with the arrow buttons or ← →, and press F to flip the board.
  4. Share or export: copy a link to the position, or download a PNG or SVG diagram in your chosen board theme.
  5. Edit or play: open Setup Board to place pieces, or switch on Play to make legal moves (with undo).
  6. 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.

Promote pawn to:

⚙ Setup Board

✕
Turn
En Passant
Castling