.PGN

PGN File

Portable Game Notation (chess)
Ask a question
QUICK ANSWER

A PGN file is a Portable Game Notation file - a plain-text record of one or more chess games, with headers (event, players, result) and the moves in algebraic notation. Open it in Lichess, Chess.com, SCID vs. PC, or any text editor. The format is an open standard with no executable content, so the files are safe to open.

Developer: Steven J. Edwards (community specification) Category: Game Files Open standard MIME: application/x-chess-pgn
OPENS ON Windows macOS Linux Android iOS Web
Related: .OBB · .PAK · .ROFL · .PACKAGE

On this page

19k+ extensions indexed
Last reviewed Aug 25, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the PGN file format?

.pgn (Portable Game Notation) is the most popular chess game data standard. .pgn files store chess match moves along with match date, location, event name, round, result of the game, and player names.

Data structure of a .pgn file

Header data in a .pgn file is formatted using bracketed tag pairs. The mandatory set - the Seven Tag Roster - covers [Event], [Site], [Date], [Round], [White], [Black], and [Result]. Player movements follow in a *movetext* section using Standard Algebraic Notation (SAN), with comments in { } braces and annotations such as ! or ?. There is no binary signature; .pgn files are identified by the opening [Event " tag.

Data saved in text format

.pgn files store information in plain text format (ASCII), and can thus be easily read by humans and programs alike. Multiple games may be concatenated into a single .pgn file, which is common for opening books and tournament databases. Related position formats include .FEN for individual board positions and .EPD for extended position descriptions.

Commonly used standard

.pgn format is commonly used for storing and sharing (including online) chess match data via platforms such as Lichess and Chess.com. .pgn files can be used for post-match and player progress analysis, engine training, and archiving tournament records.

Security & safety

RISK: LOW

PGN is plain text with no executable content, so the files are inherently safe to open. The only caveats: a malformed/huge PGN could stress a poorly written parser, and as always download chess software from official sites rather than ad-laden "PGN viewer" portals. There is no macro or script capability in the format.

Format details

in a nutshell
FULL NAMEPortable Game Notation (chess)
DEVELOPERSteven J. Edwards (community specification)since 1994 (PGN specification)
CATEGORYGame Files
MIME TYPEapplication/x-chess-pgn
TYPEPlain-text chess game record (tags + movetext)
STANDARDOpen · royalty-free

Programs that open PGN files

Windows4 apps
ChessBase Paid Import the PGN into a database for professional analysis and study.
WinBoard Open-source Load the PGN to step through games on a board (Windows port of XBoard).
SCID vs. PC Open-source File → Open the .pgn to browse, replay and analyze games with a built-in engine.
Lucas Chess Open-source Open the .pgn to replay, train and analyze with bundled engines.
macOS2 apps
Apple Chess Built-in Game → Open the .pgn to load and replay it on the built-in macOS board.
SCID vs. PC Open-source Open the PGN for full database browsing and engine analysis.
Linux2 apps
XBoard Open-source xboard -lpf game.pgn to load and step through the games.
SCID vs. PC Open-source Open the PGN for browsing, searching and analysis.
Android1 app
lichess (mobile) Open-source Import PGN text to replay and analyze for free.
iOS1 app
lichess (mobile) Open-source Paste/import the PGN to replay and analyze.
Web2 apps
Lichess Analysis Board Free Paste the PGN text (or upload) to replay, get free engine analysis and share.
Chess.com Analysis Freemium Import the PGN to replay and analyze in the browser.

Technical details

deep spec
MIME typeapplication/x-chess-pgn
File encoding7-bit ASCII plain text
File signatureNo binary magic bytes; identified in practice by opening [Event "..."] bracket tag
File structureTwo-section layout: bracketed tag pairs (header) followed by movetext (game moves)
Mandatory header tagsSeven Tag Roster - [Event], [Site], [Date], [Round], [White], [Black], [Result]
Move notationStandard Algebraic Notation (SAN)
Annotation glyphsNumeric Annotation Glyphs (NAGs) $1-$255; common shorthand: !, ?, !!, ??, !?, ?!
Comment syntaxBlock comments in { } braces; line comments after ; (to end of line)
Variation supportRecursive Analysis Variations (RAVs) encoded in nested parentheses
Multi-game supportMultiple complete games can be concatenated in a single .pgn file
Result valuesFixed vocabulary: 1-0 (White wins), 0-1 (Black wins), 1/2-1/2 (draw), * (unknown/ongoing)
Line lengthSpec recommends ≤ 80 characters per line; LF or CRLF line endings accepted
DeveloperSteven J. Edwards (community-developed specification)
Released1994 (PGN specification)
Open standardYes · royalty-free
Specificationwww.thechessdrum.net

PGN conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with PGN files. Be specific - include your system and software version.
No account needed · answers usually within a day
V
Vanessa castellanosAug 2026UNANSWERED
blob:https://www.file-extension.info/db899132-9ed0-4576-9253-175c1a348a80
Waiting for an answer

Frequently asked questions

What is a PGN file in chess?
It's a Portable Game Notation file: a plain-text record of chess game(s) with headers (event, players, result) and the moves in algebraic notation, readable by any chess program.
How do I open a PGN file?
Paste or upload it to Lichess or Chess.com to replay and analyze for free, or use a desktop app like SCID vs. PC, Lucas Chess, XBoard/WinBoard or ChessBase. Any text editor shows the raw moves.
How do I analyze a PGN with an engine?
Import it into Lichess's analysis board (free Stockfish) or a GUI like SCID vs. PC / Lucas Chess, which run an engine over every move.
Can I open a PGN in Notepad?
Yes - it's plain text, so Notepad shows the headers and moves. You just won't see them played out on a board; for that use a chess app.
How do I get a FEN from a PGN?
Open the game in any chess GUI, navigate to the position you want, and copy the FEN for that move. FEN is a single position; PGN is the whole game.
Why does the database call .pgn a 'Picatinny Arsenal' file?
That label is incorrect for the common meaning. The overwhelmingly dominant .pgn format is chess Portable Game Notation; this page describes that.

References

1PGN Standard - full specification (Steven J. Edwards, 1994)www.thechessdrum.net
2Lichess - paste / import PGNlichess.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.EXEWindows Executable (Portable Executable)
5.M4AMPEG-4 Audio File
6.DATProgram Data File (generic)
7.MDMarkdown Document
8.JSONJavaScript Object Notation file
9.NOMEDIAAndroid No-Media Marker File
10.JPGJPEG Image

Related extensions

.OBBAndroid Opaque Binary Blob (APK Expansion File)
.PAKGame Resource Package (PAK)
.ROFLLeague of Legends Replay
.PACKAGEThe Sims / Maxis DBPF Package (game content & mods) - dominant meaning
.XSBXACT Sound Bank
.SAVSaved Game File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z