piapia123
en

Barcode Generator

Images

Everything runs locally in your browser — nothing is uploaded

Turn a string of digits or letters into a barcode image. Five common formats are supported: CODE128 is the most permissive (letters, digits and symbols), while EAN-13 is the retail product code (12 or 13 digits, the 13th being a check digit computed for you). A barcode is not "text drawn as stripes" — every format has its own character set and length rules, so values are validated before generating, and a mismatch is reported as "this format needs this many digits of this kind" rather than the library's bare "invalid input". Output is PNG, ready to drop into a document, label or page.

Features

  • Five formats: CODE128, EAN-13, CODE39, ITF-14 and UPC-A
  • Actionable messages when the value does not fit the format
  • Adjustable bar width and height — wider bars scan more reliably
  • Show or hide the human-readable value below the bars
  • EAN-13 computes the check digit when you supply only 12
  • PNG output with its dimensions and file size, ready to download
  • Generated in the browser — nothing is uploaded

How to use

  1. Enter the barcode content (digits or letters)
  2. Choose the format, bar width and height
  3. The barcode updates as you type
  4. Click Download to save the PNG

FAQ

Which format should I pick?
CODE128 unless you have a reason — it accepts the widest range of content. For something a retail scanner will read on a product, use EAN-13 (12 or 13 digits). ITF-14 for shipping cartons, UPC-A for North American retail. CODE39 is mostly for internal labels now, since it only takes uppercase letters.
Why will my value not encode?
Usually the character set or length does not fit the format. EAN-13 takes 12 or 13 digits (the check digit is computed from 12), CODE39 takes uppercase letters and a few symbols, ITF-14 wants 13 or 14 digits, and CODE128 is ASCII only. The message says which case you hit.
Why does CODE39 reject lowercase letters?
Because lowercase letters are not in the CODE39 standard — that is the format, not a choice this tool makes. Use CODE128 if you need them, or uppercase the value first if the business allows it.
Will the barcode actually scan?
Yes, as long as the bars are wide enough and printing does not rescale it. A 1px bar looks fine on screen but can smear together after printing or compression — hence the 2px default; for physical labels pick 3 or 4px and print at 1:1 without scaling.

Related tools