Generators · Free Tool

Barcode Generator

Generate CODE128, EAN-13, UPC, and other barcodes from text or numbers, and download as PNG.

About this tool

Generate scannable barcodes in common formats — CODE128 (any text), EAN-13 and UPC (retail product numbers), CODE39, and ITF — then download the result as a PNG for printing or embedding.

CODE128 is the safe default for general use since it encodes any ASCII text compactly. Retail formats like EAN-13 require a valid numeric structure, and the tool tells you when an input does not fit the selected format.

Common uses

  • Create labels for inventory, assets, or warehouse bins
  • Generate an EAN-13 barcode for product packaging from its number
  • Print ticket or membership codes that any laser scanner can read

Frequently asked questions

Which barcode format should I use?

For internal use (inventory, tickets, assets), CODE128 — it encodes any text and scans reliably. EAN-13/UPC are specifically for retail products and require an officially assigned number from GS1.

Why does my EAN-13 input show an error?

EAN-13 must be exactly 12 digits (the 13th is a computed check digit) and numeric only. Use CODE128 if your data contains letters.

Is my data uploaded to a server?

No. This tool runs entirely in your browser using JavaScript — nothing you type is transmitted, logged, or stored anywhere. You can even use it offline once the page has loaded.