Barcode generator: Code 128, EAN-13 and UPC-A

Choose a barcode type, type the content, and download a crisp PNG or SVG ready to print.

  • Free, no sign-up
  • Your files and data stay on your device
  • No watermarks or limits

0 bytes uploaded. Everything happens in this tab.

How to use it

  1. Choose Code 128, EAN-13 or UPC-A.
  2. Type the content. Check digits are calculated for you.
  3. Set the height and bar width, then download the PNG or SVG.

Example

EAN-13 from 12 digits:

400638133393 → 4006381333931

About this tool

Code 128 is a flexible barcode for letters, digits and punctuation, widely used in logistics and for internal labels. EAN-13 and UPC-A are the retail product codes you see on packaging; they hold only digits and end with a check digit that scanners use to detect errors.

Enter 12 digits for EAN-13 (or 11 for UPC-A) and the check digit is added for you; enter the full number and it is verified. The result is drawn as clean vector bars that you can download as SVG for any size or as a PNG for quick use.

Retail codes are issued by GS1 and must be registered to your products; a generated number is not automatically valid in a shop’s system. Always scan a printed sample before printing a large batch and keep a blank margin around the bars. Nothing is uploaded.

Frequently asked questions

Can I use a generated EAN-13 in shops?

Only if the number is allocated to you by GS1 or your national GS1 organization. Otherwise it may collide with another product.

Which characters does Code 128 support?

Basic ASCII: letters, digits and common punctuation. Accented letters are not supported.

What is the check digit?

A final digit calculated from the others, so that a scanner can tell when a code was misread.

Should I use PNG or SVG?

SVG scales without losing sharpness, which is best for printing. PNG is fine for screens and documents.

Often used next