Digital publishing
The Hidden Metadata Inside an EPUB's content.opf File That Controls Discovery
A common belief among independent authors holds that the metadata block inside an EPUB’s package file, usually named content.opf, is what determines how a book is found in online stores. The belief is understandable, because the file does contain a title, an author, a language, and often subjects and a description. The evidence, however, supports a narrower conclusion. Content.opf metadata governs how a book identifies and presents itself to reading systems and library software, and its accessibility metadata is explicitly described by W3C as key to discoverability. Retail discovery, by contrast, runs mainly on metadata that authors enter in each retailer’s dashboard and that the book trade exchanges through the ONIX standard. What follows sets out what the package file contains, what the EPUB specifications require, and where the file’s influence on discovery begins and ends.
The package document is the EPUB’s manifest of record
Every EPUB contains a package document, an XML file whose name and location are set by the container’s META-INF/container.xml. Many tools name it content.opf, though the name is a convention rather than a requirement. Apple’s Books Asset Guide describes the package document as the file that “contains information about the book including the metadata, manifest, and spine.”1 The manifest lists every file in the publication, and the spine sets the reading order. The metadata section, which is the subject of this article, describes the publication itself.
The current specification is EPUB 3.3, which, as of November 2026, is a W3C Recommendation dated 13 January 2026, edited by Matt Garrish of the DAISY Consortium and Ivan Herman of W3C.2 Its metadata rules descend from earlier versions, including EPUB 3.2 and the International Digital Publishing Forum’s EPUB 3.0.1. The quotations below are drawn from the EPUB 3.2 Packages specification and from EPUB 3.0.1 where the relevant passage was available to verify; the EPUB 3.3 table of contents retains the same required elements (dc:identifier, dc:title, and dc:language).3
EPUB requires only four pieces of metadata
The specification is deliberately minimal. EPUB 3.2 states that “the Package Document only has the following minimal metadata requirements,” and that “All other metadata is OPTIONAL.”4 The four requirements are as follows.
- An identifier: “The metadata section MUST include an identifier element that contains an unambiguous identifier for the Rendition.”5
- A title: the metadata section “MUST include at least one title element containing the title for the EPUB Publication.”6
- A language: the section “MUST include at least one language element with a value conforming to [BCP47],” the standard for language tags such as
en-US.7 - A modification date: each rendition “MUST include exactly one [DCTERMS] modified property containing its last modification date.”8
Apple’s asset guide repeats the same minimum, listing the title, an ID, the language, and the modified date as items publishers “must include,” and adds a practical warning: “do not include any leading or trailing whitespace in the OPF metadata.”9
A minimal metadata block therefore looks like this:
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:identifier id="pub-id">urn:isbn:9780000000000</dc:identifier>
<dc:title>Example Title</dc:title>
<dc:language>en-US</dc:language>
<meta property="dcterms:modified">2026-11-26T00:00:00Z</meta>
</metadata>(The ISBN is a placeholder.)
The unique identifier ties every version of the file together
The package element carries a unique-identifier attribute that points to one dc:identifier element. EPUB 3.2 explains that the attribute identifies the identifier element “that provides the preferred, or primary, identifier.”10 EPUB 3.3 defines the unique identifier as “The primary identifier for an EPUB publication” and adds a rule with practical consequences: “Significant revision, abridgement, etc. of the content requires a new unique identifier.”11
For self-publishers, the identifier is often an ISBN, a UUID generated by the authoring tool, or both. KDP’s metadata guidelines state, as of November 2026, that “If you include your own ISBN in your manuscript, it must match the ISBN you entered during title setup.”12 An ISBN placed in the package file is therefore subject to the same consistency rule as one printed on the copyright page. The specification’s distinction between minor corrections and significant revision also maps onto the general practice that a substantially new edition is treated as a new product, though authors should confirm each retailer’s specific rules for when a new ISBN is needed.
Optional metadata describes the book to software that reads it
Beyond the required four, the package document can carry the full Dublin Core element set and a set of EPUB-specific refinements. These are the elements that give the file its reputation as a discovery tool.
Creators and contributors
EPUB 3.0.1 states that “The creator element represents the name of a person, organization, etc.”13 EPUB 3.2 adds that the element “SHOULD contain the name of the creator as the Author intends it to be displayed to a user,” and that “When determining display priority, Reading Systems MUST use the document order of creator elements,” so the first creator is treated as the primary one.14 Two refinements make author data more precise. A role property “can be attached to the element to indicate the function the creator played in the creation of the content,” and a file-as property “may be attached to include a normalized form of the name,” such as “Austen, Jane” for sorting.15 Refinements are connected to the element they modify with the refines attribute, which, in EPUB 3.2’s words, “Identifies the expression or resource augmented by the element.”16
Titles
A book with a subtitle or a series title can declare several dc:title elements. EPUB 3.0.1 notes that “the title-type property should be attached to indicate the type of title (e.g., the main title of a work or a subtitle).”17
Subjects
The dc:subject element can carry a plain keyword or a code from a classification scheme. EPUB 3.2 sets strict rules for codes: “When a scheme is identified, a subject code MUST be attached,” and “The term property MUST NOT be attached to a subject element that does not specify a scheme.”18 The specification does not require any particular scheme; the choice of scheme is left to the publisher.
Descriptions and other Dublin Core elements
Elements such as dc:description, dc:publisher, and dc:date are governed by the general Dublin Core rules. EPUB 3.0.1 states that “this specification does not modify the DCMES definitions for these elements,”19 and EPUB 3.2 requires only that such optional elements be at least one character long after white space is trimmed.20
Series and collections
The EPUB 3.3 table of contents lists belongs-to-collection and group-position among the package metadata properties, which together allow a publication to declare that it belongs to a named collection, such as a series, and its position within it.21 Desktop library software also reads and writes series data. Calibre’s ebook-meta command, documented in version 9.19.0, describes itself as a tool to “Read/Write metadata from/to e-book files,” with options to set the series, the series index, tags, the ISBN, other identifiers, and sort forms of the title and author, and to read from or write to an OPF file directly.22
Reading systems must process package metadata but may ignore what they do not recognize
The specification’s rules for reading systems explain why internal metadata matters on readers’ devices. EPUB 3.2 states that “Reading Systems MUST NOT skip processing the metadata expressed in the Package Document.”23 A reading app that imports a sideloaded EPUB, or a library management program, therefore takes the title, author, and other details it displays from the package file.
The same specification limits what reading systems are obliged to do with it. “Reading Systems SHOULD ignore all meta elements whose property attributes define expressions they do not recognize,” and they “MUST ignore all descriptive metadata properties that they do not recognize.”24 An author can add any well-formed property, but there is no guarantee that a given app will use it.
The specification is also candid about the package document’s scope. EPUB 3.2 states that “The Package Document is not designed to provide complex metadata encoding capabilities,” and, regarding links to fuller external records, that “this specification does not require Reading Systems to process linked records.”25 EPUB 3.3 lists the onix-record link relationship as deprecated.26
Retail discovery runs mainly on dashboard and ONIX metadata
When a self-publisher uploads a book to a retailer, the metadata that appears on the product page and feeds the store’s search is the metadata entered during title setup. KDP’s “Metadata Guidelines for Books” make this clear through the way they are framed. The title field “should contain only the actual title of your book as it appears on your book cover,” keywords “must accurately describe the book,” and authors can “choose up to three categories during title setup.”27 All of these are dashboard fields. The guidelines treat the manuscript as something to check against that metadata, not as its source: “Title information doesn’t need to appear in your manuscript, but it must match the metadata if it does.”28
Kobo Writing Life takes the same approach. Its help article “What is metadata?” describes metadata as “the who, what, when, and where of your eBook,” lists contributor names, series name and volume number, synopsis, title, and subtitle as fields entered in the “Describe your eBook” section, and states that “The more accurate and consistent your metadata is, the more enhanced your discover-ability options become.”29 The article does not discuss the EPUB’s internal metadata.30
Beyond individual dashboards, the book trade exchanges product information through ONIX for Books. The Dublin Core Metadata Standards Index describes ONIX as “the international standard for representing and communicating book industry product information in electronic form,” maintained by EDItEUR, “the international standards body for the book and serials trade,” and as “the dominant international standard for communicating product metadata in the book supply chain.”31 It is commonly stated that distributors serving independent authors convert dashboard entries into ONIX records for the retailers and libraries they supply, although no distributor’s own documentation was confirmed on this point for this piece.
The claim that the package file “controls discovery” therefore needs qualification. The content.opf file does not, on the evidence of these platforms’ own documentation, control retail discovery in the way the phrase suggests. No source consulted here states that a major retailer takes keywords, categories, or descriptions from the package file to rank or display a book.
Accessibility metadata is the clearest case in which the package file serves discovery
There is one area in which the package file plays a documented role in discovery. In August 2026, the W3C Publishing Community Group issued a final report, “Expressing Accessibility Metadata in the EPUB Package Document 1.0,” edited by Matt Garrish of the DAISY Consortium and Charles LaPierre of Benetech.32 The report details “when and how to set accessibility metadata properties in the EPUB package document” and states that “These properties are key to the discoverability of EPUB publications.”33
The report covers five schema.org properties: accessMode, accessModeSufficient, accessibilityFeature, accessibilityHazard, and accessibilitySummary.34 It also explains that the Dublin Core dcterms:conformsTo property “is used to declare conformance to a standard such as the EPUB Accessibility” specification, and that further properties can record “who evaluated the publication.”35 Taken together, the report says, this information “provides users with a better picture of whether the content is going to meet their needs.”36
Even here, the supply chain matters. The report notes that “Accessibility metadata can also be expressed in supply chains through the provision of ONIX records,” a topic it places outside its scope.37 An author who declares accessibility features in the package file should also check whether the retailer or distributor provides a way to supply the same information through its dashboard.
A brief illustration of package-level accessibility metadata follows. The values must describe the actual book; they are shown here only to illustrate syntax.
<meta property="schema:accessMode">textual</meta>
<meta property="schema:accessModeSufficient">textual</meta>
<meta property="schema:accessibilityFeature">tableOfContents</meta>
<meta property="schema:accessibilityHazard">none</meta>
<meta property="schema:accessibilitySummary">...</meta>Consistency between the file and the dashboard prevents avoidable problems
Although the package file is not the main input to store search, inconsistencies between it and the dashboard can still cause trouble. KDP’s guidelines require that an ISBN in the manuscript match the one entered at setup and that title information, where it appears, match the metadata.38 Apple notes that stray white space in OPF metadata can affect how a book renders on Apple Books.39 Readers who sideload a purchased or review copy, and libraries that ingest EPUB files, see whatever the package file says, because reading systems are required to process it.40
A practical approach follows from the evidence. First, treat each retailer’s dashboard as the authoritative source for discovery metadata and keep it accurate and consistent, as both KDP and Kobo advise.4142 Second, make the package file agree with the dashboard on the fields both contain: title, subtitle, author names in the same form and order, language, identifier, and series information.4344 Third, add file-as and role refinements so that library software sorts and credits contributors correctly.45 Fourth, include accessibility metadata that truthfully describes the book, following the W3C guide.46 Fifth, update the dcterms:modified date whenever the file changes, since EPUB requires exactly one.47
The file remains a quiet part of the book’s identity. Its influence is strongest where the EPUB travels on its own, outside a storefront, and in accessibility metadata, where the W3C has stated plainly that it matters for finding books. Whether retailers will begin to read more of the package file directly is an open question that their current documentation does not answer.
Related articles on selfpublishingtool.com
Platform rules, fees and laws change. Facts in this guide are dated to when they were checked; confirm current terms with the platform or authority before relying on them. Nothing here is legal, tax or financial advice.