Barcode Generator
Generate Code 128 or EAN-13 barcodes in your browser. Check EAN-13 digits, set the module width, and download a labeled SVG or PNG with quiet zones.
Code 128 and EAN-13 label printing guide
Barcode Generator: how to use it
- Choose Code 128 for a bin or asset identifier, or EAN-13 for a GTIN-13 you already have.
- Enter your identifier. For EAN-13, enter the first 12 digits to calculate the check digit or all 13 to validate it.
- Choose a module width and dark ink, then download SVG or PNG. Scan the finished label and compare the result with the encoded value.
Limits and notes
Code 128 accepts 1–96 printable ASCII characters and preserves spaces, case and leading zeroes. EAN-13 accepts 12 or 13 digits. PNG uses 2–6 pixels per module. Each ink channel must be 102 or lower on an opaque white background. The generator creates a barcode image on your device. Retail use requires an assigned GTIN and verification of the finished label. For QR, use the linked QR code generator.
How your privacy works →Barcode Generator: common questions
What EAN-13 does 400638133393 produce?
The check digit is 1, so the full encoded value is 4006381333931. Enter all 13 digits to check an existing number. Use this sample to test a scan.
Can Code 128 contain spaces and letters?
Yes. This generator accepts printable ASCII, including spaces, letters, digits and punctuation. A scan of BIN-A17 0042 should preserve the space and both zeroes.
Why does extra white space appear at the sides?
Those quiet zones help a reader find the start and end of the bars. EAN-13 keeps 11 modules on the left and 7 on the right. Code 128 keeps 10 modules on each side. Leave both margins intact when placing the label.
Does an EAN-13 check digit verify a product?
The digit verifies the structure of the number. Use the supplier's assigned GTIN and verify the product through the applicable registry or catalog.