How to convert a PGN to an animated GIF
PGN is the text format every chess program speaks. This turns that text into a looping animation you can paste into Discord, a forum or a blog post — including what happens to comments and variations.
A PGN is just notation: moves, and often headers, comments and side lines. It is precise and completely unreadable to anyone who does not read chess notation. A GIF is the opposite — it shows the moves happening, loops on its own, and pastes into places that will not embed a video player.
What counts as a PGN
- A .pgn file exported from Chess.com, Lichess, SCID, ChessBase or an engine.
- Notation copied as text — 1. e4 e5 2. Nf3 Nc6 and so on.
- An annotated game with headers, comments and variations. All three come across.
Step by step
Get the notation
Copy the moves as text, or download the file. If it came from a database or an engine, it is already a PGN.
Paste or upload it
On the New replay screen, paste the notation or upload the file. ChessMotion reads the move list, the headers and any side variations into an editable replay.
Choose what the GIF shows
This matters more for a GIF than for a video. A GIF has no controls — it loops, and the viewer cannot scrub. Pick a short, self-contained sequence: a tactic, a mating net, a key endgame idea. Ten to twenty plies usually reads well; a whole game usually does not.
Style the board
Choose the board theme, piece set and highlight style. Higher contrast reads better at small sizes, and a GIF is frequently viewed small in a chat window.
Export the GIF
Export an animated GIF. Square exports at 720 × 720, which suits chat and forums; landscape exports at 1280 × 720 with an information panel beside the board, which suits a blog post. Paid plans add Full HD: 1080 × 1080 square or 1920 × 1080 landscape.
Where do you get a PGN?
- Chess.com: open the game, choose Share, and copy or download the PGN. A game link also imports directly.
- Lichess: open the game or study chapter, choose Share & export, and copy the PGN.
- ChessBase, SCID and other databases: export the single game you want as a PGN file.
- A scoresheet: type the moves in notation. Every move is checked on import, so a typing error shows up as the first move that will not play.
What can stop a PGN from importing?
- More than one game. A database export often holds hundreds of games in one file. ChessMotion imports one game at a time and says so; export or copy the single game you want.
- A chess variant. A PGN marked as Chess960, Crazyhouse or another variant is refused. Only standard chess imports.
- A broken header. Each header line must look like [Event "Club championship"]. A missing quote or bracket is reported, quoting the header that could not be read.
- Size. The limit is one million characters and 2,000 half-moves. The longest tournament game on record lasted 269 moves, so no real game comes close.
Can a GIF start from a position instead of move one?
Yes. A PGN with [SetUp "1"] and a [FEN "…"] header starts from that position. This is how puzzles and endgame studies are usually stored, and the GIF then opens on the puzzle rather than on the starting position. Without those headers, the game starts from the normal opening position.
A worked example
Paste this line: 1.e4 e5 2.Bc4 d6 3.Nf3 Bg4 4.Nc3 g6 5.Nxe5 Bxd1 6.Bxf7+ Ke7 7.Nd5#. It is Légal’s mate, 13 half-moves long, which is the right length for a looping GIF. Choose a high-contrast board, keep the Normal speed so each move takes about a third of a second to animate, and export the square 720 × 720 GIF for a Discord channel or a forum reply. The last frame, the mate, holds longer than the others, so the loop pauses on the point before starting again.
Comments and variations
An annotated PGN keeps its annotations on import, so the branch points and comments are there in the editor. Choose Main line for a compact export, or enable All variations to play the main line first and then return to each recorded branch with its label. GIF, MP4 and the interactive replay use the same playback plan.
GIF or MP4?
- GIF — loops automatically, needs no player, pastes anywhere. Silent, and a larger file for the same length.
- MP4 — smaller and sharper, can carry music, and supports the 9:16 vertical format. Needs a player.
If it is going in a chat message, a forum reply or a blog post, choose the GIF. If it is going on a social platform that plays video natively, choose the MP4.
The Chess GIF Maker does this directly: paste the PGN, style it, export the GIF. Free to try, no card required.
Read next: Chess GIF Maker, Create a chess GIF from a position, Chess Video Maker and Minimal Social template.