Barcode generator

Turn text or numbers into scannable barcodes. Pick a format — CODE128 for general alphanumeric data, EAN-13 for retail products, UPC for North American shelves, CODE39 for logistics labels — enter your value, and download a PNG.

How to create a barcode

1. Select the barcode format (CODE128, EAN13, EAN8, UPC, or CODE39).
2. Enter the value — digits only for EAN/UPC; alphanumeric for CODE128/CODE39.
3. Click Generate and check the preview.
4. Download the PNG for labels, slides, or test prints.

Format examples

Retail SKU (EAN-13)

Use EAN-13 with a valid 12- or 13-digit product code. Supermarket scanners expect this format on packaged goods.

Internal asset tag (CODE128)

CODE128 accepts letters and numbers — ideal for warehouse bins labeled “SHELF-A-042”.

Event badge (CODE39)

CODE39 supports uppercase letters, digits, and a few symbols — common on older inventory systems.

When to use this tool

• When you need a quick barcode image for prototypes, labels, or slide decks.
• When you test scanner hardware or POS integration with sample codes.
• When you generate one-off codes without installing desktop label software.

1D barcodes vs. QR codes

Linear barcodes encode a short string in vertical bars — fast for laser scanners at checkout. QR codes store more data and URLs in a square matrix. Use this tool for traditional 1D symbologies on products and shelves; switch to QR when linking to websites or vCards.

Frequently asked questions

Which format should I pick?

EAN-13 / EAN-8 / UPC for retail product numbers. CODE128 for general variable data. CODE39 for legacy alphanumeric labels.

Why does EAN-13 fail for my value?

EAN-13 requires valid length and check digit rules. Wrong length or invalid checksum triggers an error — fix the number or switch to CODE128.

Does the PNG include human-readable text?

Yes. displayValue is enabled so the encoded string appears under the bars.

Can I scan the preview on screen?

Often yes with a phone camera, but printed size and contrast matter for real-world scanning.

What file format is exported?

PNG with white background and margin suitable for basic printing.