🖥️ BatchPrintGTIN.com is optimised for desktop — for the best experience, open on a laptop or desktop browser.
BatchPrintGTIN.com — Free Batch Barcode & QR Code Generator
BatchPrintGTIN
Free BATCH Barcode & QR Code Generator
← Back to Generator

Home › How to Create a UPC Barcode

How to Create a UPC Barcode — Step-by-Step Guide

A UPC barcode (Universal Product Code) is the 12-digit barcode printed on virtually every retail product sold in North America. Creating the barcode image itself is straightforward and free — this guide walks through the entire process from understanding the format to downloading a print-ready file.

Understanding the UPC-A Format

A UPC-A barcode encodes exactly 12 digits. The first digit is a number system character that indicates the product category. Digits 2 through 6 are your GS1 Company Prefix — a unique number assigned to your business by GS1 US or GS1 Canada. Digits 7 through 11 are your item reference number, assigned by you for each unique product. The 12th and final digit is the check digit, calculated automatically from the preceding 11 digits using the GS1 modulo-10 algorithm.

You do not need to calculate the check digit manually — the BatchPrintGTIN generator calculates and appends it automatically when you enter an 11-digit number.

Step 1 — Obtain a GS1 Company Prefix (For Retail Use)

If you intend to sell products through major retailers — Amazon, Walmart, Target, Whole Foods, or any grocery chain — your UPC numbers must be registered with GS1. GS1 US issues Company Prefixes at gs1us.org and GS1 Canada at gs1ca.org. Annual fees vary based on the number of products you need to identify.

For internal use only — warehouse tracking, event management, library systems, or private labelling — you do not need a GS1 prefix. You can use any 12-digit number. GS1 reserves the prefix range 200–299 permanently for internal use, meaning no retail product will ever be assigned a number starting with 2. BatchPrintGTIN uses this range for all example barcodes on this site.

Step 2 — Assign Item Reference Numbers

Once you have your Company Prefix, assign a unique item reference number to each distinct product and variant. Each combination of product, size, colour, and packaging configuration requires its own unique GTIN (Global Trade Item Number). For example, a t-shirt in small, medium, and large requires three separate GTINs even if the product is otherwise identical.

Keep a spreadsheet of your GTINs from the start. Once a GTIN is assigned to a product it should never be reused for a different product, even if the original product is discontinued.

Step 3 — Generate the Barcode Image

Open the BatchPrintGTIN generator and select the Barcode tab. Choose UPC-A as the format. Enter your 11-digit number (the generator adds the check digit automatically) or your full 12-digit number including the check digit. The barcode preview updates in real time. Adjust the width, height, and font size as needed for your label dimensions, then click Download to save as PNG or SVG.

Step 4 — Size and Placement Requirements

GS1 specifies a nominal size of 37.29mm wide × 25.91mm tall for a UPC-A barcode at 100% magnification. The acceptable range is 80% to 200% of nominal size (29.83mm to 74.58mm wide). Smaller barcodes scan less reliably on retail scanners. Always include quiet zones — clear spaces on either side of the barcode — of at least 3.63mm at 100% magnification.

On retail packaging, the barcode is most commonly placed on the back panel lower right, bottom panel, or a flat side panel. Avoid placing barcodes on curved surfaces, seams, or areas subject to moisture or abrasion.

Step 5 — Test Before Printing

Before committing to a print run, test your barcode with at least two different scanning devices — a smartphone camera app, a dedicated barcode scanner, and ideally a retail handheld scanner if your retailer can provide one. Check that the decoded number matches exactly what you encoded. A single digit error means a product cannot be scanned at checkout.

Many professional label printers offer barcode verification as part of their service. For high-volume retail use, a ANSI/ISO barcode grade of B or better is recommended.

Batch Creating Multiple UPC Barcodes

If you need barcodes for a large product catalogue, use the Batch Generator. Prepare a CSV file with one GTIN per row, upload it to the batch tab, and download a ZIP archive of PNG files or a print-ready PDF. A product catalogue of 500 SKUs can be fully barcoded in a few minutes.

Frequently Asked Questions

Can I use any 12-digit number as a UPC barcode?

For internal use only, yes. For retail scanning at a point of sale, the number must be registered with GS1 to avoid conflicts with other manufacturers' products.

What is the difference between UPC-A and UPC-E?

UPC-A is the standard 12-digit format. UPC-E is a compressed 6-digit version used on very small packaging. Most retail scanners read both formats. BatchPrintGTIN generates UPC-A.

How do I calculate the check digit?

The generator calculates it automatically. For reference: multiply alternating digits by 1 and 3, sum the products, subtract from the next multiple of 10. BatchPrintGTIN handles this for every barcode generated.

Generate UPC-A (12 digits) Generate UPC-E (compact, 6 digits)
Create a UPC Barcode Free

Next Steps