Introduction
Need to validate an ISBN-13 or compute its check digit? This ISBN-13 checksum tool handles both tasks instantly in your browser. Booksellers, librarians, and developers working with book data can paste any 13-digit ISBN to verify its EAN check digit, or enter the first 12 digits to generate the correct check digit using the mod-10 algorithm with alternating weights of 1 and 3. No data leaves your browser.
What this tool does
- Validates whether a 13-digit ISBN passes the EAN-13 mod-10 checksum with alternating weights of 1 and 3.
- Generates the correct ISBN-13 check digit from the first 12 digits, producing the full valid ISBN-13.
- Strips hyphens and spaces automatically before computation.
- Reports both the provided check digit and the expected check digit for easy error identification.
- Runs entirely client-side with no network requests.
How this tool works
Select Validate mode and paste a full 13-digit ISBN (hyphens and spaces are ignored). The tool multiplies each digit by 1 or 3 alternately (starting with 1 for the first digit), sums the products, and checks whether the check digit (the 13th digit) makes the total a multiple of 10. It reports VALID or INVALID and shows both the provided and expected check digits. Switch to Generate mode and enter the first 12 digits. The tool computes (10 - (sum mod 10)) mod 10 and displays the check digit along with the full ISBN-13. The Swap button toggles between modes.
How the ISBN-13 check digit works
The ISBN-13 check digit algorithm is identical to the EAN-13 barcode check digit algorithm. Each of the first 12 digits is multiplied by a weight that alternates between 1 and 3, starting with 1 for the first digit. The check digit is chosen so that the sum of all 13 weighted digits is a multiple of 10. Formally, if x_i is the ith digit, then x_13 must satisfy: x_1 + 3*x_2 + x_3 + 3*x_4 + ... + 3*x_12 + x_13 is congruent to 0 mod 10. The check digit is always 0-9 (never X, unlike ISBN-10). The ISBN-13 standard was adopted to bring ISBNs into alignment with the EAN-13 barcode system used internationally for retail products. Since January 1, 2007, all ISBNs assigned are 13 digits. Existing ISBN-10s can be converted to ISBN-13 by prepending 978 (the Bookland country code for books) to the first 9 digits and recalculating the check digit. A second prefix, 979, has been assigned for use when the 978 prefix space is exhausted. According to the International ISBN Agency's user manual, the ISBN-13 check digit system does not catch all adjacent transposition errors (unlike ISBN-10's mod-11 system), because the alternating 1/3 weights cannot distinguish certain digit swaps. This is a known trade-off for compatibility with the EAN-13 standard.
How to use this tool
- Select Validate or Generate mode using the buttons in the settings panel.
- In Validate mode, paste the full 13-digit ISBN. Hyphens and spaces are stripped automatically.
- Read the result: VALID means the check digit is correct. INVALID means it is not, and the tool shows what the check digit should be.
- In Generate mode, enter the first 12 digits of the ISBN-13.
- The tool displays the computed check digit (0-9) and the full ISBN-13.
Real-world examples
Validating a real ISBN-13
Input: 978-0-306-40615-7. The tool strips hyphens, computes 1*9 + 3*7 + 1*8 + 3*0 + 1*3 + 3*0 + 1*6 + 3*4 + 1*0 + 3*6 + 1*1 + 3*5 = 9+21+8+0+3+0+6+12+0+18+1+15 = 93. Check digit 7 gives 93+7 = 100, which is a multiple of 10. The tool reports VALID.
Generating a check digit
Input: 978030640615 (12 digits). The tool computes the alternating weighted sum and determines the check digit is 7, displaying the full ISBN-13: 9780306406157.
Converting from ISBN-10 to ISBN-13
ISBN-10: 0-306-40615-2. Drop the check digit (2), prepend 978 to get 978030640615, then compute the ISBN-13 check digit (7) to get 978-0-306-40615-7. The check digits differ because the two algorithms use different weights and moduli.
Comparison with similar methods
| Method | Complexity | Typical use |
|---|---|---|
| ISBN-13 (mod-10, weights 1/3) | O(n), alternating weighted sum | ISBN-13 and EAN-13 barcodes |
| ISBN-10 (mod-11, weights 10 to 1) | O(n), weighted sum | Pre-2007 ISBNs, catches all transpositions |
| Luhn (mod-10) | O(n), double every other digit | Credit cards, IMEI |
| EAN-8 (mod-10, weights 1/3) | O(n), alternating weighted sum | Short-form EAN barcodes for small products |
Limitations or considerations
This tool only handles ISBN-13 (13 digits). For ISBN-10 (10 characters), use the ISBN-10 Checksum tool. The tool does not verify that the ISBN-13 has been assigned to a real book. It only checks the mathematical validity of the check digit. The ISBN-13 check digit algorithm does not catch all adjacent transposition errors, unlike the ISBN-10 mod-11 algorithm. Specifically, swapping two adjacent digits where one has weight 1 and the other has weight 3 may not always be detected if the difference is a multiple of 10.
Frequently asked questions
Why does ISBN-13 never end in X?
The ISBN-13 check digit algorithm uses mod-10, which always produces a value from 0 to 9. The X check digit only appears in ISBN-10, which uses mod-11 and can produce a value of 10. ISBN-13 was designed to be compatible with EAN-13 barcodes, which only use numeric digits.
How do I convert an ISBN-13 back to ISBN-10?
Only ISBN-13s starting with 978 can be converted back. Drop the 978 prefix and the ISBN-13 check digit, then compute the ISBN-10 check digit using mod-11. ISBN-13s starting with 979 do not have an ISBN-10 equivalent.
What is the difference between ISBN-13 and EAN-13?
ISBN-13 is a subset of EAN-13. All ISBN-13s are EAN-13 barcodes, but not all EAN-13s are ISBNs. ISBN-13s start with 978 or 979 (the Bookland prefix), while other EAN-13s use different country or product prefixes.
Can this tool validate EAN-13 barcodes for non-book products?
Yes. The ISBN-13 check digit algorithm is identical to the EAN-13 algorithm. You can paste any 13-digit EAN-13 barcode number and the tool will validate its check digit, regardless of whether it is an ISBN.
Conclusion
This ISBN-13 checksum tool provides instant validation and check-digit generation for 13-digit ISBNs and EAN-13 barcodes. It handles hyphens and spaces, reports both provided and expected check digits, and runs entirely in your browser. Booksellers, librarians, and developers can use it to verify ISBNs without any server-side processing.