Skip to main content

How to find the content.opf in an EPUB file

The content.opf file within an EPUB contains metadata about the book – like the title, the author, and the subject.

To find the content.opf file, look for the mandatory META-INF/container.xml file. This is a pointer to the content.opf file. For example:

<?xml version="1.0"?>
<container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
   <rootfiles>
      <rootfile full-path="content.opf" media-type="application/oebps-package+xml"/>

   </rootfiles>
</container>

See also: Anatomy of an EPUB 3 file