Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHESPTRUFRDEEN

Elysia Tools

Navigation

Media

Inspect an EPUB package without opening the book

Check the ZIP wrapper, reading order and navigation targets without displaying chapter text.

Samples

Entries inside this sample collection

FileSimple

Sample EPUB Book

An EPUB e-book with two chapters for in-browser preview

Difficulty

1/10

Tags

epub, ebook, book

sample.epub

EPUB · 2.1 KB

Download fileOpen in new tab
fileSize
2.1 KB
format
EPUB
extension
.epub

Tools

Tools frequently paired with this sample

Related

Related sample collections

Related

Related workflows

Tool usage guide

Sample-focused context for search and workflow understanding

Overview

This 2,097-byte EPUB 2.0 fixture contains two chapters. Its 2.1 KB card label is a rounded size, not the exact byte count. Use it for package relationships rather than typography or reader compatibility.

Limits

No chapter text, private book metadata, rendering, DRM status or copyright permission is inferred. The package contains EPUB 2.0 structures; do not call this an EPUB 3 navigation test.

How it works

  1. 1Sample EPUB Book · Download file / Open in new tab
  2. 2Download the named card as sample.epub. Run the Python 3 snippets locally in sequence. They bound ZIP input and declared output, read only the known packaging XML, reject DTD/entities and never extract paths to disk.

Edge cases & common failures

  • Limits

    No chapter text, private book metadata, rendering, DRM status or copyright permission is inferred. The package contains EPUB 2.0 structures; do not call this an EPUB 3 navigation test.

Examples

1. Check the package wrapper

How to use

Sample EPUB Book — Download the named card as sample.epub. Run the Python 3 snippets locally in sequence. They bound ZIP input and declared output, read only the known packaging XML, reject DTD/entities and never extract paths to disk.

from pathlib import Path
import io, zipfile, struct
with Path("sample.epub").open("rb") as f:
    b = f.read(10001)
assert len(b) == 2097
z = zipfile.ZipFile(io.BytesIO(b))
infos = z.infolist()
assert len(infos) == 6 and sum(x.file_size for x in infos) < 10000
assert len({x.filename for x in infos}) == 6
first = min(infos, key=lambda x: x.header_offset)
assert first.filename == "mimetype" and first.header_offset == 0
assert first.compress_type == zipfile.ZIP_STORED
assert struct.unpack_from("<H", b, 28)[0] == 0
assert z.read("mimetype") == b"application/epub+zip"
print(len(b), len(infos), first.filename)

Outcome

Six ZIP members are present. mimetype is first, stored without compression at local offset zero, has no local extra field and contains exactly application/epub+zip. These facts do not replace full EPUB validation.

2. Resolve the reading order

How to use

Sample EPUB Book — Download the named card as sample.epub. Run the Python 3 snippets locally in sequence. They bound ZIP input and declared output, read only the known packaging XML, reject DTD/entities and never extract paths to disk.

import re
import xml.etree.ElementTree as ET
def read_xml(name):
    assert name in {"META-INF/container.xml", "OEBPS/content.opf", "OEBPS/toc.ncx"}
    raw = z.read(name)
    assert len(raw) < 10000 and not re.search(br"<!DOCTYPE|<!ENTITY", raw, re.I)
    return ET.fromstring(raw)
c = read_xml("META-INF/container.xml")
rootfiles = c.findall(".//{urn:oasis:names:tc:opendocument:xmlns:container}rootfile")
assert len(rootfiles) == 1 and rootfiles[0].get("full-path") == "OEBPS/content.opf"
pkg = read_xml("OEBPS/content.opf")
ns = "{http://www.idpf.org/2007/opf}"
assert pkg.get("version") == "2.0"
identifier = pkg.find(".//{http://purl.org/dc/elements/1.1/}identifier")
assert identifier.text == "sample-epub-001"
assert pkg.get("unique-identifier") == identifier.get("id") == "BookId"
assert ns+"scheme" not in identifier.attrib
items = {x.get("id"): x.get("href") for x in pkg.find(ns+"manifest")}
assert items == {"chapter1":"chapter1.xhtml", "chapter2":"chapter2.xhtml", "ncx":"toc.ncx"}
refs = [x.get("idref") for x in pkg.find(ns+"spine")]
assert refs == ["chapter1", "chapter2"]
assert all("OEBPS/"+items[x] in z.namelist() for x in refs)
print(len(items), refs)

