A set-up board that speaks FEN both ways and tells you why a position is impossible
FEN (Forsyth-Edwards Notation) is the line of text that describes a chess position: the pieces rank by rank, whose turn it is, which castling moves are still possible, the en passant square and two move counters. This editor shows that line live while you arrange the board and works the other way too: paste a FEN into the field and the board follows at once. You can drag pieces from the palette, tap a piece and then its destination square, delete with a right click (or a long press on a phone) and use the palette pieces as many times as you like, as spare pieces.
Validation does more than say "invalid FEN". Each problem becomes a specific sentence: a king is missing, there are two white kings, a pawn sits on the 1st or 8th rank, one side has more than eight pawns or more pieces than promotions allow, the kings touch, the side that is not to move is in check, a castling right points to a king or rook that is not at home, or the en passant square matches no pawn. The squares involved are highlighted on the board. When the position is legal, the editor also reports check, checkmate, stalemate or insufficient material, and how many legal moves exist.
Castling rights are detected automatically (king and rook on their home squares), but you can turn detection off and set them by hand, for example to reproduce a FEN from a real game. The "allow illegal position" mode is for people composing studies and problems or building teaching positions with extra pieces: the warning stays visible, but the FEN, the image and the link remain available. Engine analysis, however, only opens for positions the rules allow, because the move generator needs a legal position.
From the editor you can open the position in analysis, turn it into an image (PNG or SVG with arrows and a caption), copy the FEN or build a ?fen= link to send to someone. Nothing is sent to a server: the board, the validation and the links are all computed in your browser.
How to use it
From an empty board to a validated FEN in three steps
Pick a piece in the palette and tap squares to place it, or drag the piece from the palette onto the board. In Move mode, tap a piece and then its destination. Right click (or a long press) deletes a piece; Clear empties the board and Start position restores the game.
Set whose turn it is, check the castling rights (automatic detection is on by default), the en passant square and the counters. Or paste a FEN into the text field and the board and options update.
Read the validation panel: errors in red block analysis; in illegal mode they become warnings. When the position is right, open it in analysis, make the image, copy the FEN or the share link.
Embed
Use this tool on your site
Paste the code into your HTML and the tool shows up on your page, without J-Kit's navigation and ads. It still runs in the browser of whoever visits your site.
<iframesrc="https://jkit.tools/embed/en-US/fen-editor"width="100%"height="600"style="border:0"loading="lazy"referrerpolicy="no-referrer-when-downgrade"title="FEN Editor and Validator"></iframe><p style="font-size:12px;margin:6px 0 0">Tool by <a href="https://jkit.tools/en/tools/fen-editor">J-Kit</a></p>
Cite
Cite or link to this tool
Using it in a paper, class or post? Copy the link or a ready-made reference. The access date is today's.
<a href="https://jkit.tools/en/tools/fen-editor">FEN Editor and Validator</a>
References
Sources and references for this tool
These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.
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.