What is FEN in Chess?

By Andy Fang
5 min read
January 18, 2025

FEN: The Snapshot That Says It All

You’ve probably seen them before—those strange-looking strings filled with letters, slashes, and numbers.

Something like:

rnbqkb1r/pp2pp1p/3p1np1/8/3NP3/2N5/PPP2PPP/R1BQKB1R w KQkq - 0 6

That, my friend, is a FEN—and while it might look like someone sat on a keyboard, it’s actually one of the most powerful tools in chess.

In this post, we’ll break down what FEN is, how it works, and how you can use it to sharpen your game!


What Is FEN?

FEN stands for Forsyth–Edwards Notation. It’s a compact, standardized way to describe a single position on the chessboard.

While PGN gives you the full story of a game move by move, FEN gives you a snapshot of a position right now—including where the pieces are, whose turn it is, castling rights, and more.

Think of it like a chess diagram, compressed into one line of text.

Anatomy of a FEN

Let’s decode this line:

rnbqkb1r/pp2pp1p/3p1np1/8/3NP3/2N5/PPP2PPP/R1BQKB1R w KQkq - 0 6

A FEN has six parts, separated by spaces:

1. Piece placement (what’s on each square)

Example: rnbqkb1r/pp2pp1p/3p1np1/8/3NP3/2N5/PPP2PPP/R1BQKB1R

This is the layout of the board, starting from rank 8 (Black’s back rank) down to rank 1 (White’s back rank). Each rank is separated by a / and the contents of the squareds are described from the a-file to the h-file.

Within each rank:

• Pieces are represented by letters: • Uppercase = White (RNBQKP) • Lowercase = Black (rnbqkp) • Empty squares are represented by a digit showing how many in a row: • 3 = three empty squares • 8 = a full empty rank

For example, rnbqkb1r means:

• r = Black rook on a8 • n = Black knight on b8 • b = Black bishop on c8 • q = Black queen on d8 • k = Black king on e8 • b = Black bishop on f8 • 1 = one empty square (g8) • r = Black rook on h8

This section gives the entire board position in one line.

2. Active Color

Example: w

This just tells you whose move it is:

• w = White to move • b = Black to move

3. Castling Availability

Example: KQkq

This section shows which side still has the right to castle. • K = White can castle kingside • Q = White can castle queenside • k = Black can castle kingside • q = Black can castle queenside • If no castling is allowed for either side, it’s just -

Important: this reflects whether castling is still available, not whether it’s legal this turn. Even if the king is in check or the path is blocked, this field won’t change until castling rights are lost permanently.

4. En Passant Target Square

Example: -

This field tells us if an en passant capture is currently possible.

Let’s say White plays e2 to e4. The square e3 becomes the target square, because a Black pawn could potentially capture en passant by moving from d4 to e3.

So you might see: e3

If no en passant capture is available, the value is simply -.

5. Halfmove clock (for the 50-move rule)

Example: 0

This tracks the number of halfmoves (i.e. individual moves by either player) since the last pawn move or capture.

Why does this matter?

Because of the fifty-move rule: if no pawn is moved and no piece is captured in 50 consecutive moves, either player can claim a draw. This field is how engines and arbiters track that.

If you just moved a pawn or took a piece, this resets to 0.

6. Fullmove Number

Example: 6

This is the move count, starting at 1 and increasing by one after Black’s move each turn.

This helps keep track of game history and is often used in analysis tools and notation formatting.

TL;DR: A FEN Snapshot Looks Like This

SectionMeaning
rnbqkbnr/pppppppp/…Board layout from rank 8 to 1
w or bWhose move it is
KQkqCastling rights
e3 or -En passant target square
0Halfmove clock since last pawn move/capture
1Fullmove number

PGN vs FEN: What’s the Difference?

You may have also seen something called a PGN (Portable Game Notation).

PGN is for full games. Use it when you want to study entire openings, analyze mistakes, or archive your matches.

FEN is for individual moments. Use it when you want to analyze a position, set up a tactic, or revisit a tricky decision.

If PGN is a movie, FEN is a single frame.

How to Generate a FEN

Super easy.

  1. Open an analysis board on your favorite chess platform.
  2. Set up the position you want—manually or by playing moves.
  3. Look for a “FEN” field or export option (most tools have one).
  4. Copy the string—that’s your FEN.

You can now paste it into engines, share it in forums, or load it into training software.

PGN Meets Noctie: Train Like a Pro

This is where it gets fun.

If you’ve got a position you really want to understand—an endgame you messed up, a tactical moment that went sideways, or a position from a master game you admire—you can use the FEN to practice it against Noctie, the world’s most humanlike chess AI.

Here’s how:

🧠 Create a Theme from FEN

• Open Noctie’s Themes section • Click Create Theme • Import a FEN or PGN with the position you want to train

Noctie will jump into the opposite side of that position—and from there, it’s game on. You can spar from that exact moment over and over until the idea becomes second nature. And because Noctie plays like a human—not a perfect engine—it’s the most realistic way to pressure-test your understanding.


Final Thoughts: Master the Moments

FEN might seem like technical jargon—but it’s really a superpower.

It lets you zoom in on the most important parts of a game and train them like a pro. And with tools like Noctie, you can go from “I think I understand this” to “I would crush this next time” faster than ever.

So the next time you hit a critical position, don’t just move on. Grab the FEN. Load it into Noctie. And make that position yours.

Andy Fang
January 18, 2025