Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

ISBN & barcode check digits

Check or work out the check digit of an ISBN, ISSN, ISMN, EAN, UPC or GTIN, convert ISBN-10 and 13, and draw the barcode.


Work out a missing check digit

How to use

  1. Type or paste a book number (ISBN), magazine number (ISSN), printed music number (ISMN) or product barcode number. Spaces, hyphens and a leading “ISBN” are ignored.
  2. The page works out what kind of number it is from its length and first digits, checks the last digit, and shows the other forms: ISBN-10 and ISBN-13, the 977 barcode number of an ISSN, UPC-A as EAN-13, and the 14-digit GTIN. An 8-digit number may be an EAN-8 or an ISSN, so both are shown unless you write the ISSN with its hyphen.
  3. Valid barcode numbers are drawn as a barcode you can save as an SVG picture.
  4. To work out a check digit, type the number without its last digit under Work out a missing check digit. To check many numbers, paste them under Check a list.

Keyboard

TabMove between tabs, boxes and buttons; results update as you type
Enter or SpacePress the focused button (switch tab, check the list, save the barcode)

Tips

  • A check digit catches every single wrong digit, and most swapped neighbours, but it cannot tell you that a number was really issued. Only the issuing agency or the publisher can say that.
  • ISBNs starting 979 (other than 979-0, which is ISMN) have no 10-digit form.
  • The GS1 prefix (the first digits of a product barcode) shows which national GS1 office gave out the company number, not where the product was made.
  • Numbers starting 2 (or 02 and 04 in UPC) are a shop’s own codes, for example for weighed fruit, and mean nothing outside that shop.
  • For printing, keep the barcode at least as large as saved here and leave the white margins on both sides: scanners need them.

About the rules

EAN-13, EAN-8, UPC-A, GTIN-14, ISBN-13, ISMN and the 977 form of an ISSN all use the GS1 modulo-10 check digit: digits are weighted 3 and 1 alternately from the right, and the check digit brings the total up to a multiple of 10. ISBN-10 uses modulo 11 with weights 10 down to 2; ISSN uses modulo 11 with weights 8 down to 2; a remainder of 10 is written X. These rules come from the GS1 General Specifications, the ISBN Users’ Manual, the ISSN Manual and the ISMN Users’ Manual.

ISBN-10 becomes ISBN-13 by adding 978 in front and working out a new check digit. An ISSN goes into a barcode as 977, its first seven digits, two issue digits (00 here) and a new check digit. Old ISMNs written M-xxxx-xxxx-x are read as 979-0-xxxx-xxxx-x.

Only the main ISBN registration groups are named; the full hyphenation of every publisher range needs the ISBN agency’s range list and is not included. Barcodes are drawn to the EAN/UPC symbol pattern (start, centre and end guards, number sets A, B and C). The tests check all the rules against an independent Python version and published examples, and check the barcode number sets against each other.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product