Two small fields inside an EPUB cause a surprising share of ebook friction. A reader buys a book that turns out to be declared in a language they cannot read. A librarian catalogues a file with no edition key, so the record can never be matched against anything. Someone tidying a folder finds four copies of the same title and no way to tell whether they are duplicates or four different editions.

Both answers are already inside the file. Every EPUB carries a declared language and a declared identifier, written in when the book was produced. The EPUB Metadata Viewer on Ovatly opens the file locally in your browser and reads those fields aloud, showing "Not stated" for any the file leaves out. This guide covers what each field means, how to check both, and how to use them well.

Contents

  • Quick answer
  • The language field: a short code with a long reach
  • The identifier: the exact key for one edition
  • How to check both fields, step by step
  • Worked example: reading the two fields together
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

Open the file in the EPUB Metadata Viewer and read two lines of the report. The language line shows the declared language code, such as "en" for English. The identifier line shows the edition's formal number, often in a form like urn:isbn:9780000000000. Either line can read "Not stated" if the file never declared it, and the viewer never guesses a value to fill the gap. The file is opened on your device with JSZip, so nothing is uploaded.

The language field: a short code with a long reach

The language field is one of the declarations stored inside the EPUB: a short code that states the language of the book. English books declare "en". Other languages have their own codes, and the code is part of the file's paperwork, fixed when the book was produced.

Checking it before you rely on the book is a ten-second habit with real payoffs. Before a purchase, it confirms the edition on offer declares the language you expect, which matters when the same title sells in several languages with near-identical covers. Before cataloguing, it gives you the language entry straight from the file instead of from your own assumption based on the title, which is exactly how foreign-language editions end up filed as English ones. And because the viewer reports the declaration rather than sampling the text, the answer is the publisher's own statement, quoted faithfully.

The identifier: the exact key for one edition

Titles repeat. Authors repeat. Even publishers repeat across a book's life. The identifier is the one field designed to belong to a single edition: a formal number, often written as an ISBN in URN form, such as urn:isbn:9780000000000. When a file declares one, you hold a key that other systems recognise.

That key does three jobs. In a shop or library catalogue, it matches your file to the catalogue's record for that edition, with no judgement calls about similar titles. In a library you maintain yourself, it is the field your records should be built around, because it stays stable while file names get edited and folders get reorganised. In a duplicate check, it settles the question instantly: same identifier, same declared edition; different identifier, different edition, even if everything else looks alike. Copy it exactly, digit for digit, because a near-match is not a match.

How to check both fields, step by step

  1. Open the EPUB Metadata Viewer and choose the .epub file. The viewer opens it locally in your browser using JSZip; the book never leaves your device.
  2. Find the language line in the report and read the code exactly as shown.
  3. Find the identifier line and copy the full value, including any prefix such as urn:isbn:, character for character.
  4. Check either line for "Not stated". That means the file does not declare the field, and no amount of re-opening will change it.
  5. Use the values: match the identifier against a listing or catalogue record, record the language code in your own notes or library, or compare identifiers across copies to settle a duplicate question.
  6. If the file cannot be opened at all, you get a plain "not a readable EPUB" message, which means the file is corrupt or password-protected.

Worked example: reading the two fields together

Take the example book used throughout this guide. Its full report in the EPUB Metadata Viewer reads:

  • Title: The Example Book
  • Author: Jane Example
  • Publisher: Example Press
  • Language: en
  • Date: 2024-05-01
  • Identifier: urn:isbn:9780000000000

The language line settles one question immediately: this copy declares itself English. The identifier line settles several others. Paste 9780000000000 into a shop or library search and the record that comes back is the record for this edition, not for the hardback, not for a translation. Find a second copy of the file in another folder carrying the same identifier, and you have a true duplicate you can delete with confidence. Find one carrying a different identifier, and you have a different edition that deserves its own place in the library.

Limitations and honest tradeoffs

The viewer reports metadata only. It does not open chapters or check rendering, and it does not sample the book's text to work anything out: the language it reports is the declared code, never an inference. It reads EPUB files only, so Kindle books and PDFs are out of scope, and corrupt or password-protected files return the "not a readable EPUB" message rather than a partial report.

A missing identifier is the biggest practical limit. Plenty of EPUBs are built without one, and then edition matching falls back on the slower combination of title, publisher and date. Finally, declarations are only as accurate as whoever filled them in: a mislabelled language code will be reported faithfully, because the viewer's job is to quote the file, not to correct it.

Common mistakes

  • Judging the language by the title. Titles cross languages untouched. The declared code is the evidence; the title is a guess.
  • Shortening the identifier. Dropping the prefix or a few digits breaks the key. Copy the whole value, exactly as reported.
  • Treating different identifiers as duplicates. Same title and author with different identifiers means different editions. Deleting one loses a book.
  • Reading "Not stated" as an error to fix in the viewer. The gap is in the file. The viewer is reporting it correctly, and the fix belongs to whoever produced the book.
  • Assuming the code grades the translation. The language field names a language. It says nothing about translation quality or completeness of the text.

FAQs

What does the language field in an EPUB actually show? It shows the language code the file declares for itself, a short code such as 'en' for English, written in when the book was produced. The viewer reports the code exactly as declared and never works one out from the text.

What is the identifier, and why does it matter? It is the book's formal edition number, often written in a form like urn:isbn:9780000000000. Because identifiers are assigned per edition, this one value lets you match the file against shop listings, library records and other copies with no ambiguity.

Can I use the identifier to spot duplicate copies? Yes. Two files carrying the same identifier are declaring themselves to be the same edition, which makes the identifier the reliable key for duplicate checks across a folder or a library. Different identifiers mean different editions, even when the title and author match.

What if the language or the identifier says 'Not stated'? It means the file never declared that field, and the viewer reports the gap rather than guessing. The book is not broken; its paperwork is incomplete. For the identifier especially, a missing value means edition matching has to fall back on title, publisher and date.

Does the language code prove the book is written in that language? It proves the file declares that language. Declared metadata is only as accurate as whoever filled it in when the book was built, so for a purchase that hinges on language, treat the code as the declaration and glance at the book itself if anything looks off.

Conclusion

Language and identifier are the two fields that turn an anonymous file into a known edition: one says what language the book declares, the other gives that edition a key the rest of the world recognises. Both take seconds to read in the EPUB Metadata Viewer, and both come with the same guarantee: what the file states, you see; what it omits, you see as "Not stated". When the next question is who published the book and when, our companion guide on verifying an ebook's publisher details before buying the print edition picks up from there. For more in this series, see the File and Data Conversion guides.

References