encyclopegia.org

Portable Game Notation

Portable Game Notation (PGN) is a standard plain text format for recording chess games (both the moves and related data), which can be read by humans and is also supported by most chess software.[1]

Portable Game Notation (PGN) is a standard plain text format for recording chess games (both the moves and related data), which can be read by humans and is also supported by most chess software.[1] ==History== In 1993, Steven J.[src] Edwards devised PGN, which was first popularized and specified via the Usenet newsgroup rec.games.chess.[4] ==Usage== PGN is structured "for easy reading and writing by human users and for easy parsing and generation by computer programs".[src] The chess moves themselves are given in algebraic chess notation using English initials for the pieces.[src] The filename extension is .pgn .[src] The PGN specification describes two related but distinct formats: the "import" format; and the "export" format.[4] The PGN import format describes data that might have been prepared by hand, and features a flexible syntax.[src] Although the format is therefore somewhat lax by design, a program that purports to be able to read PGN data must be able to handle the format variations.[src] The PGN export format, by contrast, is quite strict, designed to describe data prepared under program control, similar to a pretty printed source program reformatted by a compiler.[src] The export format representations generated by different programs, including on different computers, are expected to be exactly equivalent, byte for byte.[src] PGN text begins with a set of "tag pairs" (a tag name and its value), followed by the "movetext" (chess moves with optional commentary).[src] SAN kingside castling is indicated by the sequence O-O ; queenside castling is indicated by the sequence O-O-O (note that these are capital Os, not zeroes, contrary to the FIDE standard for notation).[1] Pawn promotions are notated by appending = to the destination square, followed by the piece the pawn is promoted to.[src] For example: g8=Q .[src] If the move is a checking move, + is also appended; if the move is a checkmating move, # is appended instead.[src] For example: Rc6+ .[src] An annotator who wishes to suggest alternative moves to those actually played in the game may insert variations enclosed in parentheses.[src] They may also comment on the game by inserting Numeric Annotation Glyphs (NAGs) into the movetext.[src] Each NAG reflects a subjective impression of the move preceding the NAG or of the resultant position.[src] If the game result is anything other than * , the result is repeated at the end of the movetext.[src] ==Numeric Annotation Glyphs (NAGs)== Numeric Annotation Glyphs or NAGs are used to annotate chess games when using a computer, typically providing an assessment of a chess move or a chess position.[src] NAGs exist to indicate a simple annotation in a language independent manner.[src] NAGs were first formally documented in 1994 by Steven J.[4] Edwards in his "Portable Game Notation Specification and Implementation Guide".[1] Within the PGN specification, 256 NAGs are proposed, of which the first 140 values have been defined; the remaining 116 values are reserved for future definition.[4] A Numeric Annotation Glyph is composed of a dollar sign character ("$") immediately followed by one or more digit characters.[src] Each NAG then has a specific meaning and often a standard typographical representation.[src] The meanings first defined stemmed from the use of specific typographic symbols when annotators were commenting upon chess games; most especially in Chess Informant publications.[5] The objective was to devise an alternative representation of these symbols which could be incorporated in the simple computer file format proposed as the PGN standard.[4] This mechanism allowed often sophisticated typography to be expressed using the simple ASCII character set.[src] Since its inception there has been no attempt to further formalise or standardise the meaning of the undefined 116 NAGs, although some PGN editors, such as ChessPad, have variously used these higher glyphs by assigning non-standard custom definitions.[4] ==Bibliography==[src]

34 sentences · 34 cited inline · 9 references stored

