Barcode Generator

Type your number or text and watch a scannable barcode appear instantly — CODE128, EAN-13, UPC-A or CODE39, downloadable as a crisp PNG. Free, no watermark.

Live — the barcode redraws as you type

CODE128 accepts any letters, numbers and symbols.

Your barcode

Barcodes are drawn on your device — your data is never uploaded.

Choosing the Right Barcode Format

CODE128 is the workhorse of modern barcoding: it encodes the full ASCII set at high density, which is why couriers, warehouses and ticketing systems standardize on it — if you're labelling inventory, assets, lockers or documents, start here. EAN-13 and UPC-A are the retail formats scanned at checkout worldwide and in North America respectively; their numbers carry a mathematically computed check digit, which this generator calculates for you from 12 (EAN) or 11 (UPC) data digits, or verifies if you supply the full number. CODE39 survives in older industrial and defense systems — uppercase letters, digits and a few symbols only.

For reliable scanning: keep the quiet zone (white margin) intact, print at 100% scale, and prefer higher bar-width settings for low-quality printers. Retail numbers must be licensed from GS1 to be globally unique — this tool renders any number scannably but cannot register it for you. Need a code phones can read natively? Generate a QR Code instead, or grab a UUID for unique internal IDs.

Format capabilities at a glance

FormatCharactersLengthTypical use
CODE128Full ASCIIFlexibleShipping, inventory, tickets
EAN-13Digits only12 + check digitRetail products (worldwide)
UPC-ADigits only11 + check digitRetail products (US & Canada)
CODE39A–Z 0–9 - . $ / + % spaceFlexibleIndustrial, legacy systems

Frequently Asked Questions

Which format should I use?
CODE128 for anything general-purpose (couriers, inventory, tickets). EAN-13/UPC-A only for retail products with GS1-assigned numbers. CODE39 for legacy industrial systems.
Why does EAN-13 need 12 or 13 digits?
It encodes 12 data digits plus a computed check digit. Enter 12 and the 13th is calculated automatically; enter 13 and your check digit is verified.
Can I sell products with these barcodes?
The image scans perfectly, but retail EAN/UPC numbers must be licensed from GS1 to be unique. For internal labels, CODE128 needs no registration.
What resolution is the PNG?
Exported at your configured bar width × height with a white quiet zone — sharp for label printing. Print at 100% scale for best scans.
Is my data uploaded?
No — barcodes are rendered entirely in your browser. Nothing you type leaves your device.