1. Home
  2. Retail barcodes
  3. UPC Barcode Generator

UPC-A Barcode Generator

Enter the 11 or 12 digits of your UPC and get a scan-ready UPC-A barcode at the nominal size or any GS1 magnification between 80 % and 200 %.

  • Your data never leaves your device
  • No registration
  • Free

01How to use it

  1. Type or paste your 11-digit number (the check digit is added) or the full 12-digit UPC into the Data field. The preview updates as you type.
  2. Set the narrow bar width (X-dimension) and bar height, or keep the standard defaults.
  3. Check the green “read back” message under the barcode — the image has been decoded again by an independent reader.
  4. Download PNG for a chosen DPI, or SVG / PDF as vector files at the exact size.

02What it is used for

  • Product packaging and retail labels in the United States and Canada.
  • Amazon, Walmart and other marketplace listings that ask for a UPC on the item.
  • Replacing a damaged UPC label on stock.

03Specification

CharactersDigits 0–9
Length12 digits (11 + check digit); optional 2- or 5-digit add-on
Check digitGS1 modulo 10, calculated or verified
Quiet zone9 × X on the left, 9 × X on the right
Default X-dimension0.33 mm · bar height 22.85 mm
Read back in the browserYes — checked with zxing-cpp after every change

04Example

UPC-A: 036000291452
Input: 036000291452
Size: 37.29 × 26.07 mm

Generated by this tool from the sample value at the default size.

05Downloads

  • PNG
  • SVG
  • PDF

06How it works

The symbol is encoded by bwip-js, a JavaScript port of BWIPP (Barcode Writer in Pure PostScript), and drawn at the X-dimension you choose — all bars and spaces are whole multiples of it, so the barcode is regenerated for each size instead of being stretched. The quiet zone required by the standard is added in modules. For the formats it supports, the image is decoded again after every change by zxing-cpp, an independent reader compiled to WebAssembly, and compared with your input; formats it cannot read are marked “no in-browser reader”. Input is checked before encoding: a wrong check digit, a forbidden character or an odd digit count is reported instead of being silently corrected.

07Printing tips

  • Print PDFs at 100 % / “actual size”. Turn off “fit to page” in the print dialog, otherwise the barcode and the label positions are scaled.
  • Keep the quiet zone: the blank margin on both sides is part of the barcode. Do not let text, frames or the label edge cut into it.
  • Use dark bars on a light background. Red, orange and yellow bars and transparent backgrounds on dark or patterned surfaces often cannot be scanned.
  • For thermal label printers choose the printer’s resolution (203 or 300 dpi): bar widths are then rounded to whole printer dots, which keeps the barcode sharp.
  • Check a test print with the scanner you will use. A correct check digit or a successful read in the browser is not a substitute for a print-quality verification.

08Privacy

The tool above runs entirely in your browser. What you type and the files you open are processed by code on this device; nothing is uploaded, and neither the content nor file names are sent to us or anyone else.

The tool is loaded in a separate frame from a different web address than this article. Advertising and other scripts on this page cannot look inside it, and the frame itself is served with a security policy that blocks every outgoing connection. Designs you save and your preferences stay in this browser until you delete them with the link at the bottom of the page.

09Questions and answers

Where do I get a UPC number?

From GS1 US (or the GS1 organisation of your country), which licenses company prefixes. Barcode Lab turns a number you already own into a barcode; it does not sell or assign numbers, and a valid check digit does not make a number registered.

Why does my number start with 0?

UPC-A numbers often start with 0. The zero is part of the number and is printed; Barcode Lab never drops leading zeros. If your spreadsheet removed it, add it back.

What size should a UPC be?

The nominal (100 %) size is 37.29 × 25.93 mm including quiet zones, with a narrow bar of 0.33 mm. GS1 allows 80 % to 200 %; use the Magnification list to pick one.

Is it safe to enter product data or confidential information?

Yes. Everything is processed on your own device and nothing is uploaded. The tool runs in an isolated frame that is technically prevented from making network connections, so the data cannot be sent anywhere — not to us and not to advertisers.

Related tools