1. Home
  2. Barcode & Generate
  3. Barcode Generator

Barcode Generator

Retail, shipping and 2D barcodes with automatic check digits, as PNG or SVG.

Runs in your browser · No upload
12 digits (check digit added) or 13 digits
×
1–10
mm
5–100
Check digit 3 is correct.

Drawing barcode…

This tool only draws barcodes | it does not issue GTINs. Numbers for products you sell must be licensed from GS1 (for example GS1 US or GS1 UK).

How to use

  1. Choose a Barcode type. Retail products use EAN-13 (or UPC-A in the US and Canada), and shipping cartons use ITF-14.
  2. Type the data and the barcode appears below. For EAN, UPC and ITF-14 you can leave off the last digit, and the check digit is calculated and added for you. If you enter the full number, the check digit is verified instead.
  3. Adjust the scale, bar height and colors, then download a PNG or an SVG. Send the SVG to printers and packaging designers, since it stays sharp at any size.

Choosing a barcode type

Type Input Typical use
UPC-A 11 digits + check digit US and Canadian retail
UPC-E Number system 0 or 1 + 6 digits + check digit Shortened UPC-A for small packs
EAN-13 12 digits + check digit Retail in most other countries
EAN-8 7 digits + check digit Packs too small for EAN-13
ITF-14 13 digits + check digit Outer cartons and cases (GTIN-14)
Code 128 Letters, digits, symbols (ASCII) Internal IDs, shipping labels
GS1-128 (AI)value format Logistics labels that carry expiry or batch data
Code 39 Uppercase letters, digits, a few symbols Industrial use and asset tracking
Data Matrix Any text Small parts, pharmaceutical serial numbers
PDF417 Any text Driver’s licenses, boarding passes

The numbers in parentheses in GS1-128 are GS1 Application Identifiers (AIs). (01) is the GTIN, (17) is an expiry date (YYMMDD) and (10) is a batch or lot number. Enter something like (01)00036000291452(17)261231(10)ABC.

Check digit example

Enter 03600029145 as UPC-A and the tool calculates the check digit 2, then draws 036000291452. If you enter 036000291453 instead, you get an error that tells you the correct digit. For the math behind it and checking many numbers at once, see the GTIN check digit calculator.

Things to watch

  • This tool doesn’t issue barcode numbers. UPC and EAN numbers for products you sell have to be built from a GS1 company prefix licensed by GS1 US, GS1 UK or the GS1 office in your country. Numbers you make up yourself can clash with another company’s products.
  • Keep the white margins (quiet zones) on both sides. The images already include them, so don’t crop them off.
  • Black bars on a white background are the safest choice for printing. Red bars can be invisible to scanners that use red light.
  • Non-ASCII text in Data Matrix or PDF417 is stored as UTF-8. Check that your scanner can decode UTF-8.
  • If people will scan it with a phone to open a link, a QR code is a better fit.

FAQ

Can I get a barcode number here for selling through retailers?

You can create the image, but the number itself has to be licensed from GS1. Large retailers and marketplaces often require numbers registered with GS1.

Should I download PNG or SVG?

Use SVG for print and design files, and PNG for dropping straight into documents or label-printer software. The scale setting controls the PNG resolution.

Is my data stored?

No. Barcodes are drawn in your browser, and nothing is sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.