TMX

application/x-tmx

Safe

Magic Bytes

Offset: 0
3C 74 6D 78

Translation Memory eXchange (TMX) is an XML-based open standard created by the OSCAR group and currently maintained by GALA for the vendor-neutral exchange of translation memory data. It enables localization professionals to transfer bilingual or multilingual content between various computer-aided translation tools without losing structural or linguistic metadata. The format is generally considered secure, though software parsers must guard against standard XML-related vulnerabilities such as external entity injection when processing files from untrusted sources.

Extension

.tmx

MIME Type

application/x-tmx

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .tmx files in Python

Python
def is_tmx(file_path: str) -> bool:
    """Check if file is a valid TMX by magic bytes."""
    signature = bytes([0x3C, 0x74, 0x6D, 0x78])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .tmx files in Node.js

Node.js
function isTMX(buffer: Buffer): boolean {
  const signature = Buffer.from([0x3C, 0x74, 0x6D, 0x78]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsTMX(data []byte) bool {
    signature := []byte{0x3C, 0x74, 0x6D, 0x78}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

GET /api/v1/tmx
curl https://filesignature.org/api/v1/tmx

Related Formats