HohoTools

EAN-13 Barcode Generator

This free EAN-13 barcode generator creates the standard 13-digit retail barcode used on consumer packaging worldwide.

How to use

  1. Enter the 12 digits of your number — the 13th check digit is computed automatically — or paste all 13 digits to have them verified.
  2. Adjust the options if needed: module width scales the bars, bar height sets the overall height of the code.
  3. Click Download to save the SVG for print or the PNG for screens; both files are generated on your device.
  4. Scan-test the downloaded image before using it in a layout, and remember it is a test code unless your company prefix is GS1-licensed.

Frequently asked questions

How does the 13th check digit work?

The first 12 digits are weighted 1,3,1,3,… from the left and summed. The check digit is the amount needed to reach the next multiple of 10. Enter 12 digits and the tool appends it automatically; enter 13 digits and the final digit is verified, with the expected value shown in the error if it mismatches.

Can I put this barcode on a real product?

No — and we say so plainly. Retail barcodes must carry a GS1 prefix licensed to your company, and the number has to be assigned in your GS1 system. Use this tool for structurally valid test codes: mockups, coursework, shelf-layout trials and internal label tests. For actual trade items, obtain numbers from GS1 first, then generate them here for the artwork.

Why does my 13-digit number fail to render?

Almost always a wrong check digit — one transposed or mistyped digit among the first twelve. The error message shows the expected final digit, so you can compare and correct the input. The generator refuses to draw a barcode whose check digit is wrong, because it would scan as a different, unintended number.

What is the quiet zone?

The blank margin on both sides of the bars. The EAN-13 specification requires at least 11 modules on the left and 7 on the right; this tool keeps 11 on both sides, exceeding the minimum, and already includes the quiet zone in the SVG and PNG. Keep it clear when placing the code — text, borders or dark backgrounds touching the bars are the most common reason packaged codes refuse to scan.

Should I download SVG or PNG?

SVG is vector-based and stays perfectly sharp at any print size, which makes it the right choice for packaging drafts and label templates. PNG is a fixed-resolution bitmap rendered at three times the on-screen size — handy for slides, documents and quick sharing.

Related tools

About this tool

This free EAN-13 barcode generator creates the standard 13-digit retail barcode used on consumer packaging worldwide. Type the first 12 digits and the tool computes the thirteenth check digit for you, or paste all 13 digits and it verifies the last one before rendering — a mismatch is reported immediately together with the correct value, so a typo never turns into a silently invalid barcode. The preview updates as you type, and you can download a print-ready SVG or a screen-friendly PNG. The output follows the published EAN-13 drawing rules exactly: 95 modules with guard patterns, the L/G/R digit encodings selected by the first digit, and the mandatory quiet zone of eleven modules on each side, so the downloaded file scans like any packaged barcode. Two options control module width and bar height. One honest limitation: real retail barcodes carry a GS1 company prefix that must be licensed — this generator produces structurally valid test codes for mockups, coursework, inventory trials and label layout, not registered trade items. Everything runs locally in your browser: no uploads, no accounts, no watermarks, no tracking.