TBL Format

TBL files are lists of strings, and the games use an index to look up the corresponding string. TBL files contain unit names and stats, dialog and game texts, file paths to resources such as graphics or sounds, etc. TBL files are used in StarCraft and WarCraft II.

For a converter between TBL files and TXT files, see IronTBL.

String count

Offset0x0000
Length2 bytes
DescriptionNumber of strings in file.
ValuesInteger value between 0 and 65535.

Offsets

Offset0x0002
Length2 bytes * string count
DescriptionOffset in the file to the corresponding string.
ValuesInteger value between 0 and 65535.

Strings

OffsetVariable
LengthOffset for next string - offset for current string.
DescriptionThe string data. The string n is between the offset for string n and the offset for string n + 1 . The last string is between its offset and the end of the file.
ValuesAny string data and control characters, including multiple NULL characters.