.OPF

OPF File

Open Packaging Format (EPUB package document)
Ask a question
QUICK ANSWER

An OPF file (usually named content.opf) is the XML manifest inside an EPUB e-book. It lists the book's metadata, every file in the book, and the reading order - but holds no readable text. You cannot read a book from a lone OPF. If you found one after unzipping an EPUB, re-zip the folder back into .epub and open it in Calibre or Apple Books.

Developer: IDPF (now W3C) Category: eBook Files Open standard MIME: application/oebps-package+xml
OPENS ON Windows macOS Linux
Related: .EPUB · .ACSM · .AZW3 · .DJVU

On this page

19k+ extensions indexed
Last reviewed Jul 26, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the OPF file format?

File with the .opf extension stores digital publication metadata in plain-text XML format. The .opf format conforms to the Open Packaging Format standard, which is the core package document of the EPUB ebook specification - now maintained by W3C (formerly by IDPF). .opf files store such information as:

  • Title,
  • Author,
  • Language,
  • Publication ID - usually an ISBN identifier,
  • Reading order (spine),
  • Navigation method,
  • Formatting directives,
  • Pointers to optional elements,
  • Descriptions and references to all parts of the publication (manifest).

.opf files are part of a larger file archive that constitutes an .epub file. In EPUB 2, an .opf file required a related .ncx file - which contains the table of contents - to be present in the package; EPUB 3 replaced that requirement with an XHTML Navigation Document (nav.xhtml), though .ncx may still be included for backward compatibility. The EPUB 3 package level also supports backward compatibility, though a reader that implements only EPUB 3 may ignore legacy data from older EPUB 2 files. The package additionally contains CSS, SVG, and other media files, alongside a META-INF/container.xml file that locates the package document. An .opf file can be accessed by unzipping an .epub archive. Its filename is typically content.opf, but it can be anything - META-INF/container.xml holds the authoritative reference to it within the package.

Security & safety

RISK: LOW

An OPF is plain XML metadata - no executable content, effectively no risk to open in a text editor or e-book editor. The only caveat: it can reference external resources, but readers don't auto-fetch them. The bigger issue is user confusion (expecting a readable book), not security.

Format details

in a nutshell
FULL NAMEOpen Packaging Format (EPUB package document)
DEVELOPERIDPF (now W3C)since 2007 (EPUB 2.0, IDPF); current EPUB 3.3 (W3C Recommendation, May 2023)
CATEGORYeBook Files
MIME TYPEapplication/oebps-package+xml
TYPEXML metadata/manifest file (the "package document" of an EPUB)
STANDARDOpen · royalty-free
This extension is also used by…
  • FlexiSIGN / sign-making project file (.opf) - Some signage/cutting software (FlexiSIGN-PRO lineage) saves projects as .opf - unrelated binary format.
  • Generic 'options/preferences' files - A handful of apps name a settings file .opf; contents are app-specific.

Programs that open OPF files

Windows3 apps
Calibre Open-source To edit: Calibre's 'Edit book' opens the whole EPUB including its OPF. To read a metadata.opf, you don't - it just feeds Calibre's library metadata.
Sigil Open-source EPUB editor; open the EPUB and Sigil exposes the OPF (manifest/spine/metadata) for editing.
Any text editor (Notepad++ / VS Code) Open-source Open the .opf to read/edit the raw XML metadata and manifest - it's plain text.
macOS2 apps
Calibre Open-source Use Edit book on the parent EPUB; or view metadata.opf as text.
Apple Books Built-in Opens the EPUB (not the bare OPF) - re-zip the unpacked folder to .epub first.
Linux2 apps
Calibre Open-source Edit book on the EPUB exposes the OPF; or open the file in any text editor.
Okular Open-source Reads the whole EPUB (not the lone OPF) - package the folder back into .epub.

Technical details

deep spec
File structurePlain-text XML; no binary header or magic bytes
MIME type`application/oebps-package+xml`
XML root element`<package>` in namespace `http://www.idpf.org/2007/opf`
Required child elements`<metadata>`, `<manifest>`, `<spine>`
Default filename`content.opf`; also commonly `package.opf`
Located via`META-INF/container.xml` inside the `.epub` ZIP container
Spine elementOrders `<itemref>` entries that define the default reading order of content documents
Manifest elementLists every publication resource - HTML, CSS, images, fonts, and media files
Metadata vocabularyDublin Core elements (`dc:title`, `dc:creator`, `dc:language`, etc.) plus EPUB-specific `<meta>` properties
Navigation (EPUB 2)References a `.ncx` file via the `<spine toc="…">` attribute
Navigation (EPUB 3)References an XHTML `nav.xhtml` Navigation Document via manifest item `properties="nav"`
Optional EPUB 2 element`<guide>` - provides legacy navigation landmarks (deprecated in EPUB 3)
Optional EPUB 3 elements`<collection>` for grouping related resources; `<bindings>` (deprecated in EPUB 3.3)
Character encodingUTF-8 required; BOM not recommended by the specification
Accessibility metadata (EPUB 3.3)Supports `schema:accessibilitySummary`, `schema:accessMode`, and conformance claims inside `<metadata>`
Developer / maintainerW3C (transferred from IDPF in 2017)
Released2007 (EPUB 2.0, IDPF); current EPUB 3.3 (W3C Recommendation, May 2023)
Open standardYes · royalty-free
Specificationwww.w3.org

OPF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with OPF files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about OPF files.

Frequently asked questions

What is an OPF file and how do I open it?
It's the XML 'package document' inside an EPUB - metadata plus a list of the book's files and reading order. You don't read it directly; it belongs in an EPUB. To inspect it, open it in any text editor or use Sigil/Calibre's 'Edit book' on the parent EPUB.
Why can't I read my book from the OPF file?
Because the OPF contains no text - it's just an inventory of the EPUB's contents. The actual chapters are XHTML files alongside it. Re-zip the whole folder into an .epub and open that.
What is the metadata.opf Calibre left next to my book?
It's a sidecar file Calibre writes to store that book's library metadata (title, author, tags, cover info). It's a helper for Calibre and safe to ignore or delete if you don't use Calibre.
How do I convert an OPF to EPUB or PDF?
You don't convert the OPF - it's part of an EPUB. Reassemble the EPUB (Calibre/Sigil) from the folder, then convert that EPUB to PDF/MOBI in Calibre.
Is the OPF the same as the EPUB?
No. The EPUB is the whole ZIP-based book; the OPF (content.opf) is one XML file inside it that lists everything. An EPUB needs the OPF, but the OPF alone isn't a readable book.
Do I need the NCX file too?
EPUB 2 used a separate toc.ncx for navigation; EPUB 3 uses an XHTML nav document instead. Either way the OPF references it. For a valid EPUB you need the files the OPF lists, not the OPF alone.

References

1W3C - EPUB 3.3: Package Documentwww.w3.org
2W3C - EPUB 3 Overviewwww.w3.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.MDMarkdown Document
4.PARTPartial Download File
5.RPMSGRestricted Permission Message
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.PRO6XProPresenter 6 Bundle File
10.SWFSmall Web Format (Shockwave Flash)

Related extensions

.EPUBElectronic Publication
.ACSMAdobe Content Server Message
.AZW3Kindle Format 8 (KF8) e-book
.DJVUDjVu Document
.FB2FictionBook 2.0 eBook
.MOBIMobipocket eBook

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z