PDF metadata explained: what a document says about you
A PDF carries more than its pages. Most files also record who made them, with what, and when, and those details travel with every copy you send.
What metadata is
Metadata is information about a document rather than in it. The pages are what a reader sees; the metadata is a set of labeled details stored alongside them, which most PDF readers show only if you go looking, usually under a menu called Document Properties.
Nobody typically writes it on purpose. The program that created the file fills it in automatically, from the name on the computer, the template the document started from, and the clock. That is why it so often says something its author did not intend to share.
The three places a PDF keeps it
The document information
The oldest and most common store is a short list of named fields:
- Title, Subject and Keywords
- Often blank, but often filled in from the first line of a document or from a template, which is how an old client's name or a draft's working title can survive into a final version.
- Author
- Usually the name the computer or the word processor was set up with: your full name, your employer's, or that of whoever built the template.
- Creator
- The program the document was written in, such as a word processor or a design application.
- Producer
- The program that turned it into a PDF, which can be a different one, such as a printer driver or a scanner.
- Creation and modification dates
- When the file was made and last changed, to the second, often with a time zone that hints at where.
The XMP packet
Newer software also writes a second copy of the same kind of details in a format called XMP, a block of structured text tucked inside the file. It frequently repeats the fields above, and it can hold more: an editing history, the software's version, or identifiers from the program that made it. Clearing the document information alone can leave all of this in place, which is a common reason a "cleaned" file is not clean.
The document identifier
Most PDFs also carry an identifier: a long string of letters and numbers written when the file is created and kept, at least in part, each time it is saved again. It names no one, but it can show that two files are versions of the same original, even after one of them has been renamed and edited.
What is not metadata, and still travels
Clearing metadata does not make a document anonymous, because several other things a reader might not notice are part of the document itself:
- Text on the pages. A name in a letterhead, a signature block or a footer is content. So is text that is there but hard to see, such as white text on a white background.
- Comments and annotations. Notes, highlights and their authors' names, which are stored with each comment.
- Form contents. Whatever was typed into fillable fields.
- Attachments. Whole files embedded in the PDF, each with its own name and its own contents, such as a spreadsheet behind a report.
- Details inside photos. A photo placed in a PDF can carry its own record, from the camera: the model, the date it was taken and sometimes the location. That record belongs to the picture, not to the PDF, though Remove metadata can clear it too, as below.
Why it matters before you share
Most of the time, nobody reads a document's properties. The cases where it matters are the ones where someone has a reason to look:
- A job application. A CV whose author field still names your current employer, or whose title is the name of a template downloaded for another job.
- A document meant to be anonymous. A complaint, a peer review or a tip, where the author field quietly signs it.
- A published report. Dates that show it was finished weeks before it was said to be, or the name of a consultant who wrote it.
- A negotiation. A Creator field showing the counterparty's template, or a modification date later than the version you were told was final.
The reverse is worth knowing too. Metadata is easy to change, so it is a lead, not proof. An author field shows whatever was typed there, by a person or a program, and a date can be set to anything. Never treat it as evidence of who really made a file.
How to see what a file carries
Your PDF reader's Document Properties shows the main fields. To see everything at once, including whether the file has an XMP packet, an identifier, attachments, form fields, bookmarks or active content, and which of its photos carry camera details or a location, use Inspect PDF. It reads the file and changes nothing, so the file you inspect is exactly the file you send.
A typical report on a document made from a template shows an Author field with the name of whoever first set the template up, a Producer naming the software that saved it, and page sizes that confirm it is A4 or Letter. A report that lists an attachment you did not know about is the one most worth having read.
How to clear it
Remove metadata clears every one of these stores: every field of the document information, the XMP packet and the document identifier. It leaves the pages exactly as they were, along with bookmarks, comments, form fields and attachments, and then reads the saved file back to confirm that none of the cleared fields remains. Unless you switch it off, it also takes the camera details out of every photo stored as JPG inside the document, the model, the date and any location, without changing a pixel of the picture. Afterwards, open the cleaned copy in Inspect PDF and its metadata section reads that the document declares no metadata.
A good order of work before sending a sensitive file:
- Inspect it, and note anything you did not expect, especially attachments and form fields. Look through the pages for comments as well.
- Deal with what metadata removal does not reach: delete comments in your PDF editor, remove pages that should not go, and check the text itself.
- Remove the metadata as the last change. Many programs write fresh details every time they save, so a file edited afterwards will carry new ones.
- Inspect the cleaned copy to confirm it.
- If the file needs a password, protect it after cleaning. Locking a file gives it a new document identifier, because the encryption needs one, but it adds no name, software or dates.
The limits of cleaning
Removing metadata clears what the document records about itself. It does not touch text on the pages, the names stored with comments, form contents, or the names and contents of attachments, and photos stored in a form other than JPG keep whatever details they carry. If those matter, they need dealing with separately, and if the concern is text that must be truly removed, see How to redact a PDF safely.
It also cannot reach copies already sent. Metadata is cleared in the file you clean; every earlier copy still carries it.
The tools for this
More on privacy and security
- How to check whether a PDF website uploads your fileMany PDF websites say your file stays private. You do not have to take that on trust: your browser can show you exactly what a page sends, and to whom.
- PDF passwords explained: what they protect and what they do notA PDF can carry two very different kinds of password. One genuinely locks the document; the other mostly asks politely. Knowing which is which decides how far you can rely on it.
- How to redact a PDF safelyA black box over a name looks final. In a PDF it often is not: the words underneath can still be selected, searched and copied. Here is why, how to check, and what works instead.