Firebird and Interbase database files

application/octet-stream

Safe

Magic Bytes

Offset: 0
01 01 47 19 A4 00 00 00 00 00 00 00

The Firebird Database (FDB) format is a relational database container maintained by the Firebird Project, originally derived from Borland InterBase source code. These files store tables, indexes, and stored procedures for various desktop and client-server applications requiring an open-source SQL management system. While the format is considered safe, accessing the internal binary data requires the specific Firebird or InterBase database engine to ensure data integrity and prevent corruption.

Extension

.fdb

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .fdb files in Python

Python
def is_fdb(file_path: str) -> bool:
    """Check if file is a valid FDB by magic bytes."""
    signature = bytes([0x01, 0x01, 0x47, 0x19, 0xA4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00])
    with open(file_path, "rb") as f:
        return f.read(12) == signature

How to validate .fdb files in Node.js

Node.js
function isFDB(buffer: Buffer): boolean {
  const signature = Buffer.from([0x01, 0x01, 0x47, 0x19, 0xA4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]);
  return buffer.subarray(0, 12).equals(signature);
}
Go
func IsFDB(data []byte) bool {
    signature := []byte{0x01, 0x01, 0x47, 0x19, 0xA4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
    if len(data) < 12 {
        return false
    }
    return bytes.Equal(data[:12], signature)
}

API Endpoint

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

Related Formats