CodeBox Hub
FREE
No sign-up · free & unlimited100% in your browserPNG / SVG export
Some libraries failed to load — download features may be unavailable (offline).

Barcode Generator

13 one- / two-dimensional barcode formats, check digits computed automatically.

条码类型 — 外观设置
…

The 11 supported formats

FormatTypeData rulesTypical use
Code 1281Dany ASCIIgeneral: logistics, inventory, office
Code 391DA–Z, 0–9 and - . $ / + %industrial, automotive, military
EAN-131D12 digits + auto check digitinternational retail products
EAN-81D7 digits + auto check digitsmall retail packs
UPC-A1D11 digits + auto check digitNorth American retail
ITF-141D13 digitslogistics outer cases
ITF (Interleaved 2 of 5)1Deven number of digitspharma, warehousing
Codabar1Ddigits and - $ : / . +libraries, blood banks, courier
MSI1Ddigits onlyinventory management
Pharmacode1D3–13 digitspharmaceutical production
QR Code2Dany textphone scanning, links

Are check digits calculated automatically?

Yes. For EAN-13, EAN-8 and UPC-A you enter the digits without the check digit (12, 7 and 11 respectively) and the tool appends the GS1-standard check digit. Other formats validate the data and flag it immediately instead of rendering a wrong code.

1D vs 2D codes

1D barcodes encode data horizontally only: small capacity, read by dedicated scanners, but cheapest to print and fastest to read — the retail and logistics standard. 2D codes (like QR) encode in both directions, hold thousands of characters, and are read by phone cameras. They don’t replace each other: a checkout scanner reads EAN/UPC, a phone camera reads QR.

Which format should I pick?

  • Retail product at a checkout → EAN-13 (international) or UPC-A (North America);
  • Internal inventory, order numbers, any text → Code 128 (most common, highest density);
  • Logistics outer case → ITF-14;
  • Phone scanning → QR Code.

Printing advice

1D scannability depends on module width: use ≥0.33mm for thermal labels (≈2.6 dots at 203dpi) and a bar height of at least 12mm. Need to rescale or recolor later? Download the SVG.

FAQ

Is it free?

Yes, unlimited and free, no account required.

How many digits for EAN-13?

Enter 12 digits (no check digit) — the 13th is added automatically.

Is GS1 DataBar supported?

Not yet — DataBar is on the roadmap.

Can these codes be used on real products?

The files are yours. Note that retail barcodes require a GS1-registered manufacturer prefix — no tool can do that for you.

Can I scale barcodes up?

Download SVG for lossless scaling; for PNG use the 4× export. Keep module width ≥0.2mm for scannability.

More tools

Contact us