Barcode Generator
Pick a type, type the number or text, download the barcode as SVG or PNG at the size you will print.
https://flxcode.com/barcode-generator/
12 digits, or 13 with the check digit. We add or check the last digit.
Size and print
100% is the 0.33 mm module. Retail symbols allow 80 to 200%.
The width of the narrowest bar.
PNG is drawn at this resolution with whole pixels per module, so edges stay sharp, and carries its real size in mm. SVG has the real size in mm too.
This draws the image. It does not register a number: GS1 issues the company prefix that retail numbers start with.
Example preview
Example- Check digit
- 7 (matches the digits you typed)
- Printed size
- 37.3 mm × 26.1 mm, quiet zones included
- Module width (X)
- 0.330 mm, 100% of the 0.33 mm standard
- Bar height
- 22.85 mm
- Quiet zone
- 3.63 mm left, 2.31 mm right (11 and 7 modules)
- At 300 dpi
- 3.9 printer dots per module
The preview is scaled to fit. The files keep the real size.
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.
Problem or idea? Email us
How to make a barcode
- Choose the type. If you are not sure, use EAN-13 for products or Code 128 for your own labels.
- Type the number or text. For EAN, UPC and ITF-14 leave off the last digit and we add it.
- Open Size and print, set the size and your printer resolution.
- Download SVG for print or PNG for a document.
- Print a test and scan it with the scanner that will be used. Do that before a batch.
The types
- EAN-13: 13 digits, used on products worldwide.
- UPC-A: 12 digits, the US and Canada version. It is an EAN-13 with a leading 0. See the UPC barcode generator.
- EAN-8: 8 digits, for small packs where EAN-13 does not fit.
- Code 128: any keyboard text, compact. See the Code 128 barcode generator.
- Code 39: capital letters, digits and a few symbols. Long, but every scanner reads it.
- ITF-14: 14 digits with a frame around it, for cartons and cases.
EAN-13 at different sizes
| Magnification | Module | Bar height | Width with quiet zones | Height with digits |
|---|---|---|---|---|
| 80% | 0.264 mm | 18.28 mm | 29.8 mm | 20.9 mm |
| 100% | 0.330 mm | 22.85 mm | 37.3 mm | 26.1 mm |
| 150% | 0.495 mm | 34.28 mm | 55.9 mm | 39.1 mm |
| 200% | 0.660 mm | 45.70 mm | 74.6 mm | 52.2 mm |
These follow the GS1 General Specifications for a symbol on a consumer item. The specification has the last word, so check the current edition for your case.
Limits
- Black bars on white only. Scanners expect dark on light.
- The digits are drawn in a standard font. Real OCR-B digits are not included.
- This does not give you a registered number. For retail, get your numbers from GS1 in your country.
- The self-check uses the scanner built into your browser where there is one. It is not a test of your printer.
Nothing you type is stored or uploaded. We count events without cookies and never send the digits or text (details).
FAQ
Which barcode type should I use?
For things sold in shops, EAN-13 outside the US and UPC-A in the US and Canada. They scan at any till. For stock, shelves and your own labels, Code 128 takes any text and is the usual pick. Code 39 is older and longer but works with every scanner. ITF-14 is for cartons and cases.
Do I need to buy numbers to sell in shops or online?
For retail, usually yes. The first digits of an EAN or UPC are a company prefix issued by GS1, and big retailers and marketplaces check them. This page draws the image. It does not register a number or look one up. For your own stock labels you can use any number or text.
What is the check digit?
The last digit of an EAN, UPC or ITF-14 number. It is worked out from the digits before it, so a scanner can tell when one was misread. Type the number without it and we add it. Type it with the digit and we check it, and offer the right one if it is wrong.
How big should I print it?
Retail EAN and UPC symbols are specified at 100% with a 0.33 mm module, which is 37.3 mm wide with its quiet zones. They may be printed from 80% to 200%. Below 80% many scanners fail. The Size and print panel shows the numbers for your choice, and the table below lists a few.
What is the quiet zone?
The blank space left and right of the bars. A scanner needs it to find where the code starts. For EAN-13 it is 11 modules on the left and 7 on the right, for UPC-A 9 on both sides. The size we show includes it. The file keeps it, so do not crop it.
SVG or PNG?
SVG for print. It is exact and scales without blur, and it has the real size in millimetres. PNG is drawn at your printer resolution with whole pixels per module, which keeps the edges sharp, and it works in any document.
Does it do GS1-128, UPC-E, Data Matrix or QR?
Not here. UPC-E, GS1-128 and 2D codes are not supported. For QR codes see the QR Code Generator.
More from FLXCode
UPC Barcode GeneratorNew
Make a UPC-A barcode from 11 or 12 digits. The check digit is worked out for you. SVG and PNG at real print size.
Code 128 Barcode GeneratorNew
Make a Code 128 barcode from any text or number. Digits are packed to keep it short. SVG and PNG at real print size.
QR Code GeneratorNew
Make a QR code for a link, text, Wi-Fi or contact. Static, so it never expires. No sign-up.
Wi-Fi QR Code GeneratorNew
Make a QR code that lets guests join your Wi-Fi, and print it as a card or sign. Made in your browser.