Skip to content

File Formats — .tg and Guitar Pro

Outcome: you know which file types TuxGuitar 1.5.6 really opens and saves — from its own help file and the lab's dissections, not from folklore — and what is inside the two formats that matter most.

A tab file is a saved song: tracks, notes, frets, tempo, the lot. The formats differ in who invented them and who else can read them, and the differences decide whether a file from the internet opens for you at all.

The native format: .tg

TuxGuitar's own format is .tg. The lab dissected its four-bar file (tuxguitar-lab/transcripts/t05-tg-dissection.txt) and found a compact binary — 468 bytes for 28 notes — that begins by introducing itself: a length marker, then the words "TuxGuitar File Format - 1.5" stored as wide (UTF-16) characters. Further in sit the track names, the instruments, the tempo (120), and the tuning stored as the six MIDI note numbers of standard tuning — 64, 59, 55, 50, 45, 40, the pitches of E, B, G, D, A, E from the thinnest string down. It is a private format, but not a mysterious one, and only TuxGuitar reads it: sending a .tg file to someone without TuxGuitar sends them a paperweight.

Remember chapter 2's warning here: TuxGuitar 2.x writes a new .tg format that 1.x cannot read. The 1.5.x program can also save down — its export menu offers TuxGuitar 1.3, 1.2, 1.1 and 1.0 formats for exchanging with older installs.

The Guitar Pro family

Guitar Pro is the long-running commercial tab editor, and its file formats became the tab world's lingua franca — most tabs on the internet are Guitar Pro files. Each version of Guitar Pro brought a format:

Extension From TuxGuitar 1.5.6
.gtp Guitar Pro 1/2 opens
.gp3 Guitar Pro 3 opens and saves
.gp4 Guitar Pro 4 opens and saves
.gp5 Guitar Pro 5 opens and saves
.gpx Guitar Pro 6 opens (imports) — no save
.gp Guitar Pro 7/8 does not open

That table is the lab's reading of the help file bundled with the program itself (tuxguitar-lab/transcripts/t03-help-file-formats.txt), cross-checked against the installed program: the .gpx reader is a plug-in inside the build, and the save side of the File menu offers GP3, GP4 and GP5 only. The last row is the one that bites in practice: a modern .gp file from a current Guitar Pro will not open in 1.5.6, full stop. Ask whoever sent it for a .gp5 export — Guitar Pro itself can save down.

The lab proved the GP5 row both ways. Save As first-riff.gp5 produced a 2,083-byte file whose first bytes spell out its pedigree — a length byte, then FICHIER GUITAR PRO v5.00 ("fichier" is French for file; Guitar Pro's authors, Arobas Music, are French). Later, File > Open on that same .gp5 read the song back intact — both tracks, every fret as written (transcript t11, screenshot gp5-imported.png). Round trip closed.

The rest of the drawer

  • .ptb — Power Tab Editor files, an older free Windows editor. Opens; does not save.
  • .tef — TablEdit files. Opens; does not save.
  • .mid — ordinary MIDI files import as a song (TuxGuitar works out frets for the notes; expect playable-but-odd fingering) and export is a headline feature of chapter 8.
  • MusicXML — the interchange format of notation software; exports from TuxGuitar and imports on the way in (chapter 8 verifies the export by hand).

Choosing a format to save in is therefore simple. Working alone in TuxGuitar: .tg. Sharing with the widest world: .gp5. Sharing with notation software: MusicXML. And the choice is made by the file name's ending — save a song as song.gp5 and a genuine Guitar Pro 5 file is what lands on disk; the lab watched exactly that happen when a save named .gp5 wrote the FICHIER GUITAR PRO header above.