References

  1. Standard: Portable Game Notation Specification and Implementation Guide . · retrieved 2026-09-26 · rev 1377132730
    Cite this reference

    MLA "Standard: Portable Game Notation Specification and Implementation Guide ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730. Accessed 29 November 2026.

    Chicago "Standard: Portable Game Notation Specification and Implementation Guide ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730.

    APA encyclopegia.org. (2026). Standard: Portable Game Notation Specification and Implementation Guide . Retrieved November 29, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377132730

  2. Weeks, Mark. The Rise of Internet Chess . Chess for All Ages [Mark Weeks blog] . 2017. · retrieved 2026-09-26 · rev 1377132730
    Cite this reference

    MLA "Weeks, Mark. The Rise of Internet Chess . Chess for All Ages [Mark Weeks blog] . 2017." Weeks, Mark. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730. Accessed 29 November 2026.

    Chicago "Weeks, Mark. The Rise of Internet Chess . Chess for All Ages [Mark Weeks blog] . 2017." Weeks, Mark. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730.

    APA Weeks, Mark. (2026). Weeks, Mark. The Rise of Internet Chess . Chess for All Ages [Mark Weeks blog] . 2017. Retrieved November 29, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377132730

  3. For example, the PGN generated by lichess for the online match between grandmasters [https://lichess.org/GmglqIQz Pavel Smirnov and Andrew Tang (2020)] lists a URL in the site field . · retrieved 2026-09-26 · rev 1377132730
    Cite this reference

    MLA "For example, the PGN generated by lichess for the online match between grandmasters [https://lichess.org/GmglqIQz Pavel Smirnov and Andrew Tang (2020)] lists a URL in the site field ." For example, the PGN generated by lichess for the online match between grandmasters [https://lichess. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730. Accessed 29 November 2026.

    Chicago "For example, the PGN generated by lichess for the online match between grandmasters [https://lichess.org/GmglqIQz Pavel Smirnov and Andrew Tang (2020)] lists a URL in the site field ." For example, the PGN generated by lichess for the online match between grandmasters [https://lichess. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730.

    APA For example, the PGN generated by lichess for the online match between grandmasters [https://lichess. (2026). For example, the PGN generated by lichess for the online match between grandmasters [https://lichess.org/GmglqIQz Pavel Smirnov and Andrew Tang (2020)] lists a URL in the site field . Retrieved November 29, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377132730

  4. Formal PGN File Specification:section 8.2.4 defines 256 NAGs while section 10 identifies first 140 NAGs . retrieved 1 · retrieved 2026-09-26 · rev 1377132730
    Cite this reference

    MLA "Formal PGN File Specification:section 8.2.4 defines 256 NAGs while section 10 identifies first 140 NAGs . retrieved 1." Formal PGN File Specification:section 8. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730. Accessed 29 November 2026.

    Chicago "Formal PGN File Specification:section 8.2.4 defines 256 NAGs while section 10 identifies first 140 NAGs . retrieved 1." Formal PGN File Specification:section 8. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730.

    APA Formal PGN File Specification:section 8. (2026). Formal PGN File Specification:section 8.2.4 defines 256 NAGs while section 10 identifies first 140 NAGs . retrieved 1. Retrieved November 29, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377132730

  5. Chess Informant: System of Signs . · retrieved 2026-09-26 · rev 1377132730
    Cite this reference

    MLA "Chess Informant: System of Signs ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730. Accessed 29 November 2026.

    Chicago "Chess Informant: System of Signs ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730.

    APA encyclopegia.org. (2026). Chess Informant: System of Signs . Retrieved November 29, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377132730

  6. Wood, Alan. Unicode and multilingual support in HTML, fonts, Web browsers and other applications . www.alanwood.net . · retrieved 2026-09-26 · rev 1377132730
    Cite this reference

    MLA "Wood, Alan. Unicode and multilingual support in HTML, fonts, Web browsers and other applications . www.alanwood.net ." Wood, Alan. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730. Accessed 29 November 2026.

    Chicago "Wood, Alan. Unicode and multilingual support in HTML, fonts, Web browsers and other applications . www.alanwood.net ." Wood, Alan. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730.

    APA Wood, Alan. (2026). Wood, Alan. Unicode and multilingual support in HTML, fonts, Web browsers and other applications . www.alanwood.net . Retrieved November 29, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377132730

  7. Character Entity Reference Chart . HTML5 (W3C) . · retrieved 2026-09-26 · rev 1377132730
    Cite this reference

    MLA "Character Entity Reference Chart . HTML5 (W3C) ." Character Entity Reference Chart. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730. Accessed 29 November 2026.

    Chicago "Character Entity Reference Chart . HTML5 (W3C) ." Character Entity Reference Chart. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730.

    APA Character Entity Reference Chart. (2026). Character Entity Reference Chart . HTML5 (W3C) . Retrieved November 29, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377132730

  8. Character Code Charts . · retrieved 2026-09-26 · rev 1377132730
    Cite this reference

    MLA "Character Code Charts ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730. Accessed 29 November 2026.

    Chicago "Character Code Charts ." 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730.

    APA encyclopegia.org. (2026). Character Code Charts . Retrieved November 29, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377132730

  9. ChessPad: a PGN editor . www.wmlsoftware.com . · retrieved 2026-09-26 · rev 1377132730
    Cite this reference

    MLA "ChessPad: a PGN editor . www.wmlsoftware.com ." ChessPad: a PGN editor. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730. Accessed 29 November 2026.

    Chicago "ChessPad: a PGN editor . www.wmlsoftware.com ." ChessPad: a PGN editor. 2026-09-26. https://en.wikipedia.org/w/index.php?oldid=1377132730.

    APA ChessPad: a PGN editor. (2026). ChessPad: a PGN editor . www.wmlsoftware.com . Retrieved November 29, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377132730

Cite this article

MLA

"Portable Game Notation." encyclopegia.org, 2026, https://encyclopegia.org/wiki/portable-game-notation. Accessed 29 November 2026.

Chicago

"Portable Game Notation." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/portable-game-notation.

APA

encyclopegia.org. (2026). Portable Game Notation. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/portable-game-notation

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1377132730 · 0.5 · snapshot enwiki-001377132730

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.