EAN Validator
Check whether text is a valid EAN as you type it, right in your browser, without sending it anywhere.
Input
Output
No value
Guide
What is an EAN?
An EAN (European Article Number) is the number printed under the barcode on almost everything sold in shops: groceries, books, toys, garden tools. GS1, the organization behind retail barcodes, now calls it a GTIN. The usual form, EAN-13, has 13 digits. The first two or three are a GS1 prefix, then come the company's number and the product's number, and the last digit is a check digit worked out from all the others. Small packs carry the shorter EAN-8, and cartons and pallets in warehouses use 14-digit numbers (GTIN-14).
Online sellers and shop owners check EANs when they list products on a marketplace, import a catalog or print shelf labels, because one mistyped digit points to another product or to none at all.
Tool description
Type or paste the digits into the EAN field, and the result shows as you type: "EAN is valid" or "EAN is not valid". Spaces and line breaks around the number are ignored. The page has no settings: it takes 8, 13 and 14 digits and tests the check digit of each.
How the check digit works
Start at the digit just before the check digit and move left, multiplying the digits by 3 and 1 in turn. Add up the results: the check digit is the number from 0 to 9 that brings the total up to a multiple of 10. This catches every single wrong digit and most swaps of two neighboring digits.
What passes and what fails
- 8, 13 or 14 digits with the right check digit
- Book numbers (ISBN-13), which start with 978 or 979, and magazine barcodes starting with 977: both are EAN-13 numbers
- A 12-digit UPC-A from a North American product fails as it is, but passes with a 0 in front, which is how it reads as an EAN-13
- Spaces or hyphens between the digits fail, even though the digits under a barcode are often printed in groups
- Any other number of digits, letters, or a wrong check digit fail
Good to know
- The check covers the form and the check digit only. It can't tell whether a product with that number exists or who sells it.
- The prefix shows which national GS1 office handed out the number, not where the product was made. To see the office behind a prefix, use the Barcode Country Identifier.
- For book numbers, the ISBN validator and parser also checks the older 10-digit ISBNs.
Features
- Checks EAN-13, EAN-8 and 14-digit GTINs
- Tests the check digit, not just the length
- Results as you type, with no button to press
- Runs in your browser, so nothing you type is sent anywhere