Skip to content
Jellykit

UPC-A Barcode Generator

Draw a UPC-A barcode from an 11- or 12-digit product number, with the check digit calculated or verified for you.

  • Runs on your device
Loading tool

About UPC-A Barcode Generator

UPC-A is the 12-digit barcode found on products sold in the United States and Canada. Enter the first 11 digits and the check digit is added for you, or enter all 12 and the last digit is checked before the barcode is drawn, so a typing slip cannot reach your packaging.

The result has the familiar layout: long guard bars, the first and last digits printed outside the bars and two groups of five in between. Save it as a PNG or as an SVG that scales cleanly for print.

How it works

  1. The bar pattern is computed by the open-source jsbarcode encoder in your browser, then drawn by this page onto a canvas for the PNG and written out as rectangles for the SVG.
  2. EAN-13, EAN-8 and UPC-A share one check-digit rule: alternate digits are weighted 3 and 1 from the right, and the check digit brings the total up to a multiple of ten.
  3. Code 128 switches between its character sets automatically, so long runs of digits are packed two to a symbol and the barcode stays short.
  4. Sizes are whole pixels, so every bar lands exactly on the pixel grid and edges stay crisp.

Questions

How is the UPC-A check digit worked out?

Add the digits in odd positions (1st, 3rd … 11th) and multiply by 3, then add the digits in even positions. The check digit is what brings the total up to a multiple of ten. For 03600029145 the total is 58, so the check digit is 2.

Is a UPC-A the same as an EAN-13?

A UPC-A number is an EAN-13 number with a leading zero, and the bars are identical. Scanners worldwide read both. Use UPC-A where a North American retailer asks for it.

Can I invent a UPC for my product?

The barcode will scan, but retailers and marketplaces check that the number is licensed to your company by GS1 US. Use the number you were issued.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.