RagTime document file

application/octet-stream

Safe

Magic Bytes

Offset: 0
43 41 54 20

RagTime document (RTD) is a proprietary file format created by the German software developer RagTime.de GmbH for use with their integrated office and desktop publishing software. The format is primarily utilized for professional layout design, combining text processing, spreadsheets, and vector graphics into single, frame-based documents. As a legacy format associated with older business workflows, it is generally considered safe but requires specialized software for conversion or viewing in modern environments.

Extension

.rtd

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .rtd files in Python

Python
def is_rtd(file_path: str) -> bool:
    """Check if file is a valid RTD by magic bytes."""
    signature = bytes([0x43, 0x41, 0x54, 0x20])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .rtd files in Node.js

Node.js
function isRTD(buffer: Buffer): boolean {
  const signature = Buffer.from([0x43, 0x41, 0x54, 0x20]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsRTD(data []byte) bool {
    signature := []byte{0x43, 0x41, 0x54, 0x20}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

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

Related Formats