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. Encoding runs in your browser with JsBarcode; nothing is uploaded to a server.
Value
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.
When to choose something else
• When you need official GS1 registration and check-digit validation for global retail — verify codes with GS1 tools.
• When you print thousands of labels — use dedicated label software with printer drivers.
• When you need 2D codes (QR) for URLs — use the QR code generator instead.
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.
Check digits on EAN and UPC
Retail formats include a check digit computed from the preceding digits. Entering a made-up 12-digit string may fail validation. For internal tests, CODE128 avoids retail checksum rules while still producing scannable images.
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.
Are my product codes uploaded?
No. Encoding happens locally in the browser.
What file format is exported?
PNG with white background and margin suitable for basic printing.
Is this free?
Yes, no account needed.