UPC barcode generator

Try an example:

The standard retail barcode in the USA and Canada (GTIN-12).

Leave off the last digit and we’ll calculate it.

2 or 5 extra digits, e.g. a magazine issue number.

Narrow bar 0.330 mm.

Note: retail numbers must come from GS1 (or your retailer). We make the barcode; we don’t issue numbers.

More formats and options →

Your data stays in your browser. Nothing you type is uploaded, stored or tracked.

Create UPC-A and UPC-E barcodes from your GTIN-12, the retail barcode used in the USA and Canada. Enter 11 digits and we calculate the check digit, or 12 and we verify it. Sizes follow GS1 magnification rules. We make the barcode; GS1 issues the number.

How to make a UPC barcode

  1. Enter your GTIN-12: 11 digits, and we calculate the check digit, or all 12, and we verify it. A wrong check digit is flagged, and we offer the correct one.
  2. Choose UPC-A (standard) or UPC-E (compressed, for small packs), and a size. 100% is the standard.
  3. Download SVG for packaging artwork, which is drawn at true size, or PNG at 300 DPI. Print at 100% with no scaling.

UPC-A and UPC-E

UPC-A encodes 12 digits and is the barcode on most products sold in the USA and Canada. UPC-E squeezes a UPC-A number into a barcode about half as wide by removing runs of zeros. Only numbers with enough zeros in the right places can be shortened, so most products use UPC-A. If you enter a UPC-E number, we expand it to check the check digit.

Where do UPC numbers come from?

UPC numbers are GS1 Company Prefix numbers, licensed through GS1 US (or your country’s GS1 member organisation). Retailers and marketplaces check them against GS1 data. We make the barcode from your number; we don’t issue numbers, and invented numbers can belong to someone else’s product.

Size and printing

At 100% magnification the narrowest bar is 0.33 mm wide. Sizes from about 80% to 200% are allowed. Smaller barcodes need better printing. Keep the full bar height, don’t trim the margins, and use dark bars on a light background.

Questions

UPC or EAN? A UPC-A number is a 12-digit GTIN. Scanners worldwide read UPC-A, and outside North America products usually carry EAN-13. If you sell in both regions, ask your GS1 member organisation which to print.

Why are there >-style marks beside the code? On UPC and EAN barcodes they mark the blank margins scanners need. Leave that space empty.

Sources

  1. GS1 US, Barcodes Powered by GS1 Standards. Accessed 2026-11-29.

Reviewed on by Richard Pryn.