PGN import format

Also known as: import PGN

The flexible PGN profile that lets a reader accept and normalize hand-prepared games or formatting variations.

Explanation

PGN means Portable Game Notation, a text format for recording games. The PGN import format describes text that a reading program should be able to receive. It is designed for hand-prepared data and output from programs with different styles, so it tolerates more variation than the . Both represent the same game; the difference is how strictly the text must be laid out.

Import text can use flexible spaces and line breaks. Several may share a line, and one pair may even span lines. Tag order is not important for reading. Move numbers may be omitted or use less rigid punctuation, provided their meaning remains consistent.

The specification also allows a reader to be forgiving about some noncanonical SAN forms, where SAN means Standard Algebraic Notation for moves. The exact tolerance depends on the application. This does not make arbitrary text valid PGN: moves must still be interpretable, cannot be illegal in the game, and the result must remain understandable.

An importer normally reads the input and converts it into an internal representation. If it later writes the game again, it should produce canonical export form rather than preserve every spacing irregularity.

Common confusions

Tolerance versus no rules

The profile accepts layout variations, but it still requires recognizable notation elements, interpretable moves, and a valid game structure.

Import as a different kind of PGN

It is not a different data model. It is a more flexible way to write the same elements used by canonical export.

View term

Related terms

© 2026 MindZug