The Open File Signature Database

Identify and validate files by their magic bytes. Programmatic access via our free API, or browse the documentation below.

ENDPOINT DEFINITION GET
https://filesignature.org/api/v1/{ext}
EXAMPLE USAGE
curl https://filesignature.org/api/v1/pdf

Popular Formats

View all →

Looking for something else?

We maintain a database of 905+ file signatures.

API Reference

GET /api/v1/{ext}

Returns the file signature data for a given extension.

{
  "success": true,
  "data": {
    "ext": "pdf",
    "name": "Portable Document Format",
    "mime": "application/pdf",
    "hex": "25 50 44 46",
    "offset": 0,
    "usage": { ... }
  }
}