Barcode Generator
AMAZON FBA TOOL

UPC / EAN Barcode Generator

Enter barcode data and type to generate UPC-A, EAN-13, Code 128 barcodes. Download as PNG for Amazon FBA labels. 100% local processing, no data uploaded.

🔒 100% Client-side · Generated in your browser only
Invalid barcode format for selected type

Preview updates as you type. For Amazon FBA use UPC or EAN codes.

🔗 Related Tools

QR Code Generator

QR code generation and download

HS Code Reference

Product classification lookup

FBA Profit Calculator

SKU profit calculation

Meta Tag Checker

SEO meta tag checker

Barcode Generator Guide

What is a Barcode?

A barcode is a machine-readable optical label that encodes data as a pattern of parallel bars and spaces of varying widths. When a barcode scanner or camera passes over it, the reflected light translates the bar pattern back into a digital string. Barcodes are the backbone of retail checkout, warehouse inventory, shipping labels, event ticketing, and asset tracking. They let a computer identify a product or record instantly without manual typing, which is faster and eliminates human error.

Barcode Formats Explained

This generator supports four major barcode symbologies, each designed for different use cases:

Check Digit Calculation

The last digit of UPC-A and EAN-13 barcodes is a check digit, computed from the preceding digits using the modulo-10 algorithm. This allows scanners to detect misreads. The formula works as follows: starting from the rightmost digit (excluding the check digit), multiply odd-position digits by 3 and even-position digits by 1. Sum all products. The check digit is the number that makes this sum a multiple of 10.

For example, for the 12-digit UPC-A code 036000291452: the first 11 digits are 0-3-6-0-0-0-2-9-1-4-5. Applying the weighted sum: (0+6+0+0+2+1+5)x3 + (3+0+0+9+4) = 42 + 16 = 58. The next multiple of 10 after 58 is 60, so the check digit is 60 - 58 = 2. This tool automatically calculates the check digit for you when you enter the first 11 or 12 digits.

How to Use This Generator

Select your barcode format from the dropdown. Enter the data to encode: 11 or 12 digits for UPC-A, 12 or 13 digits for EAN-13, or any alphanumeric string for Code 128 and Code 39. Adjust the bar width, height, and whether to display human-readable text below the bars. The preview updates in real time. Click Download to save the barcode as a high-resolution PNG image suitable for printing on product packaging or labels.

GS1 Registration and UPC/EAN Prefixes

If you are creating barcodes for retail products sold in stores or on marketplaces like Amazon, you cannot invent your own numbers. You must purchase a GS1 Company Prefix from GS1 (gs1.org) or a regional GS1 member organization. The prefix assigns you a unique range of barcode numbers that no other company can use. Amazon, Walmart, Target, and most major retailers require GS1-registered barcodes and will reject self-generated ones. For internal use like warehouse inventory or asset tracking, you can freely use any number with Code 128 or Code 39.

Printing Tips

Frequently Asked Questions

What's the difference between EAN-13 and UPC-A?

EAN-13 is 13 digits and used worldwide. UPC-A is 12 digits and used primarily in the US and Canada. An EAN-13 code starting with 0 is functionally equivalent to a UPC-A code, since the leading 0 is the US/Canada country prefix. Both are GS1 standards for retail product identification, and most scanners can read either format.

Can I make up my own UPC or EAN numbers?

For internal use such as inventory management or asset tracking, you can freely use any number with Code 128 or Code 39. For retail products sold in stores or on Amazon, you must purchase a GS1 Company Prefix from gs1.org. Self-generated UPC or EAN numbers will not be in any product database and will be rejected by Amazon, Walmart, and other major marketplaces.

What is a check digit and how is it calculated?

The check digit is the last digit of UPC-A and EAN-13 barcodes, computed from the preceding digits using the modulo-10 algorithm. Odd-position digits are multiplied by 3, even-position digits by 1, and the check digit is the number that makes the total sum a multiple of 10. When scanned, the system recalculates the check digit to detect misreads. This generator calculates it automatically.

Which barcode format should I use?

For retail products sold internationally: EAN-13. For US and Canada retail: UPC-A. For shipping labels and logistics: Code 128. For internal inventory with alphanumeric codes: Code 128 or Code 39. For simple numeric asset tags: Code 39 is sufficient.

Does Amazon accept self-generated barcodes?

No. Amazon requires GS1-registered UPC or EAN barcodes for most categories. When you list a product, Amazon validates your barcode against the GS1 database. If your barcode number does not match a registered GS1 Company Prefix, Amazon will suppress your listing. You must purchase a prefix from GS1 and generate barcodes from your assigned range.

What is the quiet zone on a barcode?

The quiet zone is the blank white margin on both sides of a barcode. It tells the scanner where the barcode starts and ends. For UPC-A and EAN-13, the minimum quiet zone width is 5 mm (9 modules). Without an adequate quiet zone, scanners may fail to read the barcode or return incorrect data.

Can Code 128 encode letters and special characters?

Yes. Code 128 supports all 128 ASCII characters, including uppercase and lowercase letters, digits, punctuation, and control characters. It uses three subsets (A, B, C) that can be mixed within a single barcode, making it the most versatile linear barcode format for applications requiring alphanumeric data.