Skip to content

Understanding Document File Formats: A Plain-English Guide

What is inside an EPUB, a DOCX or a CBZ? Why do some files reflow and others do not? A clear introduction to common reading formats.

File extensions such as .pdf, .epub and .docx tell your computer what kind of data a file contains. For reading, the most important question is whether a format describes appearance or structure.

Formats that describe appearance

PDF stores the exact position of every letter, line and image on a fixed page. CBZ comic archives store each page as an image. These formats look identical everywhere but cannot adapt to small screens except by zooming.

Formats that describe structure

EPUB, DOCX, ODT, FB2, HTML and Markdown describe the structure of the text: this is a heading, this is a paragraph, this word is emphasised. The reader decides how it looks, which is why you can change fonts and spacing.

Many formats are ZIP files in disguise

EPUB, DOCX, ODT and CBZ files are ZIP archives with a particular internal layout. An EPUB contains XHTML chapters, a stylesheet, images and a package file listing the reading order. A DOCX contains XML describing paragraphs and styles. A CBZ simply contains numbered images.

Plain text is the most durable

TXT files contain only characters, with no formatting. They are tiny, readable by any device made in the last fifty years, and perfect for long-term archiving. The challenge is the character encoding: older files may use Windows-1252 or other encodings instead of UTF-8, which can turn accented letters into gibberish. PageFlow detects the most common encodings automatically.

Markdown: plain text with light structure

Markdown adds simple symbols to plain text — # for headings, * for emphasis, – for lists — so a file stays readable as text but can also be displayed with formatting.

Kindle formats

MOBI and AZW3 are formats associated with Amazon Kindle. Files bought from the Kindle store are usually protected with DRM. PageFlow does not currently open MOBI or AZW3; DRM-free files can be converted to EPUB with free tools such as Calibre.

Choosing a format to keep

For books you want to keep for decades, DRM-free EPUB and PDF are the safest choices: both are open standards with many independent readers. For your own notes and writing, plain text and Markdown are hard to beat.