EAN-13 and EAN-8 retail barcodes with the check digit worked out
Barcode Generator
Draw a correct barcode for labels, stock or products, checked bar by bar before you print it.
Loading tool…
How to use barcode generator
Choose the barcode type.
Type the value; for EAN and UPC the check digit is added or verified.
Set the bar width and height for your printer or label.
Download the SVG or PNG once the check line is green.
What this tool does
- Code 128 switches between its A, B and C sets automatically and picks the shortest encoding.
- EAN-13, EAN-8 and UPC-A get the GS1 check digit computed, or verified if you typed it.
- Code 39 with an optional mod 43 check character.
- Bars are drawn on whole pixels, with the human readable digits laid out in the usual retail style.
How the result is verified
The PNG and a rasterised SVG are each read back along one row of pixels, turned into bar widths and decoded, including the checksum. Where the browser has a BarcodeDetector it decodes the PNG as a second, independent check.
Frequently asked questions
Which barcode type should I use?
For products sold in shops, EAN-13 (most of the world) or UPC-A (US and Canada) with a GS1 number. For your own labels, stock and asset tags, Code 128 is compact and holds letters and digits. Code 39 suits older scanners and systems that ask for it.
How big should I print it?
Keep the white margin on both sides and print at 100% scale. A bar width of 2 to 3 pixels at 300 dpi suits most label printers; scale up rather than squashing it horizontally.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
UPC-A barcodes for US and Canadian retail, check digit included
Compact Code 128 barcodes for labels and stock, with automatic set switching
QR codes for links and text, with logo, colours and verified SVG or PNG
Read QR codes from images, pasted screenshots or the camera