File types / Documents

.pdf file

Portable Document Format

Extensions
.pdf
MIME type
application/pdf
Signature
25 50 44 46 2D  (%PDF-)at byte offset 0
Safety
Open with care

What is a .pdf file?

PDF is built to look the same everywhere: the layout, fonts and images are fixed in the file. It is the default format for contracts, forms, manuals and e-books.

Every PDF begins with the text %PDF- followed by a version number such as 1.7. A file that does not start this way is not a standard PDF, whatever its name says.

Used for: Documents that must look identical on every device.

How can I tell if a file is really a PDF?

Read its first bytes rather than trusting the name. A genuine PDF file has the signature 25 50 44 46 2D (%PDF-) at byte offset 0. The File Identity tool reads these bytes in your browser, so the file is never uploaded.

To compare the name against the content, use Validate Extension. To see the raw bytes, use Safe File Preview.

Is a .pdf file safe to open?

PDFs can contain JavaScript, embedded files and links, and PDF viewers have had many vulnerabilities. Open PDFs from unknown senders with caution, in an up-to-date viewer.

Easy to confuse

A PDF can be a scan (just images) or text-based. Some "PDF" attachments are really other file types renamed to .pdf.