Barcode Generator
Generate Code128, EAN-13, QR barcodes for products and inventory. Download as SVG or PNG for labels and printing.
About this calculator
Generate barcodes for products, inventory and labels: type the content, set bar width and height, and download an SVG or PNG.
Barcodes are generated locally in your browser.
How to use it
- Enter the barcode content.
- Set width, height and whether to show text.
- Press Generate Barcode and Download SVG.
Barcode types
Code 128 encodes any ASCII text and is the standard for shipping and inventory. EAN-13 is the 13-digit retail product code: 12 data digits plus a check digit, calculated by weighting digits alternately 1 and 3, summing, and taking the amount to the next multiple of 10. Example: for 400638133393 the check digit is 1. UPC-A is the 12-digit North American equivalent.
Worked example
EAN-13 check digit for 400638133393
| Weighted sum | 4 + 0 + 0 + 18 + 3 + 24 + 1 + 9 + 3 + 9 + 9 + 9 = 89 (digits weighted 1, 3, 1, 3 …) |
| Check digit | 90 − 89 = 1 |
Tips and common mistakes
- Leave a quiet zone either side.
- Print at 100% scale, not 'fit to page'.
- Black bars on white give the best scanning.
- Test with a real scanner.
- Official retail EAN/UPC numbers are issued by GS1.
Frequently asked questions
What is Code 128?
A compact barcode for any ASCII text.
What is EAN-13?
A 13-digit retail product code.
Can I use these for retail?
Retail needs numbers licensed from GS1.
How do I print?
At actual size with enough contrast.
SVG or PNG?
SVG is sharper at any size.
Is it free?
Yes.