Go Back

XMP metadata in PDF files

XMP (Extensible Metadata Platform) is the XML-based metadata system used inside PDF files, images and many other document formats. Adobe introduced it in 2001, and it was later published as ISO 16684. Where the older PDF Info dictionary is a flat list of key/value pairs, XMP is structured XML with named schemas and typed properties.

That structure is why XMP can describe things the Info dictionary cannot, such as copyright terms, the history of a document, or which archival standard a file conforms to.

How XMP differs from the Info dictionary

Info dictionaryXMP
FormatKey/value pairsRDF/XML packet
SchemaNoneNamed schemas with defined properties
Typical fieldsTitle, Author, Subject, Keywords, Creator, Producer, datesThe same, plus rights, history, ratings, PDF/A identification
LanguagesOne valueMultiple language alternatives
StandardisedPart of the PDF specificationISO 16684, shared across formats
Reader behaviourUsed as a fallbackUsually preferred when both exist

A PDF can contain both, and they can disagree. Most readers prefer XMP and fall back to the Info dictionary when the XMP property is absent. This is the cause of most "I changed the metadata but it still shows the old value" reports.

What the packet looks like

XMP is stored in the file as an XML packet, wrapped in a processing instruction that lets a parser find it inside the binary stream:

<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/">
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <rdf:Description rdf:about=""
        xmlns:dc="http://purl.org/dc/elements/1.1/">
      <dc:title>
        <rdf:Alt>
          <rdf:li xml:lang="x-default">Quarterly Report 2026</rdf:li>
        </rdf:Alt>
      </dc:title>
      <dc:creator>
        <rdf:Seq>
          <rdf:li>Jane Doe</rdf:li>
        </rdf:Seq>
      </dc:creator>
    </rdf:Description>
  </rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>

Two details matter when you read a packet:

  • xpacket begin / xpacket end delimit the packet. The begin attribute normally contains a byte-order mark. Searching a PDF for the literal string xpacket begin is a quick way to confirm that XMP is present.
  • rdf:Alt, rdf:Seq, rdf:Bag are containers. Text values that can exist in several languages use Alt; ordered lists such as creators use Seq; unordered lists such as keywords use Bag. A property that is a plain string does not need a container at all.

The schemas

These schemas form the foundation of XMP metadata. Each has its own reference page with the individual properties.

1. Dublin Core Schema (dc)

  • Basic descriptive metadata
  • Content discovery and identification
  • Core elements like title, creator, description
  • Industry standard for document description
  • Prefix: dc

2. XMP Basic Schema (xmp)

  • Fundamental properties of digital assets
  • Creation dates, modification times
  • Basic ratings and labels
  • Creation tool information
  • Prefix: xmp

3. XMP Rights Management Schema (xmpRights)

  • Copyright information
  • Usage rights and restrictions
  • License terms
  • Rights holder information
  • Prefix: xmpRights

4. XMP Media Management Schema (xmpMM)

  • Version tracking
  • Asset relationships
  • Document history
  • Rendition management
  • Prefix: xmpMM

5. PDF Schema (pdf)

  • PDF-specific properties
  • PDF version information
  • Producer information
  • Printing information
  • Prefix: pdf

There is also the PDF/A identification schema (pdfaid), which declares the archival standard and conformance level. It is covered in the PDF/A metadata guide.

What XMP enables

Because the properties are typed and shared across formats, XMP supports things a flat dictionary cannot:

  • Content discovery — titles, descriptions and subjects that catalogue and search systems can read reliably.
  • Rights management — copyright holder, usage terms, licence URL and whether the document is marked as copyrighted.
  • Workflow automation — job identifiers, instructions and status fields that a pipeline can branch on.
  • Asset tracking — document and instance identifiers, plus a history of derived versions.
  • Preservation — the identification block that archival systems use to verify PDF/A conformance.
  • System integration — a format that digital asset management systems, cameras and design tools all understand.

How to view XMP

  • This editor — the desktop app has a tab per schema (XMP Basic, XMP PDF, XMP Dublin Core, XMP Rights, Media Management). The online editor shows the standard fields that map to XMP but not the full packets.
  • ExifTool — exiftool -XMP -b file.pdf prints the raw packet.
  • Acrobat — File → Properties → Advanced shows the raw Info dictionary; third-party XMP panels show the packet.
  • Command line — pmedit-cli tojson file.pdf exports the mapped XMP values.

See the PDF metadata viewer guide for a comparison of what each tool exposes.

How to edit XMP

  1. Open the PDF in the desktop app.
  2. Choose the schema tab you need and change the property.
  3. If you also changed the Document fields, select Copy Doc to XMP in the on-save panel so the two stores match.
  4. Save.

The most common editing tasks have dedicated guides:

XMP and PDF/A

PDF/A requires XMP. The Info dictionary alone is not enough, and if both are present their values must agree. A file that declares conformance in the pdfaid schema but whose fonts or colour spaces violate the standard will still fail validation.

If you are preparing an archival file, correct the metadata first, then validate with veraPDF or Acrobat Preflight.

Frequently asked questions

Is XMP the same as EXIF?

No. EXIF describes how a photograph was taken — camera, exposure, GPS. XMP is a general-purpose metadata framework that can describe any digital asset. A PDF does not normally contain EXIF, although a PDF can embed images that do.

Can XMP be removed from a PDF without breaking it?

Yes. XMP is optional. Clearing it leaves a valid PDF that falls back to the Info dictionary, if that is present.

Why does XMP store some values as lists?

Because a property can have several values or several language variants. A title in three languages is one dc:title with three rdf:li entries; keywords are a Bag of terms.

Is XMP visible to the reader?

It is not rendered on the page. It is visible to any application or person who inspects the file, which is the point — and the reason to check it before sharing a document.

Related guides