Barcode generator

Code 128, EAN-13, UPC… downloadable as PNG.

Creating a barcode

Enter the value, choose the format, and the barcode appears immediately. Download it to print or insert into a document.

Which format should you choose?

FormatAccepted contentTypical use
Code 128Letters, digits and symbolsGeneral use, internal labels, parcels
EAN-1313 digitsRetail products (Europe and worldwide)
UPC12 digitsRetail products in North America
Code 39Capital letters, digits, a few symbolsLogistics, industry, badges
ITF-1414 digitsCartons and pallets of goods

For internal use, such as inventory, a library or labelling items, Code 128 is the most flexible and compact.

The check digit

EAN-13, UPC and ITF-14 codes end with a check digit: a number calculated from the others, which lets the scanner detect a misread. For an EAN-13, enter the first 12 digits and the 13th is calculated; if you enter 13, the last one must be the correct check digit, otherwise the code is rejected.

An important point about EAN codes

An EAN or UPC code for retail sale cannot be made up: it must be assigned by GS1, the organisation that manages these numbers in each country. That is what guarantees no other product in the world carries the same code. Retailers and marketplaces check this assignment. Toolo draws the barcode for a number; it does not supply an official number.

Getting the print right

How to get a barcode for your product

A barcode is two separate things: a number and the image of that number. The generator above draws the image. The number has to come from GS1 as soon as the product is sold in shops or on a marketplace.

  1. Join GS1 in the country where your business is based (GS1 US, GS1 UK and so on). Membership is paid and gives you a company prefix.
  2. Number your products: each item, variant and pack size gets its own number (GTIN), printed as an EAN-13 or a UPC.
  3. Draw the barcode: enter the first 12 digits of an EAN-13 here, the check digit is calculated, then download the image.

The prefix is not the country of manufacture

The first 3 digits identify the GS1 member organisation that issued the number, not the country where the product was made. An item made in Asia for a German brand that belongs to GS1 Germany still starts with 400 to 440.

PrefixGS1 organisation
00 to 13USA and Canada (UPC)
300 to 379France
400 to 440Germany
450 to 459, 490 to 499Japan
840 to 849Spain

For every other country, GS1 publishes the official list of prefixes.

Code 128, EAN-13 or UPC?

For retail, use UPC in North America and EAN-13 almost everywhere else, always with a number assigned by GS1. For everything else (stock, parcels, internal labels, a reference that contains letters), Code 128 does the job and needs no membership.

PNG or vector file for printing?

The tool downloads the barcode as a PNG, a pixel image: fine for a label, a document or an office printer, as long as you don't enlarge it a lot. For packaging printed in volume, printers usually work with vector files (EPS, PDF or SVG): give them the number and they will produce the barcode at the right size.

Frequently asked questions

Why is my EAN-13 rejected?

EAN-13 requires exactly 13 digits, or 12 if you let the tool calculate the 13th. Check the length, use digits only, and check the check digit if you enter all 13.

Can I use this barcode to sell in shops?

The drawing will be correct, but the number must have been assigned to you by GS1. Otherwise the code may belong to another product.

Is the barcode generated online?

No, it is drawn in your browser; the value you enter is sent nowhere.

Which format for a home inventory?

Code 128: it accepts letters and digits and produces a compact code that every scanner reads.

How do I get a barcode number for my product?

Join the GS1 organisation in your country. It assigns you a company prefix, from which you number your products. This generator then draws the barcode for each number.

Does the barcode prefix show where a product was made?

No. It shows which GS1 organisation issued the number. A product with a 400 to 440 prefix belongs to a GS1 Germany member, wherever it was manufactured.

Can I download the barcode as EPS or SVG?

No, the download is a PNG. For packaging printed in large runs, give the number to your printer, who will create a vector version.

Related tools

Our other sites:NetCheck - network and DNS toolsVolt - internet speed testBoxo - disposable email address