Barcode Generator
Generate a barcode from text or numbers in CODE128, EAN-13 or UPC-A format, with validation for formats that require a specific structure.
Supports any ASCII text — the most flexible general-purpose barcode format.
Enter a value to generate a barcode.
Everything you enter is processed in your browser and isn't sent to our servers.
How to use Barcode Generator
- 1Choose a barcode format.
- 2Enter a value — see the format hint for what's valid.
- 3Download the generated barcode as a PNG.
About this tool
CODE128 accepts virtually any text or numbers, making it the most flexible general-purpose choice. EAN-13 and UPC-A are retail product barcode standards with a strict structure: EAN-13 needs 12 or 13 digits, and UPC-A needs 11 or 12 — in both cases the final digit is a check digit, calculated automatically from the others if you leave it out.
Invalid input for a strict format — the wrong number of digits, or a check digit that doesn't match — is reported clearly rather than silently generating an incorrect barcode that wouldn't scan correctly at a real point of sale.
Frequently asked questions
CODE128 encodes arbitrary text and numbers and is common in logistics and internal tracking. EAN-13 and UPC-A are standardized retail product barcode formats used at point of sale — EAN-13 is used internationally, UPC-A primarily in the US and Canada — and both require digits only, in a specific length.
No — if you enter one digit short (12 for EAN-13, 11 for UPC-A), the correct check digit is calculated and added automatically. You can also enter the full length yourself if you already know it.
A correctly generated EAN-13 or UPC-A barcode is scannable by standard barcode readers, but actually selling a product with it requires registering the code with the relevant numbering authority (like GS1) — this tool generates the barcode image itself, not a registered product code.