Outcome

container.xml points to OEBPS/content.opf. The manifest has three items: two XHTML chapters and one NCX. The spine refers to chapter1 then chapter2; each reference resolves to a present member.

3. Cross-check navigation against the spine

How to use

Sample EPUB Book — Download the named card as sample.epub. Run the Python 3 snippets locally in sequence. They bound ZIP input and declared output, read only the known packaging XML, reject DTD/entities and never extract paths to disk.

nav = read_xml("OEBPS/toc.ncx")
ncx = "{http://www.daisy.org/z3986/2005/ncx/}"
assert nav.find(".//"+ncx+"meta[@name='dtb:uid']").get("content") == identifier.text
points = nav.findall(".//"+ncx+"navPoint")
orders = [x.get("playOrder") for x in points]
targets = [x.find(ncx+"content").get("src") for x in points]
assert orders == ["1", "2"]
assert targets == [items[x] for x in refs]
print(len(points), orders, targets)
z.close()

Outcome

The NCX has two navPoint entries with playOrder 1 and 2. Their chapter targets match the spine order. Check those local names only; do not open chapter bodies or follow external resources.

FAQ

Does a resolved spine prove the book displays correctly?

No. It only verifies references and order in this fixture; fonts, layout and reader behavior were not tested.

Hub

Infer JSON Schema from Samples and Spreadsheets

Derive a reviewable JSON Schema draft from representative JSON samples or XLSX rows, then inspect types, requiredness, nulls, and outliers before treating it as a contract.

Hub

Stream Copy, Remux, and Media Packaging

Inspect streams, remux containers, trim by timestamp, mux tracks, softmux subtitles, embed cover art, and batch rewrap media while preserving source quality.

Hub

One Photo to a Platform-Ready Social Media Image Kit

Turn a single master photo into correctly sized crops for Instagram, TikTok, LinkedIn, and X, preview caption-safe zones, build split grids and collages, and add clearly named styled variants when the channel voice allows them.

Hub

Podcast Episode Audio and RSS Publication Preflight

Check one finished podcast episode against its RSS entry, verify final-file size, type and duration, and separately test public media access and player behavior before publication.

Home
Tools3215
Samples593
Visualizations472
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web194

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact

Document Tools

PDF to EPUB

Convert PDF documents to EPUB e-book format with reflowable content

Media

Batch Image Info Viewer

View basic information for multiple images at once - dimensions, format, file size, and metadata presence

Media

Batch EXIF Viewer

View EXIF metadata from multiple images at once

Media

3D Model Viewer & Inspector

Upload an STL, OBJ, GLB or glTF model: exact vertex/triangle counts, bounding-box dimensions, materials, animations and node tree, plus an interactive Three.js viewer (rotate, zoom, shaded/wireframe/normals).

Media

Audio Metadata Viewer

View all metadata tags of an audio file

Development

Hex Editor (File Viewer)

Upload any binary file and inspect it as a classic hex dump with offset, hex bytes, and ASCII columns (read-only)

Development

Game Save Viewer

Drop any game save file — Minecraft NBT, Unreal Engine GVAS, Palworld containers, JSON/XML/INI/Lua text saves, SQLite profiles — and get the detected format, engine versions, key progress fields and a bounded structural tree.

Document Tools

PDF Code Snippet Viewer

Render code snippets with mono font, background boxes, and clickable Git repository links

Media

UMD Viewer Samples

A UMD e-book sample for in-browser preview

Media

VTT Subtitle Samples

Sample WebVTT subtitle files from simple to complex for subtitle previews, parser testing, conversion, and note handling

Media

ASS Subtitle Samples

Sample ASS subtitle files from simple to complex for style-aware subtitle parsing, translation, conversion, and localization QA

Media

SRT Subtitle Samples

Sample SRT subtitle files from simple to complex for testing import, translation, conversion, and timing-preservation workflows

Media

3DS Viewer Samples

A 3DS 3D model sample for in-browser preview

Media

3MF Viewer Samples

A 3MF 3D model sample for in-browser preview