Skip to content

Barcode Generator

Create Code 128, EAN-13 and UPC-A barcodes with check digits, and download them as PNG or SVG.

Barcode

Runs in your browser — nothing you enter is sent to a server.

How the Barcode Generator works

Choose a barcode type and enter the value. Code 128 encodes any plain text or number — use it for labels, inventory and shipping. EAN-13 and UPC-A are the retail product codes: enter 12 or 11 digits and the check digit is added, or all digits and it is checked.

Barcodes are drawn in your browser with quiet zones (blank margins) that scanners need. Download a PNG for documents or an SVG, which stays sharp at any size for printing. Keep black bars on a white background for reliable scanning.

Formula

check = (10 − (Σ digits × 3, 1, 3, 1… from the right) mod 10) mod 10

Examples

EAN-13

590123412345 → check digit 7 → 5901234123457

UPC-A

03600029145 → check digit 2 → 036000291452

Frequently asked questions

Can I use these barcodes on products I sell in shops?

The barcode will scan, but retail EAN and UPC numbers must be licensed from GS1 so they're unique worldwide. For your own inventory or labels, any number or Code 128 text is fine.

Why won't my barcode scan?

Print it large enough, keep the quiet zones clear, and use dark bars on a light background. Very thin bars can blur when printed — choose a wider bar width.

What's the difference between a barcode and a QR code?

Barcodes store a short code in one dimension and are read by retail scanners; QR codes store more data, like links, and are read by phone cameras. See the QR Code Generator.

QR Code Generator

Turn a link or text into a QR code and download it as SVG or PNG, with custom colors.

Generators

Random String Generator

Generate random strings from letters, digits, hex, URL-safe characters or your own set, in bulk.

Generators

UUID Generator

Generate random version 4 or time-ordered version 7 UUIDs, up to 1,000 at a time.

Developer Tools