ISBN Converter: ISBN-10 to ISBN-13 and Back, With Check Digits
By FindMySum · Last reviewed
An ISBN converter turns a 10-digit ISBN into its 13-digit form and back, and checks that the last character, the check digit, is right. Every book number has one: a character worked out from the other digits so that a mistyped number can be spotted before an order goes to the wrong title. This page shows both rules digit by digit and runs in your browser. The worked example uses the default, 978-92-95055-12-4, the example the International ISBN Agency prints in its own manual.
Two kinds of ISBN
From 1970 until the end of 2006, ISBNs had 10 characters. In 2007 the standard (ISO 2108) moved to 13 digits so that book numbers would fit the worldwide retail barcode system run by GS1. The trick was simple: put 978, a prefix GS1 had set aside for books, in front of the old nine digits and calculate a new check digit with the barcode rule. When the 978 range began to fill up, a second prefix, 979, was opened. Numbers in the 979 range were never issued in 10-digit form.
| Form | Length | Check rule | Last character |
|---|---|---|---|
| ISBN-10 | 10 | weights 10 down to 2, modulo 11 | 0–9 or X |
| ISBN-13 | 13 | weights 1 and 3, modulo 10 | 0–9 |
Worked example: the ISBN-13 check digit
Take the first twelve digits of the default, 978929505512. Multiply them alternately by 1 and 3, starting with 1 on the left:
- 9 × 1 = 9, 7 × 3 = 21, 8 × 1 = 8, 9 × 3 = 27, 2 × 1 = 2, 9 × 3 = 27
- 5 × 1 = 5, 0 × 3 = 0, 5 × 1 = 5, 5 × 3 = 15, 1 × 1 = 1, 2 × 3 = 6
The products add up to 126. The remainder after dividing by 10 is 6, and 10 − 6 = 4, so the check digit is 4 and the full ISBN is 978-92-95055-12-4, as the manual says. When the remainder is 0 the check digit is 0, not 10.
Worked example: the ISBN-10 check character
To get the ISBN-10, drop the 978 and keep the next nine digits, 929505512. Multiply them by 10, 9, 8 and so on down to 2:
- 9 × 10 = 90, 2 × 9 = 18, 9 × 8 = 72, 5 × 7 = 35, 0 × 6 = 0
- 5 × 5 = 25, 5 × 4 = 20, 1 × 3 = 3, 2 × 2 = 4
The sum is 267. Divided by 11 that leaves 3, and 11 − 3 = 8, so the ISBN-10 is 92-95055-12-8. A remainder of 0 gives a check character of 0; a result of 10 is written as X, because the check has to fit in one position.
Converting, step by step
ISBN-10 to ISBN-13: remove the last character, put 978 in front, and calculate the ISBN-13 check digit. For 0-306-40615-2 that gives 978-0-306-40615-7.
ISBN-13 to ISBN-10: only possible when the number starts with 978. Remove the 978 and the last digit, then calculate the mod 11 check character for the nine digits left. A 979 ISBN, such as 979-10-90636-07-1, has no ISBN-10.
The converter keeps whatever hyphen grouping you type. Hyphens separate the prefix, the registration group (a country or language area), the publisher and the title, and their lengths vary: placing them on a bare number needs the agency's range table, which the converter does not load.
What the check digit catches
The ISBN-10 rule is unusually strong: because 11 is a prime number and every position has a different weight, it catches every single wrong digit and every swap of two digits, adjacent or not. That strength is why the old system tolerated the odd X.
The ISBN-13 rule is the GS1 barcode rule, also used on every UPC and EAN product code; the GTIN check digit calculator covers those numbers. It catches every single wrong digit but misses a swap of two neighbouring digits that differ by 5, such as 1 and 6, because 1 × 3 + 6 × 1 and 6 × 3 + 1 × 1 both end in 9. Barcode scanners make that error rare in practice.
Common mistakes
- Keeping the old check digit. Adding 978 to a full ISBN-10 gives a 13-digit number with the wrong check digit; it has to be recalculated.
- Treating X as a typo. An X at the end of an ISBN-10 is a valid check character. It never appears in an ISBN-13.
- Converting a 979 number. There is no ISBN-10 for it, and any tool that produces one is wrong.
- Assuming a valid number is a real book. The check only proves the number is well formed. Library catalogues and book trade databases tell you whether a title exists.
The same mod 11 idea, with weights 8 down to 2, still protects the ISSN, the number given to journals and magazines, and the Luhn algorithm on the Luhn calculator protects card numbers in a similar way with doubling instead of weights.
More questions
Which ISBN should I print on a new book?
The ISBN-13. Since 1 January 2007 every ISBN is assigned and printed as 13 digits, and the EAN-13 barcode on the cover encodes exactly that number. Some older catalogues and library systems still show the ISBN-10 as well, which is why converting between the two remains useful.
Do the e-book and the paperback share an ISBN?
No. The ISBN Users' Manual asks for a separate ISBN for each format a publication is sold in: hardback, paperback, EPUB, PDF and audiobook each get their own. The check digit rule is the same for all of them.
Can I convert an ISBN to a barcode number for a shop system?
An ISBN-13 already is a barcode number (a GTIN-13), so it can be entered as it is. Some systems want 14 digits: add a leading zero, which does not change the check digit.
What does the 92 in 978-92-95055-12-4 mean?
It is the registration group: 92 is used by international organisations, which is why the International ISBN Agency's own manual carries it. Most groups stand for a country or a language area, such as 0 and 1 for English-speaking countries and 2 for French-speaking ones.
Why does my ISBN-10 not end in the same digit as the ISBN-13?
Because the two check digits come from different rules. The ISBN-10 uses weights 10 to 2 and modulo 11; the ISBN-13 uses weights 1 and 3 and modulo 10, over a number that also includes the 978 prefix. Only the nine digits in the middle stay the same.
Sources
- International ISBN Agency: ISBN Users' Manual, 7th edition (2017), Appendix 1, Check digit calculation
- International ISBN Agency: ISBN Users' Manual, 4th edition, §4.4 Check digit (ISBN-10, modulus 11 with weights 10-2; agency site archived 2004-12-06)
- Library of Congress: ISSN check digit calculation (the modulus 11 method shared with ISBN-10)
- GS1 General Specifications: standard check digit calculation (§7.9.1)
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.