Barcode Generator

Generate CODE128, EAN-13, and UPC-A barcodes instantly. Customize dimensions and download as PNG.

About Barcode Types

Barcodes encode data in visual patterns that scanners can read. Different barcode standards serve different use cases, from retail products to shipping labels.

CODE128

CODE128 is a high-density linear barcode that supports all 128 ASCII characters. It uses three subsets (A, B, C). This tool uses subset B which supports standard printable ASCII (space through DEL). CODE128 includes a modulo-103 checksum for data integrity.

EAN-13

The European Article Number (EAN-13) is the standard barcode for retail products worldwide. It encodes 13 digits: the first 12 are data and the last is a checksum calculated using a weighted modulo-10 algorithm.

UPC-A

UPC-A is the 12-digit barcode standard used primarily in North America for retail products. It is a subset of EAN-13 and uses the same checksum algorithm with different weight positioning.

How Checksums Work

Barcodes include checksum digits to detect scanning errors. CODE128 uses modulo-103, while EAN-13 and UPC-A use a weighted modulo-10 algorithm. The generator calculates these automatically.

FAQ

What barcode types are supported?
CODE128 (subset B for ASCII text), EAN-13 (13-digit retail), and UPC-A (12-digit North American retail).
Is the barcode generation done client-side?
Yes, all encoding and rendering happens in your browser. No data is sent to any server.
Can I use these barcodes commercially?
Yes, all generated barcodes are free for personal and commercial use with no restrictions.
How do I scan the generated barcode?
Use any barcode scanner app on your phone or a dedicated barcode scanner. Print at sufficient resolution for reliable scanning.

Related Tools