viewhack

EPUB and FB2 reader

Open an .epub or a FictionBook .fb2 e-book and read it here: the cover and the book's details, its table of contents, and every chapter with the book's own pictures; an FB2's footnotes open under the line that cites them. Previous and next buttons, a text-size control, and light or dark to match your device.

The book is unzipped and read on your device. It is never uploaded.

What it shows

What it cannot do

Useful to know about EPUB files

An EPUB is a ZIP of web pages
Rename book.epub to book.zip and any unzip tool opens it. The first file, mimetype, holds the text application/epub+zip stored uncompressed, which is how readers (and viewhack's front page) recognise the format from its first bytes. META-INF/container.xml points to the package file (.opf), which lists every file in the book (the manifest), the order to read the chapters in (the spine) and the title, author and other details. The chapters themselves are XHTML files with CSS, the same as web pages.
EPUB 2 and EPUB 3
EPUB 2 (2007) has chapters in XHTML 1.1 and its table of contents in a separate toc.ncx file. EPUB 3 (2011; version 3.3 became a W3C Recommendation in 2023) uses HTML5, puts the table of contents in an ordinary HTML page with a <nav> element, and adds audio, video, MathML, fixed layouts and scripting. Many EPUB 3 books also carry a toc.ncx so older readers can show their contents. This page reads both kinds and prefers the EPUB 3 contents when a book has both.
Getting a DRM-free EPUB
Look for “DRM-free” on the shop's page before you buy. Kobo and Google Play Books let you download an EPUB for DRM-free titles; for protected ones you get a small .acsm file instead, which is only a download ticket for Adobe Digital Editions, not the book. Humble Bundle, many small presses and some big publishers sell DRM-free, and Project Gutenberg and Standard Ebooks give away public-domain books as EPUB.
What an FB2 file is
FictionBook 2 is an XML format designed in Russia in the early 2000s and still the standard in Russian-language online libraries. The whole book is one XML file: a <description> with the title, authors, genres, series and publishing details, one <body> with the text as nested <section>s, often a second body named notes for the footnotes, and every picture as a base64 <binary> element at the end, which makes an illustrated FB2 about a third larger than its pictures. It describes structure only (paragraphs, poems, epigraphs, citations), never fonts or layout, so every reader lays it out its own way. Libraries usually ship it zipped as .fb2.zip, because XML text zips to roughly a third of its size.
Why an FB2 can show strange letters
Older FB2 files are often in windows-1251 (sometimes KOI8-R), single-byte Cyrillic code pages, declared in the first line (<?xml version="1.0" encoding="windows-1251"?>). A reader that ignores that line shows “Ãëàâà” or a row of “�” where the book says “Глава” (chapter). This page decodes by the declaration, and by the byte-order mark for UTF-16 files.
Converting in Calibre
Calibre is a free e-book manager for Windows, macOS and Linux. Add a DRM-free MOBI, AZW3, FB2 or DOCX, choose Convert books, set the output format to EPUB, then right-click the book and choose Open containing folder to find the .epub. Calibre refuses to convert DRM-protected files.
Why an e-book can contain a script
EPUB 3 allows JavaScript for interactive books, and a chapter can also point at images or stylesheets on the web. A reader app that shows them tells the other server that the book was opened. Here the chapter frame blocks both, so reading a book makes no request to anyone.

Made with AI tools. · Privacy