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 →
.pdf
Safe
Adobe Portable Document Format
25 50 44 46 2D
.jpg
Safe
JPEG Image
FF D8 FF
.png
Safe
Portable Network Graphics
89 50 4E 47
.exe
High Risk
Windows Executable
4D 5A
.zip
Medium
ZIP Archive
50 4B 03 04
.docx
Safe
Microsoft Word Document
50 4B 03 04
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": { ... }
}
}