Guides / Barcodes
Code 128 vs EAN-13
Pick a 1D barcode format that matches how the label will be scanned — warehouse gun versus supermarket till.
Generate both formats in the barcode generator. Download PNG for quick use or SVG for print.
Code 128
Code 128 can encode letters, numbers, and many symbols. It is the usual choice for internal inventory, shipping cartons, asset tags, and membership IDs. There is no GS1 prefix requirement. Keep the value reasonably short so the bars stay wide enough on a small label.
EAN-13
EAN-13 is a 13-digit retail product code used internationally. The last digit is a check digit calculated from the first twelve. This site validates that checksum so you do not print a number that scanners reject. Use EAN-13 when you already have a GS1 number, or when you need to match an existing product barcode.
UPC-A
UPC-A is 12 digits and is common in North America. Many scanners treat a UPC as EAN-13 with a leading zero. If you have a 12-digit UPC, enter it with a leading 0 on the EAN-13 tab (or enter 12 digits and let the check digit complete an EAN). For internal codes that will never hit a retail POS, prefer Code 128.
Print height
1D barcodes need enough bar height for a laser or camera to get a clean swipe. If a scan fails, increase height before you shrink the width. Quiet space (margin) on both sides of the bars is as important as contrast.
FAQ
Can I invent an EAN-13 for my shop?
Retail checkout EANs are issued through GS1 (a company prefix plus item digits). Random 13-digit numbers may scan in your own stock app but can clash at a supermarket till. Use Code 128 for internal SKUs.
Why does the tool change my last digit?
EAN-13 uses a check digit. If you enter 12 digits, the tool appends the correct check digit. If you enter 13 and the last digit is wrong, you will see an error with the expected value.