Skip to content

EPUB tests: reading order, document content and package validity

Original books, an unmodified public-domain ebook, independent readers and W3C EPUBCheck. CloudConvert quality remains unverified.

Extract chapters or create a reflowable book

EPUB to TXT, HTML and Markdown reads XHTML chapters in the package spine order, including non-linear supplemental entries. ZIP and manifest order do not determine the reading order. HTML keeps supported headings, lists, tables, emphasis, chapter links and embedded PNG, JPEG, GIF or WebP images. TXT keeps text and table-cell boundaries. Markdown retains tables and formatted preformatted blocks as HTML; embedded images can use data URLs that some Markdown readers restrict.

TXT, Markdown, HTML, DOCX and ODT can create a real EPUB 3 package with metadata, XHTML, a navigation document, a stylesheet and supported embedded raster images. Navigation uses the first 500 level 1–3 headings. DOCX and ODT title, creator and language are retained when present. Other inputs use their first heading or filename for the title; HTML can supply a language, otherwise it is undetermined. Each export has a new publication identifier and modification time.

These are content and reflow conversions. Source CSS, fonts, printed page layout, headers, footers, active content and remote images are omitted. SVG/MathML content and media overlays are unsupported. Cover or navigation resources outside the spine are not extracted. Encrypted and font-obfuscated books are rejected. Image-only text extraction gives an explicit OCR limitation, and an empty document does not produce an empty ebook.

OpenDocument Text and Markdown fidelity

The ODT source converter exports TXT, HTML, Markdown and EPUB. It reads body content in XML order, including hidden sections, supported headings and emphasis, lists, valid merged/repeated tables, saved fields, tested numbered notes and packaged PNG/JPEG/GIF/WebP images. A supported raster alternative is used when an SVG image has a packaged fallback. Text boxes are read in XML order; their page positions are omitted. ODT title, creator and language metadata can enter EPUB. This does not reproduce the office document’s printed layout, source fonts/styles, headers/footers, charts, macros, annotations or tracked-change history. Fields are not recalculated. Custom note labels and complex numbering/layout remain limited or unverified.

Original CC0 structural fixtures and a native LibreOffice ODT supplement an unmodified OASIS OpenDocument standard document, retained with its original copyright and reproduction terms. Independent XML/HTML/Markdown readers check supported paragraphs in order, text and original raster bytes; EPUBCheck separately validates generated books. These checks cover the stated content model, not every ODF feature or visual fidelity. Download the original structural fixture, native office fixture, measurements and reproduction notes and limits.

Same-input captures from the preceding live Tabmorph engine expose Markdown losses: an angle bracket next to a link became literal entity text, adjacent or punctuation-only emphasis rendered incorrectly, underline/superscripts were lost, explicit numbering changed, and fragment links lost their targets. Escaping order, selective inline HTML, explicit list values and safe fragment anchors correct those cases. Simple emphasis still uses normal Markdown. Some structures need a reader that permits embedded HTML; fragment identifiers are normalized before sanitization. The original HTML fixture, old live output, corrected output and retained failed measurements make the comparison reproducible. These are Tabmorph before/after measurements, not CloudConvert results.

Preceding live Markdown rendering with literal delimiters, entity text and changed list values
Preceding live engine, identical original HTML
Corrected Markdown rendering retaining literal text, semantic emphasis and explicit list values
Corrected export, independent Markdown reader

ODT limits are 32 MB input/output, 2,000 package entries, 64 MB expanded contents, 8 MB per entry, 10,000 expanded table positions and 16 MB of embedded raster assets. Repeated content is bounded before string assembly. XML entries support 50,000 nodes and 128 nesting levels; attributes fit within 64 KB and style inheritance within 128 levels. Encryption, damaged ZIP/XML, DTDs, excessive repetition and invalid merged-cell data fail explicitly. XML is parsed as data before known HTML is emitted; source events and remote resources never enter a source DOM. A retained WebKit source-page check also caught a redundant preload of the already-running entry script after readiness; the build now omits that redundant preload. Worker count, normal cache/hardware and the engine CSP remain unchanged.

Create ODT content from Word, HTML, Markdown or text

DOCX, HTML, Markdown and plain text can create an OpenDocument Text 1.3 package for LibreOffice and other compatible office apps. Supported headings, inline emphasis, positive ascending lists, tables and valid merges, safe links, bookmarks and packaged raster images become ODF content. DOCX body text, plain text and code retain explicit spaces, tabs and line breaks. Leading table headers retain ODF header-row semantics. Reversed/nonpositive numbering and invalid/overlapping merges fail explicitly. Original fonts, CSS, headers/footers, page layout and editable office features are omitted.

