Barcode Generator: Code 128, UPC and EAN

Use this barcode generator to make barcodes for products, labels and stock. Pick Code 128, UPC-A, EAN-13, Code 39 or others, type the value, set size and text, and download a PNG or SVG ready to print.

Barcode Generator

Make printable barcodes for products, labels and inventory.

Real UPC and EAN product codes must be licensed from GS1; making one here does not register it. For UPC-A and EAN, the last digit is a check digit: enter 11 or 12 digits and the tool adds or verifies it. Always test-scan printed barcodes, and keep dark bars on a light background.
Everything runs in your browser. Nothing you enter or upload is sent to a server.

How to use the barcode generator

  1. Choose the barcode type: Code 128 for general labels, UPC-A or EAN-13 for retail products, ITF-14 for shipping cartons.
  2. Enter the value. The note below shows which characters are allowed.
  3. Adjust bar width, height, colors and whether the text appears under the bars.
  4. Download the barcode as PNG for documents or SVG for sharp printing.

How it works

The open-source JsBarcode library encodes your value in the chosen symbology, computes required check digits (such as the modulo-10 digit of UPC and EAN), and draws the bars as SVG in your browser. The PNG is drawn at twice the size for crisp printing.

Example

Entering 03600029145 with UPC-A gives the 12-digit code 036000291452, with the check digit 2 added automatically, ready to print on a product label.

Frequently asked questions

Can I create a UPC for my product to sell in stores?

You can draw any valid UPC here, but retailers require numbers licensed from GS1 US. Use your assigned GS1 number.

Which barcode type should I use?

Code 128 for internal labels, inventory and shipping; UPC-A in the US and EAN-13 elsewhere for retail products.

Why does it say my value is invalid?

Each type only accepts certain characters and lengths, for example UPC-A needs 11 or 12 digits.

Is this a QR code generator?

No, these are 1D barcodes. For QR codes, use the QR Code Generator.

See also: QR Code Generator.

Make a barcode

How to use it

  1. Pick a barcode type.
  2. Enter the value.
  3. Set size and text.
  4. Download PNG or SVG.

More questions

Can I make UPC codes for stores?

You can draw them, but retail UPCs need numbers registered with GS1.

Can I print many?

Yes. Make a batch sheet to print many barcodes at once.

Need a QR code?

To make a QR code, use the QR code generator.

Related tools: QR Code Generator, QR Code Reader, Invoice Generator.

Which values each barcode format accepts

Pick a format (Code 128, UPC-A, EAN-13, EAN-8, Code 39, ITF-14, Codabar, MSI or Pharmacode), type the value, and the preview updates. Set the bar width from 1 to 6 and the height from 20 to 400, then download PNG or SVG. Always test the printed code with a scanner. To check the length of a value first, use the Character Counter.

Worked example: UPC-A takes 11 or 12 digits, so 03600029145 is completed to 036000291452 with its check digit. EAN-13 takes 12 or 13 digits, so 590123412345 becomes 5901234123457, while 5901234123458 (wrong check digit) or 12345 shows This value is not valid for EAN13. 12 or 13 digits. EAN-8 turns 9638507 into 96385074, and Code 39 shows toolverse as TOOLVERSE.

More answers

What does the check digit do, and can I type it myself?

The last digit is calculated from the digits before it so a scanner can catch typing errors. You can enter only the first 12 digits of an EAN-13 and the tool adds it (590123412345 becomes 5901234123457). If you type a 13th digit that is wrong, it is rejected.

Why does ITF-14 change my 13 digits into 14?

ITF-14 needs 13 or 14 digits. When you enter 13, the tool adds the check digit, so 1234567890123 becomes 12345678901231. A shipping-carton barcode must use the full 14 digits, including that last one.