The 960 numbered starting positions, the ready FEN and castling explained for the position you drew
Chess960, also called Fischer Random Chess, is a variant in which the pieces on the back rank start shuffled, with the same arrangement for both colors. Moves are those of ordinary chess, and the only difference is castling. For a starting position to be valid, the two bishops must stand on squares of opposite colors and the king must be between the two rooks. Within those rules there are exactly 960 arrangements, and each has a number from 0 to 959 under Reinhard Scharnagl's scheme, the same you see in chess sites and programs. Number 518 is the usual position (RNBQKBNR), 0 is BBQNNRKR and 959 is RKRNNQBB.
The generator draws a position, shows the board, the number and the letters, and lets you look one up by number or by typing the eight letters of a position you have seen. There is also a list of all 960 positions, searchable by fragment (for example BBQ for those that start with both bishops and the queen). For each position you get the FEN in two notations: X-FEN, where castling appears as KQkq, and Shredder-FEN, where each right is written with the rook's file, such as HAha in the classical position. Most programs read both.
Chess960 castling is explained for the chosen position. King and rook end on the same squares as in ordinary chess: on short castling, king on g1 and rook on f1; on long castling, king on c1 and rook on d1, wherever they started. All squares between the starting and the final squares must be empty, except those occupied by the king and the castling rook themselves, and the king may not be in check nor pass through or land on an attacked square. That is why in some positions castling is possible after the very first piece move and in others it takes longer.
To play, the Lichess button creates an open Chess960 challenge with the chosen position and returns one link for each player. The "double 960" mode gives Black a different position from White's, better suited to over-the-board play. The generator runs in your browser and only talks to Lichess when you press the play button.
How to use it
From position to game in three steps
Press Draw to see a random position, or type a number from 0 to 959 (or the eight letters of the back rank) in the search field. Use Previous and Next to browse.
See the board, the number and the FEN. Choose X-FEN (KQkq) or Shredder-FEN (rook files), copy the FEN or make the diagram image. Read how castling works in that position.
To play, press the Lichess button and send the link for each color to yourself and your opponent. Over the board, set the pieces from the diagram or switch on double 960 mode.
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/chess960-position-generator"width="100%"height="600"style="border:0"loading="lazy"referrerpolicy="no-referrer-when-downgrade"title="Chess960 Position Generator (Fischer Random)"></iframe><p style="font-size:12px;margin:6px 0 0">Tool by <a href="https://jkit.tools/en/tools/chess960-position-generator">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/chess960-position-generator">Chess960 Position Generator (Fischer Random)</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.
It is a variant in which the back-rank pieces start shuffled, mirrored for both colors, while the pawns stay where they always were. Bobby Fischer proposed it in 1996. The placement rules are two: bishops on opposite-colored squares and the king between the rooks. Counting the arrangements that satisfy both gives 960 (4 squares for the light-squared bishop, 4 for the dark-squared one, 6 for the queen, 10 for the knights, and the three squares left take rook, king, rook).
Use the arrow keys to move between squares. Enter or space selects a piece, then the destination square. Escape cancels.
#518RNBQKBNR
This is the classical chess position (518).
Type a number from 0 to 959 or the 8 letters of White's back rank (R rook, N knight, B bishop, Q queen, K king).
Position number (0 to 959)
Black repeats White's files, mirrored.
How castling works in position 518
The king starts on the E file and the rooks on the A and H files.
Short castling (O-O)
King from e1 to g1; rook from h1 to f1.
Squares that must be empty: f1, g1.
Long castling (O-O-O)
King from e1 to c1; rook from a1 to d1.
Squares that must be empty: b1, c1, d1.
In addition, neither king nor rook may have moved, and the king may not be in check, pass through an attacked square or end in check. Black does the same on rank 8.
White's back rank, from the a-file to the h-file: rook, knight, bishop, queen, king, bishop, knight, rook.
Play this position
Creates an open Lichess challenge (unrated, Chess960 variant) with this position. You get one link per color.
Only this button makes the page talk to Lichess, sending the position and an unrated game request.
All 960 positions
960 positions
Letters: R rook, N knight, B bishop, Q queen, K king. Files run from a (left) to h (right), from White's point of view.