Skip to content

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?

Ways to share chess content and when each one fits
FormatBest forWhat you needWatch out for
Interactive board embedArticles where readers follow the movesA game or PGN and the embed codePage speed, and a width that fits phones
Still diagram imageOne key position in a post or newsletterThe position, then an image downloadAdd a caption and alt text
Animated GIFSocial posts and chats, where a game replays on a loopA PGN or a game linkFile size and speed of play
Video or live stream embedEvents, lessons and commentaryThe share option of the video hostSome recordings expire
Event page embedTournament coverage with games and resultsThe page code, often an iframeChoose 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.

The seven standard PGN tags
TagExampleNotes
EventClub ChampionshipName of the tournament or match
SiteChicagoPlace or website
Date2024.05.18Year, month, day, with question marks for unknown parts
Round3A question mark if unknown
WhiteSurname, First nameThe side playing the white pieces
BlackSurname, First nameThe side playing the black pieces
Result1-0The 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.

A whole position carried by one line of text, White to move

How do you embed a board on a page?

  1. 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.
  2. Paste it where you want the board. Put the code in an HTML block or in the editor of your site.
  3. 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.
  4. Set the options. Pick the pieces, the board colours, the orientation and the puzzle mode if you want the solution hidden.
  5. 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.

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.