Generate a UPC-A barcode

Generate a twelve-digit UPC-A retail barcode with its check digit.

freeworks offlinenothing uploaded
ToolUPC-A Generator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

UPC-A encodes eleven data digits with alternating parity patterns, adds start, middle, and end guards, and computes the twelfth digit using a weighted modulo-10 checksum. The symbol represents a numeric retail identifier, not arbitrary product metadata.

  • The fixed twelve-digit structure supports point-of-sale scanning.

Worked example

Product UPC-A
Generate a UPC-A barcode for a retail product
Input
											Digits: 01234567890
Height: 80
Show text: true
										
Output

When to use this

Retail packaging, GTIN-12 catalogs, and print proofs generate UPC-A symbols.

Edge cases

  • The check digit must be recomputed after any data-digit change.
  • Quiet zones are part of the scan layout, not optional decoration.
  • A valid checksum does not prove that GS1 assigned the number.

References