Original CC0 sources are checked with independent XML/HTML/Markdown/OOXML readers, the unmodified official ODF 1.3 Relax NG schemas, ZIP checksums, Pillow image decoding and native LibreOffice import. These checks establish the declared content behavior, not printed-layout or CloudConvert parity. The initial candidate lost table-header semantics despite valid XML and retained cell text; its actual package and failed check are retained. Read the reproduction notes and limitations, measurements and actual HTML-to-ODT output.

DOCX-to-ODT previously collapsed repeated body spaces and tabs. A scoped correction retains their literal values, including leading/trailing spaces, adjacent formatted runs, padded table values and Unicode. Five independently authored DOCX fixtures pass exact body-paragraph checks in both Chromium and WebKit; macOS’s separate document reader confirms all 84 expected paragraphs. Eight previously failing full-output checks and 28 individual paragraph checks are retained beside the corrected outputs. Six HTML, Markdown and TXT control outputs remain byte-for-byte unchanged. These are finite content checks; source tab-stop positions, fonts and printed layout are not reproduced. Read the reproduction notes, measurements and before/after sizes, independent standards/text report, macOS reader report and actual corrected ODT. No new CloudConvert comparison was available under the retained quota hold; competitive quality remains unverified.

Unicode document encoding and DOCX metadata

DOCX body line breaks and Word carriage-return elements are preserved by a scoped reader correction. Original wrapping breaks, consecutive breaks, tables, lists and UTF-16 XML are tested through actual TXT, HTML, Markdown, ODT and EPUB downloads. Five source cases pass all 466 independent observations across 34 Chromium/WebKit downloads; the 196 failing before observations remain. Exact TXT checks and independently read rich-content controls measure body text, not printed layout or general destination compatibility. Read the line-break evidence and limits. CloudConvert quality remains unverified.

HTML, Markdown and plain text content conversions support UTF-8 and BOM-marked UTF-16 little-endian or big-endian. DOCX XML parts support UTF-8/UTF-16 XML 1.0. Equivalent original fixtures test Unicode, literal entities, exact preformatted spaces/tabs, tables and packaged image bytes. Independent LibreOffice reads all five source DOCX variants, including CDATA metadata and a relocated main document part. Invalid bytes fail explicitly instead of becoming replacement characters. TXT to PDF retains its separate UTF-8 and character-set limits.

Captures from the preceding live Tabmorph engine retain valid UTF-16 DOCX errors, a UTF-16 text/MP3 detection collision, garbled Markdown, lost CDATA metadata and malformed UTF-8 that produced substituted text. Shared strict decoding and bounded validation before the DOCX reader correct these cases across 16 existing operations. Every DOCX member is CRC-checked; all XML parts are parsed as data within 50,000 elements, 128 levels and 64 KB attributes per element. Package limits remain 32 MB input, 2,000 entries, 64 MB expanded and 8 MB per entry. Normalized XML is bounded again before reading; binary resources stay byte-identical. DTDs, stylesheet instructions and inline event attributes fail explicitly.

Read the exact method, limits and reproduction commands, independent measurements, preceding live capture and original UTF-16 DOCX. These are measured Tabmorph repairs, not new pair counts or CloudConvert comparisons. CloudConvert quality remains unverified under the retained quota failure. Page layout, fonts and office editing features are still omitted.

Create native Word document content

HTML, Markdown, plain text, ODT and EPUB create real DOCX packages with WordprocessingML text, headings, inline formatting, native list numbering, tables with valid horizontal/vertical merges, leading header rows, hyperlinks, bookmarks and embedded raster images. Supported ODT/EPUB metadata is copied. Original Word/web page layout, CSS/fonts, headers/footers, macros and unsupported editable features are omitted. ODT notes become linked content, not native Word footnotes. Review the result in your office app.

Original CC0 fixtures are read with independent raw XML/HTML/Markdown/EPUB readers, python-docx, Pillow, official unmodified ECMA-376 WordprocessingML and OPC content-type/relationship schemas, and native LibreOffice import. Per-character supported emphasis, table cells/spans, numbering starts/restarts, list continuation indentation, supported fragment links, code/plain-text whitespace and images are checked separately. Native HTML and text exports provide additional reader checks; their renderings are not Word application or printed-layout comparisons. Microsoft Word application testing and CloudConvert parity remain unverified.

