Chess Opening Identifier
Find any chess opening by name, by the moves of a game (pasted or played on the board) or by a FEN position, with its ECO code and the lines that follow.
Or identify it from the moves
What opening did I play?
Copy the moves of your game and paste them into the box above. Move numbers are optional, and a whole PGN from Lichess, chess.com or a database works too, headers and clock comments included. Or play the first moves on the board. The identifier names the opening and the deepest named line your game followed, shows its ECO code and the move with which your game left the named lines, and links to the line's page: how it scores in rated Lichess games (for the most-played lines also by rating band and in master games) and what Stockfish makes of the position.
How the identifier works
Every one of the 3,690 named lines in the Lichess chess-openings dataset is indexed by its moves. The identifier finds the longest named line that your moves begin with, so a game that leaves known theory early still gets the name of the opening it started as, along with how many moves past documented theory it went.
Different move orders can reach the same position. Search by FEN to list every named line that arrives at a position, whatever the order of moves; the move counters and the en-passant field are ignored. The name search matches parts of names, with or without accents and apostrophes (najdorf, grunfeld, kings indian), forgives a typo, knows short names such as QGD and KID, and takes ECO codes such as B20.
Examples
-
1. e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4 Nf6 5. Nc3 a6is the Sicilian Defense: Najdorf Variation (B90) -
1. e4 e5 2. Nf3 Nc6 3. Bb5 a6is the Ruy Lopez: Morphy Defense (C70) -
1. d4 Nf6 2. c4 e6 3. Nf3 d5 4. Nc3 Be7 5. Bg5 O-O 6. e3 Nbd7is the Queen's Gambit Declined: Orthodox Defense (D60) -
1. e4 c6 2. d4 d5 3. e5is the Caro-Kann Defense: Advance Variation (B12)