Home · Learn · What Is a 13-Digit Barcode?
What Is a 13-Digit Barcode?
13 digits, used on retail products everywhere outside North America. The format is EAN-13 — same structure globally, with the first 2-3 digits identifying the country GS1 office that issued it.
A 13-digit barcode is an EAN-13 (European Article Number, 13-digit) — the international retail standard adopted by GS1 in 1976. Japan calls the same format JAN-13. Books use a special form with the 978 or 979 prefix called Bookland EAN. The 13-digit length encodes a GTIN-13: 12 data digits + 1 Mod 10 check digit.
EAN-13 is structurally a UPC-A with a country-code prefix prepended. A US-issued EAN-13 starts with '0' and is functionally identical to a UPC-A with the leading zero dropped. Every modern scanner reads EAN-13 worldwide, including US scanners.
Structure of the 13 digits
Positions 1-3: GS1 country prefix (e.g., 380 Bulgaria, 690-699 China, 978/979 books, 50-509 UK, 84 Spain, 690-699 China, 471 Taiwan, 489 Hong Kong, 450/459/490-499 Japan). Positions 4-N: GS1 Company Prefix assigned by the national GS1 office. Positions N+1 through 12: product reference assigned by the brand owner. Position 13: Mod 10 check digit.
Country prefix examples
Knowing the first 3 digits tells you where the barcode was issued — though not necessarily where the product was made. Common prefixes: 0-019 US/Canada, 30-37 France, 40-44 Germany, 45/49 Japan (JAN), 50 UK, 690-699 China, 84 Spain, 880 South Korea, 950 GS1 Global Office, 977 ISSN (periodicals), 978/979 ISBN (books). The full list covers 100+ ranges across every country and region.
13-digit barcode vs ISBN
ISBN-13 is a 13-digit barcode with mandatory 978 or 979 prefix. Structurally an EAN-13, but the 978/979 prefix signals to scanners and database systems that this code identifies a book, not a generic retail product. The remaining 10 digits encode the publisher, title, and check digit per ISBN-13 specification.
Where you see 13-digit barcodes
Every retail product sold outside the US/Canada. Books worldwide (including in North America). European retail. Asian retail (with Japan also using the JAN designation). All food and beverage manufactured in the EU, UK, China, Japan, Korea. Most products in Latin America and Africa. Many North American manufacturers also issue 13-digit codes for global compatibility.
FAQ
Is a 13-digit barcode an EAN-13?
Yes — a 13-digit retail barcode is almost always an EAN-13 (also called GTIN-13). The Japanese variant is called JAN-13. ISBN-13 for books is also structurally an EAN-13 with 978 or 979 prefix.
Can a US product have a 13-digit barcode?
Yes — US manufacturers can issue EAN-13 codes (e.g., for export, or for newer compliance). A US-issued EAN-13 starts with '0' and converts to UPC-A by dropping that leading zero. Both work at US retail.
How do I tell what country a 13-digit barcode is from?
Look at the first 3 digits. 690-699 = China, 45/49 = Japan, 50 = UK, 84 = Spain, 89 = India, 977/978/979 = books/periodicals. Use upcgen.com/tools/gs1-prefix-lookup to identify any prefix.
Generate a 13-digit barcode?
Use upcgen.com/generators/ean-13. Enter 12 digits and the check digit is appended automatically. For retail use the underlying GTIN-13 must come from a licensed GS1 Company Prefix in your country's GS1 office.
Related generators
Need a real barcode now?
Generate a valid EAN-13 barcode in seconds — no signup, no watermark. Free for casual use; paid plans from $9/mo for higher volume.