Study and Productivity

How to Read, Edit and Annotate Go Game Records in SGF Format

Open and edit SGF Go game records with variations, comments and marks, review games move by move, and practise tsumego problems in your browser.

Saizul Amin
Saizul Amin2 Nov 2026 · 4 min read
How to Read, Edit and Annotate Go Game Records in SGF Format

How to Read, Edit and Annotate Go Game Records in SGF Format

Almost every Go (baduk, weiqi) game record you download, from professional games to your own online games, comes as an SGF file. Learning to read, annotate and branch those records is one of the best ways to improve, because it turns a finished game into study material. This guide explains the SGF format and how to work with it in the free Go SGF viewer and editor.

What SGF is

SGF (Smart Game Format) is a plain-text format. The current version is FF[4]. A game is a tree of nodes, and each node holds properties written as a short code followed by values in brackets. Some common ones:

  • B[pd] and W[dp]: a Black or White move at a point given by two letters.
  • C[...]: a comment.
  • AB, AW, AE: add Black stones, add White stones, or clear points, used for setting up positions.
  • PB, PW, BR, WR, KM, HA, RE: player names, ranks, komi, handicap and result.

Variations are written as nested branches in parentheses. Because the format is text, you can also edit it by hand, and the tool includes a raw SGF editor for that.

Opening and playing through a game

Open an SGF file or start a new game on a 9x9, 13x13 or 19x19 board. Use the arrow keys to move forward and back; up and down switch between variations at a branching point. Where alternatives exist, the board shows variation letters on the points, so you can see the options at a glance.

When you place stones, captures are removed automatically and ko is checked, so you cannot make an illegal immediate recapture. Passes are supported. Playing a move different from the one already in the record creates a new variation instead of overwriting the game.

Annotating a game

Good reviews explain why a move was played or why it failed. The editor gives you several tools:

  • Comments on any move.
  • Marks: triangle, square, circle and cross, for pointing at stones or points.
  • Letter labels to name candidate moves A, B, C in a comment.
  • Move annotations such as tesuji, bad move, doubtful, or good for Black.
  • Move numbers and coordinates on the board when you want them.

You can also make any variation the main line or delete a branch. Game information (players, ranks, komi, handicap, result, date, event and rules) is edited in a separate form.

A simple review habit: after each game, find the two or three moments where the score swung, play the better move as a variation, and write one sentence about it. Save the file and you have a record of your own common mistakes.

Board themes and printing

Choose a theme that suits you: kaya wood, light, green felt, dark, or a clean print theme for paper diagrams. Everything runs in your browser, and your files stay on your device until you save them.

Problem (tsumego) mode

Tsumego are life-and-death problems. In SGF, a problem is a setup position with a tree of answers. The convention the tool follows is:

  • A correct line ends with a comment containing RIGHT or Correct.
  • A wrong line contains the word Wrong in a comment.

In problem mode you play only your own moves. The opponent's replies are played automatically from the tree. When you reach the end of a line, you are told whether it was right or wrong. If you are stuck, use show answer.

A worked example: killing a straight three

A sample problem shows a White group whose only eye space is three points in a row, a straight three. It is Black to play.

If White gets to play the middle point of the three, the space splits into two separate eyes and the group lives. If Black plays that middle point first, the vital point, White can no longer make two eyes: whatever White does, the remaining space forms only one eye, and the group dies.

In the problem file, Black's move on the middle point leads to a line that ends with "Correct". Black playing either end point leads to a line where White takes the middle point, and that line is marked "Wrong". Building your own small problems in this way, from positions in your games, is excellent practice.

Limits

The tool has no AI or engine analysis, so it does not suggest moves or estimate win rates. It does not offer online play against other people. Scoring is not automatic; count territory and captures yourself and enter the result in the game information.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages