Missing black king
- Input
- 8/8/8/8/8/8/8/4K3 w - - 0 1
- Expected output
- Falta o rei preto. Cada lado precisa de exatamente um rei.
It is the most common error when copying only part of a diagram.
FEN validator chess
Programs usually answer a bad FEN with a plain "invalid" or "illegal FEN". This validator tells you which rule was broken, shows the squares involved on the board and lets you fix it right there. Paste the FEN into the field and the validation panel works as you type.
It is the most common error when copying only part of a diagram.
With Black to move (b), the same position is legal: they are in check and must respond.
Replace the rights with - or turn on automatic castling detection.
FEN describes a position in six space-separated fields. The first lists the ranks from 8 down to 1, with capital letters for White (K king, Q queen, R rook, B bishop, N knight, P pawn), lowercase for Black and digits for runs of empty squares. The second is the side to move (w or b). The third is the castling rights (K and Q for White, k and q for Black, or - for none). The fourth is the en passant square or -. The fifth is the halfmove clock since the last pawn move or capture. The sixth is the move number, which starts at 1 and goes up after Black moves. The starting position is rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1.
A pawn that reaches the 8th rank (or the 1st, for Black) is promoted on that very move, so no real position has a pawn there. If your FEN came from a generator, the ranks may be reversed: FEN lists from the 8th to the 1st, with White in uppercase.
In normal mode, every problem is an error and blocks copying, the image and the link. In the mode that allows illegal positions, the same problems become warnings and the actions stay available, for people composing studies. Engine analysis still requires a legal position in both cases.
Use the arrow keys to move between squares. Enter or space selects a piece, then the destination square. Escape cancels.
Move mode: tap a piece, then its destination square.
Drag a piece from the palette onto the board, or tap it and then the squares. Right click or long press deletes.
Paste a full FEN or just the first field with the pieces. The board updates as you type.
Valid position.
Playable position. 20 legal moves.
Pieces: 16 white, 16 black.