How to convert EPUB to XML
- Drop your EPUB file on the box above, or click it to choose the file.
- Press Convert. You see a preview or a summary of the result.
- Download the .xml file, or copy the text.
What is kept when you convert EPUB to XML
- Metadata (title, creators, language, identifier, publisher, date, description, subjects) and every chapter in reading order.
- Each chapter keeps its number, title, source file and word count, with headings and paragraphs as separate elements.
- All text is escaped and invalid characters are removed, so the file always parses.
Example
The same two-chapter EPUB as XML:
Output
<?xml version="1.0" encoding="UTF-8"?>
<book>
<metadata>
<title>Sample Book</title>
<creator>Ada Lovelace</creator>
<language>en</language>
<identifier>urn:uuid:64f706b5-8308-4d7c-a8d1-3f5219499819</identifier>
</metadata>
<chapters count="2">
<chapter number="1" title="Chapter 1: Arrival" source="OEBPS/chapter-1.xhtml" words="7">
<heading level="1">Chapter 1: Arrival</heading>
<p>The train was late.</p>
</chapter>
<chapter number="2" title="Chapter 2: Morning" source="OEBPS/chapter-2.xhtml" words="8">
<heading level="1">Chapter 2: Morning</heading>
<p>The café opened at seven.</p>
</chapter>
</chapters>
</book>
About EPUB and XML files
An EPUB is an e-book packaged as a ZIP file: XHTML chapters, a package file listing them in reading order, metadata such as title and author, and usually a table of contents. It opens in Apple Books, Google Play Books, Kobo, Calibre, Thorium.
XML stores data as nested, named elements. Element names must follow XML’s rules, special characters are escaped, and a few control characters are not allowed at all. It opens in code editors, Excel (as an XML table), databases, integration tools.
Good to know
- Check the result in two readers (for example Apple Books and Calibre) — they differ slightly in fonts and spacing.
- If the target system has its own XML schema, rename the root and record elements to match it in the settings.
Privacy and limits
The file is read and converted by this page in your browser; there is no upload and no account. Scripts inside the book are never run, the ZIP is read with size limits that stop archive bombs, and DRM-protected books are refused. Files up to 100 MB are accepted; a file of the wrong type or a damaged file is rejected with the reason.