Barcode Generator

Create a scannable barcode from any text or product number, with the check digit worked out for you, and download it for labels.

Type

Any keyboard characters: stock labels, shipping, asset tags.

Bar width
Height
ABC-12345

Print at 100% scale and test with your scanner before printing labels in bulk. Retail EAN and UPC numbers must be issued by GS1.

Barcode types

  • Code 128 encodes every keyboard character. Long runs of digits are packed two per symbol, which keeps numeric codes short, and a mod-103 checksum is added automatically.
  • EAN-13 encodes 13 digits; for 400638133393 the check digit is 1, giving 4006381333931.
  • UPC-A is the 12-digit North American version: 03600029145 gets the check digit 2 (036000291452). Its bars are the same as an EAN-13 starting with 0.
  • EAN-8 fits small packs: 9638507 gets the check digit 4 (96385074).
  • Code 39 holds capital letters, digits, spaces and - . $ / + %, with an optional mod-43 check character.

Printing tips

  • Print at 100% scale and leave white space (the quiet zone) on both sides.
  • Use black bars on a white background; coloured or low-contrast barcodes scan poorly.
  • Test with your actual scanner or phone before printing a full batch. Our Barcode scanner reads the downloaded image or a printed label with your camera.
Barcode generator with Code 128 chosen from five barcode types, the text PALZ-2026 typed in and its barcode drawn with the text under the bars, with Download PNG and Download SVG buttons
A Code 128 barcode for PALZ-2026, ready to download as PNG or SVG.

Frequently asked questions

Which barcode type should I use?

Code 128 for your own labels: stock, shipping, asset tags and anything with letters. EAN-13 (or UPC-A in the US and Canada) for retail products that shops scan at the till, EAN-8 for very small packs, and Code 39 only when an older system asks for it.

Can I just make up an EAN or UPC number?

Not for products sold in shops. Retail numbers must be unique worldwide, so they're licensed to your company by GS1 (GS1 US for UPCs). Made-up numbers can clash with another product. For internal use, Code 128 with your own codes is the safe choice.

What is the check digit?

The last digit of an EAN-13, UPC-A or EAN-8 is calculated from the others so scanners can catch misreads. Type the number without it and it's added for you; type it with it and the tool checks that it's right.

What size should I print it?

Print at 100% scale with the white margins left on. If a scanner struggles, choose a wider bar width rather than stretching the image. Retail barcodes have minimum sizes set by GS1, so check with your retailer for products.

PNG or SVG?

SVG stays sharp at any size and is best for printing and design tools. PNG is easiest for documents and spreadsheets; it's exported at double resolution.

More text and developer tools

See all text and developer tools →

Can't find the tool you need? Tell us.