OTT

application/vnd.oasis.opendocument.text-template

Safe

Magic Bytes

Offset: 0
50 4B

The OpenDocument Text Template (OTT) is an XML-based file format maintained by the OASIS consortium as part of the Open Document Format for Office Applications standard. It serves as a blueprint for generating word processing documents within open-source office suites such as LibreOffice, Apache OpenOffice, and Collabora Online. While the format itself is a compressed container for structured data, users should remain aware that templates can contain embedded macros or scripts that may present potential security risks.

Extension

.ott

MIME Type

application/vnd.oasis.opendocument.text-template

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .ott files in Python

Python
def is_ott(file_path: str) -> bool:
    """Check if file is a valid OTT by magic bytes."""
    signature = bytes([0x50, 0x4B])
    with open(file_path, "rb") as f:
        return f.read(2) == signature

How to validate .ott files in Node.js

Node.js
function isOTT(buffer: Buffer): boolean {
  const signature = Buffer.from([0x50, 0x4B]);
  return buffer.subarray(0, 2).equals(signature);
}
Go
func IsOTT(data []byte) bool {
    signature := []byte{0x50, 0x4B}
    if len(data) < 2 {
        return false
    }
    return bytes.Equal(data[:2], signature)
}

API Endpoint

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

Related Formats