I have a decent amount of experience creating epub files and converting them to .mobi using Kindlegen or Amazon Kindle Previewer 3 for self publishing on KDP. I'm looking to add the "real page numbers" feature to a book (this is useful in textbooks because people still tend to like to reference page numbers when citing). Amazon rolled out this feature in 2011, but I can find no current or relevant information for how to do this, other than general guidance that Kindle references an embedded ".apnx" file to identify the page numbers. Can anyone point me in the right direction?

1 Answer 1


KindleGen supports both NCX pagelists and ADE page-maps. I.e., you'll have to add a pagelist/page-map and you'll also have to add page target markers in the (X)HTML files.

Note that the official Amazon tools won't generate APNX files. However, KindleUnpack can generate them from a mobi file generated by KindleGen.

You could also generate KFX files with the unofficial KFX plugin. When transferred to an eInk device, the firmware will automatically generate the APNX files.

  • Thanks so much, this does help. A point of clarification, is there any purpose to using Kindleunpack or creating a KFX file other than personal use/testing the book? As I understand it from reading these forums, Amazon will deliver a KFX file when the book is purchased and downloaded by a reader... Or did I misinterpret?
    – b_q
    Commented Sep 2, 2018 at 2:48
  • You don't need to use the unofficial tools. However, since the official Amazon tools don't generate APNX files for testing, it's the only way to preview embedded page numbers, unless you generate an epub3 book and preview it with iBooks.
    – user4665
    Commented Sep 2, 2018 at 4:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.