PDF File Signature & Magic Bytes (.pdf)
Portable Document Format (PDF, ISO 32000) preserves fixed page layouts, vector graphics, embedded fonts and forms across platforms. Standard PDF files start at byte 0 with 25 50 44 46 2D (%PDF-) followed by the specification version such as 1.4, 1.7 or 2.0.
Signature & identification summary
| Detected format name | PDF document |
|---|---|
| Hexadecimal magic bytes | 25 50 44 46 2D |
| ASCII / marker preview | %PDF- |
| Byte offset | 0 |
| MIME type | application/pdf |
| Common extensions & aliases | .pdf |
Check whether your file really is PDF.
Drop any file into File Sniff’s free local browser checker to verify its 25 50 44 46 2D signature and spot misleading extensions—without uploading a single byte.
Container & byte-layout notes
A PDF consists of a header (%PDF-x.y), numbered indirect objects (streams, pages, /Font descriptors, /Info metadata dictionary and optional XMP metadata stream), a cross-reference table or stream (xref) near the end of the file, and an %%EOF marker. Incremental saves append new xref sections to the tail.
Extension mismatches & common pitfalls
Banking and government portals often deliver real PDFs named document.dat or download without an extension. Conversely, phishing emails regularly disguise Windows .exe or .lnk files with a fake PDF icon.
Which apps open PDF files?
| Platform | Compatible applications & tools |
|---|---|
| Mac (macOS) | Preview, Safari, Adobe Acrobat Reader, PDF Expert |
| iPhone & iPad | Files Quick Look, Books, Safari |
| Windows | Microsoft Edge, Chrome, Adobe Acrobat Reader, SumatraPDF |
Free local tools & related guides
- Check whether a file really is PDF
- Inspect encryption & unlock PDF
- Inspect document metadata & AI clues
- Inspect raw bytes in the Hex Viewer
- Guide: What does a file extension mismatch mean?
- Guide: What Is a .dat File and How to Open It
- Guide: How to Change a File Extension Safely
Inspect files & folders natively
on Mac, iPhone & iPad.
The native File Sniff app scans entire folders, spots extension mismatches, repairs extensions with Undo on Mac, and exports CSV or JSON reports locally.