Skip to content

Barcode Generator

Make EAN-13, UPC-A and Code 128 barcodes as PNG or SVG.

What you enter never leaves your device.

Retail EAN and UPC numbers must come from GS1 (or your national GS1 office) so that they are unique worldwide. This tool only draws the barcode for a number you already have; it does not issue or register numbers.

12 digits (the check digit is added) or all 13 digits (the check digit is verified).

Appearance

Size: 100 % of the nominal EAN/UPC size (0.33 mm modules).

Quiet zones (the blank margins) are added as the specification requires. Keep them free of text and graphics.

Encoded number with check digit: 4006381333931

Print size: 37.3 × 27.6 mm. PNG: 452 × 334 px at 300 dpi.

The PNG uses whole pixels per bar, so its modules are 0.339 mm when printed at 300 dpi. The SVG keeps the exact size.

How it works

Set the options and the result is created instantly in your browser, using its built-in secure random generator. Nothing you enter or create is sent to a server.

Frequently asked questions

Can I put these barcodes on products I sell in shops?
Only with a number from GS1. Retailers and marketplaces expect EAN and UPC numbers that come from a GS1 company prefix, so that no two products share a number. This tool draws the barcode for a number you already have; it does not issue numbers. For your own stock, assets or library labels you can use Code 128 or Code 39 freely.
What is the difference between EAN-13 and UPC-A?
UPC-A has 12 digits and is used mainly in the USA and Canada; EAN-13 has 13 digits and is used in most other countries. A UPC-A code is the same as an EAN-13 that starts with 0, and scanners around the world read both.
Is the check digit added automatically?
Yes. For EAN-13 enter 12 digits, for EAN-8 enter 7 and for UPC-A enter 11, and the check digit is calculated. If you enter the full number, the last digit is checked and you see the correct one if it is wrong. Code 128 always contains its own checksum; for Code 39 it is optional.
What size should I print an EAN-13 barcode?
The nominal size is about 37.3 × 25.9 mm including the margins, with a module (narrowest bar) of 0.33 mm. GS1 allows 80 to 200 % of that. Do not cut the blank margins, avoid making the bars much shorter, and print the SVG at 100 % scale.
Should I download SVG or PNG?
SVG is a vector file with the exact millimetre size, ideal for print shops and design programs. PNG suits office printers and label software: choose 300 dpi for normal labels and 600 dpi for small codes. Always test a printed code with a scanner or phone before printing many.

Related tools