PGN to TXT Converter

Convert chess game files (PGN) to TXT online for free

Secure Private 2,000+ daily conversions Free

Drop or upload your .PGN file

How to convert your PGN file to TXT

  1. Click the "Select File" button above, and choose your PGN file.
  2. You'll see a preview.
  3. Click the "Convert file to..." button and download the TXT file.

High Quality Conversion

Our advanced conversion technology delivers accurate PGN conversions while preserving quality and integrity of your chess games.

Secure and Private

Your data is protected by strict privacy policies and access controls. Uploaded PGN chess games and converted TXTs are deleted immediately after conversion.

Easy to Use

Upload your PGN file to preview it in your browser and download it as a TXT. No registration, watermarks, or software installation required.

PGN to TXT Conversion Explained

.PGN (Portable Game Notation) is already a plain text format used to record chess games. Converting .PGN to .TXT usually means one of two things: changing the file extension so the file opens in a standard text editor instead of chess software, or stripping the chess-specific metadata to extract only the raw move text.

When you convert .PGN to .TXT, you gain universal readability. Any device can open a .TXT file without specialized chess software. However, you lose automatic file association. Chess engines and databases will no longer recognize the file automatically. If your conversion process strips the metadata tags, you also permanently lose the historical context of the game, such as player names, tournament details, and Elo ratings. This conversion is a bad idea if you plan to import the games back into a chess database, as chess software requires the .PGN extension and strict syntax.

Typical Tasks and Users

  • Chess Authors and Bloggers: Extracting clean move lists to paste into articles, books, or publishing software without carrying over unwanted metadata.
  • Data Scientists and Programmers: Feeding raw chess moves into Natural Language Processing (NLP) models or Python scripts that expect standard .TXT input.
  • Casual Players: Sharing a game via email, corporate networks, or messaging apps that block or fail to recognize .PGN attachments.
  • Archivists: Standardizing old chess records into a universally readable text format for long-term storage outside of proprietary chess ecosystems.

Software & Tool Support

Because both formats are text-based, you can open and edit them using standard text editors or specialized chess software.

  • Text Editors: Notepad++, Sublime Text, or standard Microsoft Notepad can open both formats natively.
  • Chess GUIs: Programs like ChessBase (paid) and Scid (free) read .PGN files and allow you to export game data.
  • Programming Libraries: The python-chess library is an excellent tool for parsing .PGN files and outputting specific data strings to .TXT.
  • Command-Line Tools: On Linux or macOS, a simple cat game.pgn > game.txt command changes the extension, while grep or awk can be used to filter out metadata tags.

Pros and Cons of the Conversion

  • Universal Compatibility (Pro): .TXT opens natively on every operating system without requiring third-party chess software.
  • Bypasses Restrictions (Pro): Many firewalls, forum uploaders, and email clients block unknown file extensions like .PGN. Converting to .TXT ensures successful delivery.
  • Loss of Association (Con): Double-clicking a .TXT file will open a text editor, not your chess board software. You must manually import the file into your chess GUI.
  • Metadata Loss (Con): If the conversion extracts only the moves, you lose the Seven Tag Roster (Event, Site, Date, Round, White, Black, Result).
  • Syntax Risks (Con): Editing the resulting .TXT file manually might break the strict Standard Algebraic Notation (SAN) required for chess engines to read the file later.

Conversion Difficulties & Why Convert.Guru

The main technical problem in this conversion is handling the strict syntax of a chess game. A simple file rename keeps the data intact but does not format it. A true conversion requires parsing the Standard Algebraic Notation, handling nested variations (comments and sub-lines enclosed in parentheses or brackets), and cleanly separating the metadata tags from the move text. Poorly written scripts often merge moves incorrectly, break line endings, or leave broken bracket syntax behind.

Convert.Guru handles this conversion accurately. It processes the .PGN syntax safely, extracts the move text or metadata exactly as you need it, and outputs a clean .TXT file without corrupting the algebraic notation. It requires no command-line knowledge or custom Python scripts, ensuring your text is formatted correctly on the first try.

PGN vs. TXT: What is the better choice?

Feature .PGN .TXT
Primary Use Chess databases and engines General text reading and sharing
Software Association Chess GUIs (ChessBase, Scid) Text Editors (Notepad, Vim)
Metadata Structure Strict (Seven Tag Roster) None (Unstructured)

Which format should you choose?

Choose .PGN if you are building a chess database, analyzing games with an engine like Stockfish, or sharing games with other chess players. It is the global standard for digital chess.

Choose .TXT if you need to paste moves into a document, feed raw text into a machine learning model, or bypass file upload restrictions on a website or email client.

Avoid this conversion entirely if you simply want to watch the game play out on a screen. Instead, use a free .PGN viewer or upload the file directly to a platform like Lichess or Chess.com.

Conclusion

Converting .PGN to .TXT makes sense for text extraction, data analysis, and bypassing strict file upload restrictions. The biggest limitation to watch for is breaking the automatic file association with your chess software and potentially losing structured metadata if the tags are stripped. Convert.Guru is a reliable choice for this exact conversion because it safely handles the strict syntax of chess notation, ensuring your output text is clean, readable, and ready for your specific workflow.


FAQ

Convert.Guru also easily converts PGN chess games (Chess Match Data) to various formats - free and online. No Steam or extra software needed.

Convert the PGN locally and export to TXT using Steam software or a reliable desktop converter — no internet needed. The easiest way is to open the PGN file in the software on your computer and then save it as a TXT file in the File menu under Save as...



About the PGN to TXT Converter

Convert.Guru makes it fast and easy to convert chess game files to TXT online. The PGN to TXT converter runs entirely in your browser, so there’s no software to install and no account required. Powered by one of the industry’s largest and most trusted file format databases—maintained for more than 25 years—our technology reliably identifies PGN chess games even when they are damaged or incorrectly named. Uploaded files are automatically deleted after conversion to protect your privacy.