EPUBCheck messages explained, and Kindle Previewer

Two checks, two different jobs

An EPUB can pass one check and fail the other, so run both.

Tool What it answers Made by
EPUBCheck Is the file built correctly? Are the files, links and structure valid? W3C
Kindle Previewer How will it look on a Kindle, a phone and a tablet? Amazon

The five levels of message

EPUBCheck gives every message a level. Start at the top and work down.

Level What it means What to do
Fatal EPUBCheck could not carry on reading the file Fix first. Nothing below it can be trusted until this is gone
Error The file breaks the EPUB rules Fix before you upload
Warning Something may cause a problem Read it and decide
Usage Information about how a feature is used Usually no action
Info A hint, often about accessibility Optional

By default, the command-line tool reports a failure only when it finds errors. A file with warnings alone still passes, unless you ask EPUBCheck to treat warnings as failures.

Common messages and what they usually mean

These are real EPUBCheck codes from the W3C message list. The explanations are what each one usually points to in practice.

Code Level EPUBCheck says What it usually means
PKG-015 Fatal Unable to read EPUB contents The file is damaged or is not a valid EPUB package. Export it again
RSC-005 Error Error while parsing file A page of the book has markup the validator cannot read. The message names the file and the line, so start there
RSC-007 Error Referenced resource could not be found in the EPUB A link or image points to a file that is not in the package. Check the file name, its capital letters and its folder
RSC-020 Error Not a valid URL A web link is mistyped, with a space or a missing part
OPF-010 Error Error resolving reference The same kind of problem inside the package list: something refers to a file it cannot find
OPF-003 Usage Item exists in the EPUB, but is not declared in the manifest A leftover file is in the package. Remove it or export again

Always read the file name and line number in the message. They tell you where to look.

Kindle Previewer

KDP’s help page says Kindle Previewer shows you how your ebook will look before you publish it. For reflowable books it also shows the Enhanced Typesetting improvements. Opening an EPUB in it converts the file, and when the conversion finishes you can preview the book.

Check these in it:

  • The cover and the first pages.
  • The table of contents, tapped on a real link.
  • Chapter openings and headings at a large and a small text size.
  • Tables and images on a phone-sized screen.
  • The e-reader view. KDP notes that e-reader mode shows the book in greyscale, while tablet and phone modes show colour.

KDP also has an Online Previewer inside your account, which shows the book on different devices and can flag low-quality images and spelling.

KDP online previewer showing a chapter opening on a Kindle e-reader screen: the chapter number, a three-line title and the first lines with a drop capital.

A chapter opening in KDP’s Online Previewer on the Kindle e-reader view. Check the heading and the drop capital at this size.

KDP online previewer showing the cover of a memoir on a Kindle, with the quality panel open on the right.

The cover view, with the quality panel open on the right.

A check order that works

  1. Run EPUBCheck. Fix every fatal and error message.
  2. Open the EPUB in Kindle Previewer. Fix what looks wrong.
  3. Run EPUBCheck again after every change.
  4. Upload to KDP and use the Online Previewer once more.
An email from Kindle Direct Publishing with the heading Your book is available in the Kindle Store.

The last step: the email KDP sends when the Kindle edition is live.

Print files have their own checks. The numbers are in KDP paperback requirements: every number in one table

Short answers

Is EPUBCheck official? Yes. It is the W3C’s validator for EPUB files.

Do warnings stop an upload? Not by themselves. Read each one, and fix any that point to a real problem.

Is a pass in EPUBCheck enough for Kindle? No. It proves the file is built correctly, not that it looks right. Preview it in Kindle Previewer.

When to hand it over

TintaPress produces Kindle and EPUB editions from the typeset book and checks each one in Kindle Previewer and EPUBCheck before delivery. See ebook and Kindle. If a store or KDP has rejected your EPUB, send us the file and the message: file repair.

More guides

  • Why do you feel flat after publishing your book?Many authors feel flat, tired or low in the weeks after a book comes out, and several say they did not expect it.
  • Laying out a magazine in Affinity, step by stepTo lay out a magazine in Affinity, plan the page count in multiples of 4 for saddle stitch, set the bleed your printer asks for, work in CMYK, flow the text through linked frames, run Preflight, and export a press-ready PDF that includes bleed.
  • Print-ready PDF for KDP: checks before you uploadBefore you upload a paperback PDF to KDP, check the page size with bleed, the margins for your page count, embedded fonts, images of at least 300 DPI, lines no thinner than 0.75 point, no hidden objects or placeholder text, and a page count that matches the manuscript.

Your first pages, typeset free

Send your manuscript and see your own pages set before anything is agreed. Every book gets a fixed written quote before any work starts.

BeforeThe manuscript in Word
AfterThe same chapter, typeset
Beyond the Boda Boda Dust, typeset: a chapter opening with an acacia tree drawing, and the first page of text with a running head