I've been googling around for some time but couldn't find absolutely any clue. I have an ebook file in mobi format and would like get the number of locations of this ebook. I want to do it programatically so I could open a bunch of files and get that information in a second.

I was looking for some information about mobi file format, opened the file in a hex editor but I can't see anything useful. Has anyone done that?

  • I haven't tested anything myself, but this discussion might be helpful: mobileread.com/forums/showthread.php?t=159357
    – thinkulum
    Commented Apr 10, 2019 at 13:18
  • WHat is "the number of locations of this ebook" the number of placenames it mentions?
    – mmmmmm
    Commented Apr 20, 2019 at 16:35
  • No, it's an equivalent of number of pages of a traditional, paper book. It can be displayed at the bottom of a screen.
    – mate00
    Commented Apr 21, 2019 at 4:18

1 Answer 1


Number of locations isn't in the metadata of a book file, it's the Kindle's calculation based off the book length. That thread mentioned give's some guesses about what the calculation is, but they still appear to be guesses. Theoretically, if you know the formula you can just create a simple program in Excel, enter the variables for each book, and get your answers.

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.