How to Embed and Share Chess Games, Positions and Clips
You can put chess on a web page or a social post in four main ways: an interactive board that readers can click through, a still image of one position, an animated GIF of a short game, or a video or stream. Pick by purpose, and prepare the content in a standard text form first: a PGN for a whole game and a FEN for a single position. Nearly every tool, whichever you use, accepts one or both.
Want to improve faster? International Master George Li starts a first lesson from your own games and sends a written plan after it: $150 for 60 minutes.
Book your first lesson ($150)Which format fits which job?
| Format | Best for | What you need | Watch out for |
|---|---|---|---|
| Interactive board embed | Articles where readers follow the moves | A game or PGN and the embed code | Page speed, and a width that fits phones |
| Still diagram image | One key position in a post or newsletter | The position, then an image download | Add a caption and alt text |
| Animated GIF | Social posts and chats, where a game replays on a loop | A PGN or a game link | File size and speed of play |
| Video or live stream embed | Events, lessons and commentary | The share option of the video host | Some recordings expire |
| Event page embed | Tournament coverage with games and results | The page code, often an iframe | Choose a compact view and a light or dark theme |
The interactive embed is the most flexible. Most tools let you choose the board colours and piece set, switch coordinates on or off and flip the board. Many can also show the position as a puzzle, hiding the solution until the reader tries it. That is handy for a training page: you ask a question and let the reader move the pieces.
What do PGN and FEN actually contain?
A PGN, short for portable game notation, is a plain text file for a whole game. Header lines come first, naming the tournament, the venue, the day it was played, the round number, both players and the final score, and then the moves follow in standard algebraic notation. Because it is only text, you can paste it into an embed tool or a GIF maker, or send it by email.
| Tag | Example | Notes |
|---|---|---|
| Event | Club Championship | Name of the tournament or match |
| Site | Chicago | Place or website |
| Date | 2024.05.18 | Year, month, day, with question marks for unknown parts |
| Round | 3 | A question mark if unknown |
| White | Surname, First name | The side playing the white pieces |
| Black | Surname, First name | The side playing the black pieces |
| Result | 1-0 | The score as 1-0, 0-1 or a half point each, or an asterisk |
A FEN is a single line that describes one position. Six parts, split by spaces, make it up: the pieces on each rank, whose turn it is, castling rights, the en passant square, the count of moves since a capture or pawn move, and the move number. Below is the queen's pawn opening position after the moves d4 d5 c4 e6, written as one line that most boards accept.
How do you embed a board on a page?
- Copy the embed code. Look for a share or embed option next to the game or position. It usually gives a short piece of HTML called an iframe.
- Paste it where you want the board. Put the code in an HTML block or in the editor of your site.
- Set the size. An iframe has a width and a height. Choose a width that fits a phone screen, or let the page scale it.
- Set the options. Pick the pieces, the board colours, the orientation and the puzzle mode if you want the solution hidden.
- Test it. Open the page on a phone and a laptop, and check that the board loads and the moves play.
For a still diagram, open the same share option, choose the image tab and download the picture. To make a GIF, paste your PGN into a GIF maker, pick the playing speed and the orientation, create the file and save it. Then post it where you like.
What should you check before you publish?
- Credit. Name the players, the event and the person who annotated the game.
- Permission. Videos, annotations and photographs belong to someone. Embedding a video through its share option keeps the credit and the link intact.
- Privacy. If you share a child's games, think about what you show. Use a first name or initials and leave out any school or location unless the family agrees.
- Accessibility. Add a short text description to every diagram and GIF, so a reader using a screen reader knows what the picture shows.
- Speed. Each embed loads another page, so use only the ones that help the reader.
Frequently asked questions
PGN or FEN: which one do I need?
A PGN holds a whole game: the tags and every move. A FEN holds one position only. Use a PGN when you want readers to replay the game and a FEN when you want them to see or solve a single position.
How do I make a GIF of a game?
Paste the PGN into a GIF maker, choose the speed, the board orientation and the piece set, create the file, then download it. Keep the game short, because long ones make large files that load slowly.
Can I post my child's games online?
You can, but think about privacy first. Keep identifying details out of the post, check the rules of the event, and ask the family before you share names or photos.
Will an embedded board slow down my page?
It adds one more thing for the page to load. A few boards are fine, but a page with a dozen can feel heavy. Load only what the reader needs, and prefer a still diagram when an interactive board adds nothing.
Related pages
Want a coach to go through this with you? See chess coaching with International Master George Li or online chess lessons.
Learn to review and present your own games
A first lesson with George Li goes through your games, picks the instructive moments, and ends with a written plan sent by email.
Cancel or reschedule a lesson up to 24 hours ahead by replying to the email that set it up, and it stays on your package.