Skip to main content
♘ Caissa Codex
Openings ECO Rankings Search / Random Repertoire

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

    Drag or tap the pieces to play moves.

    Match

    Play the moves on the board, or paste them below.

    Possible continuations

      With or without move numbers; a whole PGN works too.

      Search by a FEN position instead

      Paste any FEN to find every opening that reaches that exact position, whatever the move order, which helps with transpositions.

      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 a6 is the Sicilian Defense: Najdorf Variation (B90)
      • 1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 is the Ruy Lopez: Morphy Defense (C70)
      • 1. d4 Nf6 2. c4 e6 3. Nf3 d5 4. Nc3 Be7 5. Bg5 O-O 6. e3 Nbd7 is the Queen's Gambit Declined: Orthodox Defense (D60)
      • 1. e4 c6 2. d4 d5 3. e5 is the Caro-Kann Defense: Advance Variation (B12)

      https://chesscodex.org/search

      Popular openings: Sicilian Defense, Italian Game, Ruy Lopez, French Defense, Caro-Kann Defense, Queen's Gambit Declined, Queen's Gambit Accepted, King's Indian Defense, Nimzo-Indian Defense, English Opening, Queen's Pawn Game: London System, Scandinavian Defense

      Browse: All openings A–Z, ECO codes, Best openings for White, Best openings for Black, Most popular openings, Chess gambits, Best gambits for beginners, How to play against popular openings, Opening trends, Opening identifier, Opening trainer

      Data: Lichess chess-openings (public domain)
      • About
      • Contact
      • © 2026 Ivan Petrov
      • Source code (AGPL-3.0)
      • Powered by Stockfish (GPL-3.0), chessground (GPL-3.0) and chess.js (BSD-2)