An initial canvas conversion lost stored RGB values at low alpha during WebP-to-PNG compatibility conversion. Direct unpremultiplied RGBA decoding and row-wise lossless PNG encoding preserve the tested pixels, including fully transparent colors. WebP ICC and EXIF payloads are carried into PNG; profile/EXIF behavior across office readers remains limited or unverified. PNG, JPEG and GIF bytes stay unchanged. Animated WebP is rejected; raster animation is not a Word playback feature. The actual failed packages and independent pixel comparison remain available. A native rendering also exposed unindented continuation paragraphs, and an independent whitespace check caught a lost ODT tab. Those cases are repaired and retained. These are candidate repairs, not CloudConvert quality advantages.

Read the full limits, licenses and reproduction steps, independent measurements, original HTML and actual Word output. The packaging measurements independently repackage identical member bytes at three ZIP compression levels; these are not converter options or a competitor quality curve.

Independent packages and readers

Original CC0 EPUB 2 and 3 fixtures deliberately put ZIP entries, manifest items and spine chapters in different orders. They include Unicode text, a large exact identifier, cross-chapter anchors, an alpha PNG, non-linear notes and namespace prefixes. Python zipfile writes the packages independently; python-docx creates the office source. Download the original EPUB 3, EPUB 2, DOCX, HTML, Markdown and text.

An unmodified Project Gutenberg edition of Alice’s Adventures in Wonderland, by Lewis Carroll, supplies 15 real spine documents. The source page identifies the work as public domain in the USA. Its original package and notices are retained separately from the CC0 fixtures; it is not relabeled CC0. Download provenance and hashes from the public source record.

Python zipfile checks ZIP headers and CRCs. Namespace-aware lxml independently reads the package, manifest, spine and XHTML. A separate Markdown reader checks rendered text. Supported text is compared character for character in reading order after removing whitespace; that normalization does not measure indentation or printed layout. Pillow independently decodes embedded images and the original image bytes are compared. W3C EPUBCheck validates each exported package separately. Conformance does not certify accessibility, retailer acceptance or visual fidelity.

Read the full independent report, fixture hashes, lossless packaging size measurements and reproduction notes. The size measurements repackage one actual export at three compression levels and compare all uncompressed member hashes; they are not a competitor curve or different fidelity settings.

Failures retained, not hidden

The first candidate triggered Chromium’s strict CSP while preparing an inline image event during HTML parsing. No script ran and no conversion request was sent. An inert-template candidate still prepared the attribute and was rejected. Document HTML now goes through a pure JavaScript HTML parser that removes handlers and automatic resource references before any browser DOM is created, followed by DOMPurify sanitization. A separate XML preflight rejects inline event attributes and stylesheet processing instructions before creating EPUB or DOCX XML elements. The engine CSP stays unchanged. This correction also applies to existing HTML and Markdown conversion.

Independent Markdown reading found another existing defect: literal angle-bracket text disappeared as an HTML tag, and underscore markers appeared as literal text in the public ebook. Text escaping, intraword emphasis and formatted preformatted blocks are corrected. The literal-text fixture, corrected Markdown and initial failed measurements retain that evidence. The preceding live-engine capture and independent before/after text comparison use the identical literal fixture in both browsers. A DOCX table check also had to read nested paragraph text rather than only the cell’s immediate text; that was a test correction, not a product failure.

Two initial synthetic packages failed standards checking: an EPUB 2 image needed a block container, and UTF-16 EPUB 3 XHTML is nonconforming. Corrected EPUB 2 and UTF-8 prefixed-namespace controls pass. UTF-16 import remains a compatibility extension and is not presented as standards conformance. The installed LibreOffice runtime could not export the synthetic DOCX to EPUB; those failed attempts are retained, and no LibreOffice rendering comparison is claimed.

Bounds and competitive status

Input and output are limited to 32 MB, with up to 2,000 ZIP entries, 64 MB expanded contents and 8 MB per entry. Referenced entries are incrementally inflated and checksum-checked. Extraction supports one rendition and 1–500 XHTML spine chapters. XML documents are bounded to 50,000 nodes and 128 levels. Document HTML cleanup supports 50,000 elements and 128 levels; HTML extraction embeds at most 16 MB of supported raster assets. ZIP64, split containers, duplicate paths, internal DTD subsets, entities, xml:base, inline XML event attributes and stylesheet processing instructions are unsupported.

No same-input CloudConvert EPUB reference was available under the retained daily quota failure. No new provider upload or retry was attempted. Passing native readers, correcting defects and adding operations do not establish competitive parity or superiority. The broader coverage and quality goal remains incomplete.

Choose an output on the EPUB source page, or try DOCX to EPUB, HTML to EPUB or EPUB to TXT. Conversion remains free and runs inside the isolated browser engine.