Skip to content

Free Barcode Generator

Generate product barcodes in EAN-13, Code-128 and UPC-A formats. Download as PNG for product labels. Free, with no sign-up required — everything happens right in your browser, so nothing you enter is sent to a server.

🔧 Barcode Generator

How the Barcode Generator Works

Choose a barcode type, enter your data and the barcode is drawn straight away on an HTML5 canvas, ready to download as a PNG. The tool encodes real barcode symbologies: Code-128 (character set B, for letters, digits and punctuation), Code-39 (capital letters, digits and a few symbols), EAN-13 and UPC-A. For EAN-13 and UPC-A, enter one digit fewer than the full length and the check digit is calculated for you, or enter the full number and it is validated.

A barcode is a series of bars and spaces of fixed widths, with quiet zones on both sides so scanners can find the edges. The tool draws each bar as a whole number of pixels with a minimum of two, so the PNG stays sharp. Barcodes were tested with an independent scanner library. Always test a barcode with the scanner or phone app you will actually use, and print it large enough, with good contrast, before using it on labels.

Practical Use Cases

  • Create Code-128 labels for inventory, shelves, parcels and asset tags.
  • Make Code-39 barcodes for badges, tickets and internal documents.
  • Generate a correctly formatted EAN-13 or UPC-A image for a product you already have a registered number for.
  • Check the check digit of an existing EAN or UPC number.

Frequently Asked Questions

Use EAN-13 for retail products sold internationally, UPC-A in North America, Code-128 for shipping, inventory and general labels, and Code-39 for simple internal codes. If a customer or marketplace requires a specific format, follow their rules.
The image is a valid barcode, but for retail you need a unique number registered with GS1, the organisation that issues product numbers. Using a number that you made up can clash with someone else's product.
It is the last digit of EAN-13 and UPC-A numbers, calculated from the other digits so a scanner can detect mistakes. This tool calculates it for you or tells you what it should be.
Each format has rules. EAN-13 and UPC-A accept digits only, in the right length, Code-39 allows only capital letters, digits, space and - . $ / + %, and Code-128 here supports standard printable ASCII characters.
No. The barcode is drawn in your browser and never sent to a server.