TSD (.tsd)
.tsd file signature | application/timestamped-data
Magic Bytes
Offset 0
30 80 06 0B 2A 86 48 86 F7
Sources: Apache Tika
Extension
.tsd
MIME Type
application/timestamped-data
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .tsd files in Python
def is_tsd(file_path: str) -> bool:
"""Check if file is a valid TSD by magic bytes."""
signature = bytes([0x30, 0x80, 0x06, 0x0B, 0x2A, 0x86, 0x48, 0x86, 0xF7])
with open(file_path, "rb") as f:
return f.read(9) == signature
How to validate .tsd files in Node.js
function isTSD(buffer: Buffer): boolean {
const signature = Buffer.from([0x30, 0x80, 0x06, 0x0B, 0x2A, 0x86, 0x48, 0x86, 0xF7]);
return buffer.subarray(0, 9).equals(signature);
}
How to validate .tsd files in Go
func IsTSD(data []byte) bool {
signature := []byte{0x30, 0x80, 0x06, 0x0B, 0x2A, 0x86, 0x48, 0x86, 0xF7}
if len(data) < 9 {
return false
}
return bytes.Equal(data[:9], signature)
}
API Endpoint
/api/v1/tsd
curl https://filesignature.org/api/v1/tsd
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .tsd file?
A .tsd file is a TSD file.
What are the magic bytes for .tsd files?
The magic bytes for TSD files are 30 80 06 0B 2A 86 48 86 F7 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .tsd file?
To validate a .tsd file, read the first bytes of the file and compare them against the known magic bytes (30 80 06 0B 2A 86 48 86 F7) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .tsd files?
The primary MIME type for .tsd files is application/timestamped-data.
Is it safe to open .tsd files?
TSD (.tsd) files are generally safe to open. They are classified as low risk because they primarily contain data rather than executable code. However, always ensure files come from a trusted source.