UPC barcode generator

Turn your UPC, EAN, or internal Code 128 identifier into a barcode or a label sheet. Files stay in this browser until you download them.

Use retail identifiers assigned to your product. This tool creates labels. It does not issue or register product identifiers.

Barcode type
Code handling

Enter a UPC.

Shown under the barcode on the sheet preview and the PDF. An SVG or PNG download is the barcode only.

Sheet setup
More: barcode size

Retail scanning needs standard sizes and proportions. These presets keep full proportional bars, readable text and fixed quiet zones. Print at Actual size and test-scan a label. This tool cannot certify physical labels.

Barcode preview

Enter 11 digits to see your barcode.

US Letter, 10 labels (2 by 5). Each sheet holds 10 labels.

The sample in the example further down is a demonstration, not an identifier assigned by this site.

Your next step

Price the product before you print

Check your selling price and margin before preparing the packaging.

Margin calculator

How the check digit is calculated

Use a UPC assigned to your product. This tool creates labels. It does not issue or register product identifiers. GS1 describes assignment separately from the arithmetic.

  1. Count the first 11 digits from the left, starting at 1.
  2. Multiply the odd positions by 3 and add the even positions.
  3. The check digit is the amount that brings that sum to the next multiple of 10.
  4. A 12-digit code is accepted only when its last digit matches that result.

The ordinary retail drawing uses a module width of 0.330 mm, main bars 22.85 mm tall, and a quiet zone of at least 9 modules on each side. That is 113 modules, 37.29 mm from quiet zone to quiet zone. Retail module widths in the published range run from 0.264 mm to 0.660 mm, and the bar height scales with the module. A smaller label is refused instead of cropping the bars. Guard bars are drawn at the same height as the other bars. These figures follow published GS1 US sizing notes. Matching them here is not a GS1 compliance certificate, and this browser cannot verify a physical print.

Sources:

UPC, EAN, or Code 128?

UPC-A
12 digits for an assigned retail product identifier. Enter an 11-digit body to complete the check digit.
EAN-13
13 digits for an assigned retail product identifier. Enter a 12-digit body to complete the check digit.
Code 128
Printable letters, numbers, and punctuation for internal inventory or shipping labels. This tool does not create GS1-128 labels or assign retail identifiers.

Avery 5163 compatible sheets use ten 4 × 2 inch labels. Match your stock, print at Actual size, and test one sheet. The 12.7 mm tall Avery 5167 label cannot hold this full-height retail barcode.

Helpful guides

Common questions

Does this give me a new UPC?

No. It draws a label for a code you already have, or fills in the check digit for 11 digits you already have. A code that passes the check is not a license or a product registration.

Should I enter 11 or 12 digits?

For UPC-A, enter 11 body digits to complete the check digit or 12 to validate the full code. EAN-13 uses 12 body digits or 13 full digits. Keep every leading zero.

Why is my code rejected?

The field needs 11 or 12 digits and a matching check digit. Letters, decimal points, and scientific notation are rejected. Spreadsheets sometimes drop leading zeros, so import that column as text.

Can I print a sheet of labels?

Print preview prints only the sheet on screen, at that sheet's page size. Set the dialog to no margins and 100% or Actual size. Fit-to-page shrinks the bars. The downloaded PDF includes every sheet for label stock. This page does not certify a physical print.

Why might a printed barcode fail to scan?

A valid number can still print too small, too light, or with the quiet zone cut off. Scale, contrast, and a damaged label all change whether a scanner reads it. This page does not certify a print.

Can I reuse one UPC for different products?

Printing extra copies for the same product is a normal batch. Putting that code on a different product is a separate decision for whoever assigned the identifier.

Privacy choices

Google messaging can contact Google before you choose. Ads stay off until advertising consent is verified. Google Analytics needs your consent in the EEA, UK and Switzerland, or when your country cannot be determined, and runs by default elsewhere unless you reject it or send Global Privacy Control.

Changing privacy choices can reload this page and clear unsaved entries. Copy or download any work you want to keep first.