Documents · Updated · All file signatures

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 namePDF document
Hexadecimal magic bytes25 50 44 46 2D
ASCII / marker preview%PDF-
Byte offset0
MIME typeapplication/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.

Check a file’s real type ↗︎

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?

PlatformCompatible applications & tools
Mac (macOS)Preview, Safari, Adobe Acrobat Reader, PDF Expert
iPhone & iPadFiles Quick Look, Books, Safari
WindowsMicrosoft Edge, Chrome, Adobe Acrobat Reader, SumatraPDF

Free local tools & related guides

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.

Download on the App Store ↗︎