Skip to main content

Converting Between ISBN-10 and ISBN-13: The 978 Prefix and Check Digit, Explained

How to convert an ISBN-10 to an ISBN-13 and back: prepend 978, recompute the check digit, handle the X and 979 cases, and keep library records clean.

Published By Li Lei
#isbn #book-metadata #cataloging #converters

Converting Between ISBN-10 and ISBN-13: The 978 Prefix and Check Digit, Explained

If you have ever stared at two versions of the same book's number and wondered why they end in different characters, you already understand the small mystery this post solves. An ISBN-10 and an ISBN-13 point to the same title, yet the last character almost never matches. The reason is not a typo or a publisher's whim. The two formats run different arithmetic, and turning one into the other means recomputing that final character from scratch.

This is a practical walkthrough of what actually happens during the conversion, the rule about the 978 prefix, the odd letter X, and why a 979 number stubbornly refuses to become an ISBN-10.

Why Two ISBN Formats Exist

ISBN-10 was the standard for decades. It is ten characters: nine that identify the registration group, publisher, and title, plus one check character at the end. As the book trade folded into the global retail barcode system, the industry moved to ISBN-13, which is a valid EAN-13 barcode. On January 1, 2007, ISBN-13 became the official form, and every new ISBN-10 that existed was reissued with a thirteen-digit twin.

The bridge between the two is a prefix borrowed from a fictional country code: 978, nicknamed Bookland. Every ISBN-10 maps to a 978 ISBN-13. When the 978 range started filling up, registrars opened a second prefix, 979. That detail matters later, because it is the one case where conversion has no answer.

The Core Rule: Prepend 978, Then Recompute the Check Digit

Here is the part people get wrong most often. To convert an ISBN-10 to an ISBN-13, you do not keep the whole ten-digit number and slap 978 in front. You take only the first nine digits, the body, and discard the old check character entirely. Then you prepend 978 and compute a brand-new check digit using the ISBN-13 formula.

The two formulas are genuinely unrelated:

  • ISBN-10 weights its nine body digits by 10, 9, 8, down to 2, sums them, and takes the remainder modulo 11. The check value can land anywhere from 0 to 10. When it hits 10, there is no single digit for it, so the standard writes the Roman numeral X.
  • ISBN-13 treats the number as an EAN-13 barcode. The twelve body digits are weighted alternately by 1 and 3, summed, and the total is taken modulo 10. The check digit is always a plain 0 through 9, so ISBN-13 never uses X.

Same book, two different sums, two different remainders. That is why the trailing character shifts during a conversion, and why blindly copying the old one corrupts the result.

A Worked Example, Digit by Digit

Let me take the classic textbook ISBN-10 0-306-40615-2 all the way to its ISBN-13.

  1. Strip the hyphens: 0306406152.
  2. Keep the first nine digits, the body: 030640615. Throw away the trailing 2; it was a check character for the old format.
  3. Prepend 978: 978030640615. That is twelve digits.
  4. Compute the EAN-13 check digit. Weight each digit by 1 and 3 alternately:
  • 9×1 + 7×3 + 8×1 + 0×3 + 3×1 + 0×3 + 6×1 + 4×3 + 0×1 + 6×3 + 1×1 + 5×3
  • = 9 + 21 + 8 + 0 + 3 + 0 + 6 + 12 + 0 + 18 + 1 + 15 = 93
  1. The check digit is whatever you add to reach the next multiple of 10. 93 rounds up to 100, so the check digit is 7.

Result: 978-0-306-40615-7. Notice the ending flipped from 2 to 7. Run it back the other way and you strip the 978, keep 030640615, recompute the mod-11 check character, and recover the original 2. The round trip is exact, which is exactly what a library record needs.

I built the ISBN-10 to ISBN-13 converter after doing this arithmetic by hand one too many times while reconciling a donated-book spreadsheet. The first time I tried to script it myself, I forgot to drop the tenth digit and produced a list of numbers that all failed validation. Watching the tool recompute the check digit and show the readable hyphenated form side by side turned a fiddly half-hour into a paste-and-copy job.

The X and the 979 Trap

Two edge cases catch almost everyone.

The X is not optional and it is not a zero. When an ISBN-10 check value works out to 10, the last position is the letter X, as in 0-8044-2957-X. It is part of the number. Delete it or read it as 0 and the validation fails and the conversion back from ISBN-13 breaks. Always copy the whole value, X included.

A 979 ISBN-13 has no ISBN-10. The 979 prefix was opened only after the 978 range ran out, so titles registered under 979 were never assigned a ten-digit form. There is no math that produces a real ISBN-10 from 979-12-200-0000-X. Any tool that hands you one fabricated it. A correct converter detects the 979 prefix and tells you plainly that no ISBN-10 exists, rather than inventing a number that will fail at the till.

Where This Matters: Cataloging and Book Metadata

In library and retail systems, the conversion is rarely academic. A catalog stored a book under its ISBN-10 ten years ago, and the new shipment carries only an ISBN-13 sticker. Converting the 978 code back to its ISBN-10 lets the two records line up so the copy merges into the existing holding instead of spawning a phantom duplicate.

Marketplaces add another wrinkle. For books, the legacy ISBN-10 often doubles as the Amazon ASIN, so affiliate links and product lookups still key on it even when your supplier feed only ships ISBN-13. And when a cover is going to print, the back-jacket barcode must encode the EAN-13, so an author who supplies an ISBN-10 needs it converted before the artwork is finalized. Once you have the correct thirteen-digit number, you can pass it straight to a barcode generator and confirm the printed code matches the catalog record.

Whatever the workflow, the same discipline holds: strip the formatting, keep nine body digits, swap the prefix, and recompute the check digit. Get those four steps right and the ISBN-10 and ISBN-13 forms of a book will always reconcile.


Made by Toolora · Updated 2026-06-13