Barcode Generator
Generate supported barcode formats, check lengths and check digits, and state commercial-use limits.
Enter 12 digits and the check digit is added for you, or all 13 digits to check them.
Your result
Enter a number or text. Your barcode appears here.
Print it in black on white and test it with a phone scanner first. To sell in shops, you still need a registered GS1 number; this tool does not issue one.
How to use it
- Choose EAN-13 or Code 128.
- Type the text.
- Download the PNG if you want the picture.
Examples
- Twelve digits123456789012 Check digit 8 was added. Full code: 1234567890128.
- A wrong check digit1234567890123 Refused: the last digit must be 8.
- Code 128INV-2026-0042 Code 128 bars with the text printed under them.
Tool details and privacy
Type 12 or 13 digits for an EAN-13 product barcode, or up to 40 characters for Code 128. Download the bars as PNG or SVG.
The bars follow the EAN-13 and Code 128 standards and were checked with a barcode reader during review. Still test your own print.
Options
- EAN-13 adds the check digit to 12 digits, or checks it when you give 13.
- Code 128 uses set B and takes Latin letters, digits, spaces, and symbols.
Limits
- An EAN made here is not a registered GS1 retail number.
- Print it in black on white and test it with a scanner before printing many.
- Code 128 is limited to 40 characters.
Privacy
What you type stays in your browser. Nothing is uploaded or saved on the server.
Questions
Is this a registered retail code?
No. Shops need a number registered with GS1.
Do the bars scan?
They follow the EAN-13 and Code 128 standards; test your print with a phone scanner.
What check digit does 123456789012 get?
8
Is the text uploaded?
No.