inyourbrowser.com

EAN-13 Barcode Generator

Generate a valid EAN-13 barcode by entering 12 digits. The 13th digit (check digit) is calculated automatically. EAN-13 is the standard barcode for retail products worldwide.

FORMAT
0/12 digits

Enter 12 digits above to generate a barcode

Barcodes generated locally using JsBarcode. All processing runs in your browser.

How it works

The tool computes the check digit before JsBarcode draws the code. It multiplies the 12 digits you enter by 1 and 3 in turn, adds the products and picks the digit that brings the total up to the next multiple of 10. For 978020137962 the weighted sum is 96, so the check digit is 4 and the barcode encodes 9780201379624. JsBarcode then draws the guard bars and both halves of the code into an inline SVG.

Processing runs in your browser

All barcode generation happens locally in your browser tab. Our servers are not involved at any point.

Related operations

To encode URLs or text into scannable squares, try the QR code generator. To read codes back out of an image, use the QR code scanner. For hashing serial numbers before encoding, see the hash generator.

Frequently asked questions

Why do I only enter 12 digits if EAN-13 has 13?
The 13th digit is a check digit calculated from the first 12 using a weighted modulo-10 formula. This tool computes and appends it automatically.
What is EAN-13 used for?
EAN-13 is the standard barcode used on retail products worldwide, groceries, books (ISBN-13), and consumer goods. It is managed by GS1.
Can I get an official EAN-13 barcode for my product?
Official EAN-13 barcodes for retail require a GS1 company prefix, which you purchase from GS1. This tool generates the barcode image, it cannot issue official product codes.
Is my data uploaded to a server?
The barcode is generated using the JsBarcode library running entirely in your browser.

Last reviewed September 30, 2026

Other pages for this tool

Related tools

QR code generator
Generate QR codes for URLs, plain text, or Wi-Fi credentials. Download as PNG or copy as SVG. Runs in your browser.
QR code scanner
Decode QR codes from uploaded images or your webcam. All decoding runs in your browser.
UUID generator
Generate random UUID v4 values in bulk. Uses the browser's crypto API.