Skip to main content

Barcode Generator

Generate EAN-13, EAN-8, UPC-A, or Code 39 barcodes from any numeric or alphanumeric string.

1.6
100
Download PNG

About this tool

Barcode Generator renders EAN-13, EAN-8, UPC-A, or Code 39 barcodes from any numeric or alphanumeric string. Output is an SVG you can scale without loss, plus a PNG download.

Symbology support

  • EAN-13 — 13 digits with a check digit. The international standard for retail products globally (outside the US). Type 12 digits and we add the check digit automatically.
  • EAN-8 — 8 digits with check digit. Used for small retail items. Type 7 digits, we add the check.
  • UPC-A — 12 digits, the US retail standard. Type 11 digits, we add the check.
  • Code 39 — alphanumeric barcode (0-9, A-Z, and a few symbols). Used for inventory, asset tracking, automotive parts. Type any string and we add the start/stop * delimiters.

Check digits

EAN-13, EAN-8, and UPC-A all carry a check digit at the end of the encoded value. The barcode would be un-scannable without it, so we compute it for you and embed it in the rendered barcode. If you enter fewer digits than required, we pad with zeros (so the barcode is consistent length); enter the first digits of an actual GTIN if you want to scan a real product.

Output options

  • Foreground / background colors: black-on-white is the default (and scans most reliably). Modern phones’ cameras can decode other contrasts in many cases.
  • Module / bar width: pixel width of the thinnest bar. EAN/UPC minimum is 7.5 mil per spec, but at low pixel widths they still render and decode fine on screen.
  • Height: bar height is 20%-25% of width for comfortable scanning.

Privacy

Rendering happens in JavaScript. The data you enter is not sent anywhere.

What we don’t generate

  • UPC-E (compressed 6-digit), QR codes (we have a separate QR tool), DataMatrix, ISBN-13 (just use EAN-13 — the ISBN is the same numeric GTIN with a different prefix range).