Barcode generator

EAN-13, Code 128, GS1-128, Data Matrix, PDF417 and Aztec — one at a time or as a list.
Exact size for your printer, SVG, PNG and printing.

Barcode generator

EAN-13, EAN-8, UPC-A, ITF-14, Code 128, GS1-128, Code 39, Data Matrix, PDF417 and Aztec — one at a time or a whole list. The check digit is added and verified automatically, and the size is calculated exactly for your printer. Download SVG and PNG or print on A4.

For EAN and UPC the nominal is 0.33 mm (100%), from 80 to 200% is allowed.

Barcodes are created in your browser.

Which barcode to choose

EAN-13 is a retail product number: checkouts all over the world read it, and the number itself (GTIN) is issued by the GS1 association. EAN-8 is for small packages, UPC-A for the US and Canada, ITF-14 is printed on shipping cartons. For warehouses, inventory and internal numbers take Code 128: it encodes letters, digits and symbols and compresses long numbers by half. GS1-128 and GS1 DataMatrix carry data with standard identifiers — the SSCC shipping container code, batch, expiry date, serial number. Data Matrix takes little space and survives damage: part of the code can be worn off and it still reads. PDF417 is a stacked code that holds up to a kilobyte of text: it is printed on documents, passes and waybills. Aztec is built around a bull's-eye in the centre, needs no blank margin and reads well from a screen — transport tickets use it.

How to use it

  1. Choose the barcode type and enter the data — one code per line, even a hundred at once.
  2. For EAN, UPC and ITF enter the number without the last digit — the check digit is added — or in full, and then it is verified.
  3. Choose the printer and dots per module: then every bar is a whole number of dots and scanners read the code reliably.
  4. Download SVG for a layout, PNG for label software or a ZIP with all codes, or print everything on an A4 sheet.

So that the code reads

Leave blank margins at the sides — for EAN-13 that is 11 modules on the left and 7 on the right, already included in the image. Print black on white and do not stretch the image in an editor: the module must stay a whole number of printer dots. Check and print marking codes with a verification code in the separate Chestny ZNAK tool, and for links and business cards a QR code is handier.

Further reading

Frequently asked questions

Can I make up an EAN-13 number myself?

You can draw a barcode with any digits, but to sell in shops the product number must be registered: it is issued by GS1 through its national organization. For internal needs — warehouse, inventory, passes — use Code 128 or Data Matrix with your own numbers. For products sold only in your own shop, internal EAN-13 numbers with prefix 2 will do — get them from Codes for internal use.

Why doesn't the scanner read the printed code?

Most often the module is too small, there are no blank margins at the edges, or the image was stretched and the bars became uneven. Choose the printer and a whole number of dots per module, do not scale the image and print on a white background. For a 203 dpi thermal printer 3–4 dots work well.

How is GS1-128 different from ordinary Code 128?

It is the same Code 128, but it starts with the special FNC1 character and the data follow GS1 rules: an application identifier and a value, for example (01) — product number, (17) — expiry date. Partners' warehouse and accounting systems understand such codes.

What is the standard size of an EAN-13 barcode?

The nominal module is 0.33 mm, and the code with margins is then about 37 × 26 mm. It may be reduced to 80% and enlarged to 200%. Do not cut the bar height (truncate the code) without need — it is harder for checkout scanners.

How are PDF417 and Aztec different from Data Matrix and QR?

PDF417 is a wide stacked code that linear laser scanners can read, which is why it caught on in documents and logistics. Aztec is square like QR, but it needs no white border and reads even from a glossy phone screen. Product marking systems usually ask for Data Matrix, and links are easier as a QR code.

More tools

Barcodes and marking

Price tags and labels
Price tags, ingredients, thermal labels
Codes for internal use
Barcodes with prefix 2 and weight codes
SSCC generator
Box and pallet codes, GS1-128 labels
Chestny ZNAK codes
Checking marking codes and printing DataMatrix
Code list comparison
Missing, extra, repeated codes
Barcode scanner test
GS, ]d2, Enter, layout; test codes
QR code
Link, text, contact card, e-mail, SMS