What is the difference between the 8 barcode formats?
1D barcodes encode data in vertical bars of varying widths. Each format has an allowed character set, a fixed or variable length, and a dominant industry sector. They are not interchangeable: a supermarket expects EAN-13, a shipping box expects ITF-14, and an internal warehouse can use Code 128.
Before generating, identify where the barcode will be scanned: point of sale, warehouse, postal shipment or internal system. That determines the right format. If in doubt, check the comparison table at the bottom of the page.
How do I choose the right barcode?
It depends on where it will be scanned: EAN-13 to sell in shops, ITF-14 for shipping cases, GS1-128 for batches and dates, and Code 128 for internal use.
- Product sold in a shop or supermarket: EAN-13. If the pack is very small, EAN-8.
- Product sold in the United States or Canada: UPC-A (or UPC-E on small packs). Since 2005 retailers there also accept EAN-13.
- Case or carton holding several units of the same product: ITF-14.
- Logistics that need batch, expiry date or serial number: GS1-128.
- Warehouse, inventory or internal labels that never reach a checkout: Code 128.
- Older industrial systems that only read that format: Code 39.
What size should a barcode be for printing?
An EAN-13 at 100% measures 37.29 × 25.93 mm. GS1 allows scaling it down to 80% and up to 200%, always keeping the blank margins.
The blank margins on each side (quiet zones) are part of the code: on an EAN-13 they equal 11 modules on the left and 7 on the right. If text or a border intrudes into that area, the scanner may fail.
Do not trim the bar height to fit the label: it is the most common mistake and it hurts checkout scanning. If you are short of space, use EAN-8 or UPC-E, which were designed for small packs.
Do I need to buy the numbers from GS1?
To sell in large retailers or on Amazon, yes. The numbers must come from a company prefix assigned by GS1; resold codes are often rejected.
The generator draws the barcode from the number you type, but it does not assign numbers. Each country has its own GS1 member organization that issues company prefixes for an annual fee.
Amazon and large retail chains check that the number (GTIN) is registered to your company in the GS1 database. For internal use (warehouse, inventory, events) you need none of this: Code 128 accepts any reference of your own.
What is the check digit and how is it calculated?
It is the last digit of an EAN or UPC and it helps detect scanning errors. It is calculated with a weighted sum of the preceding digits.
On an EAN-13 the first 12 digits are multiplied, from left to right, alternately by 1 and by 3. The results are added up and the sum is subtracted from the next multiple of ten. Example: for 400638133393 the weighted sum is 89, the next multiple of ten is 90 and the check digit is 1. The full code is 4006381333931.
You do not need to work it out by hand: type the first 12 digits and the generator adds the check digit. If you type all 13 and the last one is wrong, it warns you.
Should I download the barcode as PNG or SVG?
SVG for print and design work, because it is vector and stays sharp at any size. PNG for label printers, documents and websites.
SVG opens in Illustrator, Inkscape, Canva or Affinity and keeps the bar edges perfect at any size. It is the file a print shop should receive.
PNG is a pixel image. It works well on thermal label printers and in documents, as long as you do not enlarge it after downloading: if you stretch it, the bars blur and the scanner may misread their width.
How do I check it scans before printing?
Print a test on the final material and scan it with a scanner or an app. Use dark bars on a light background and never red bars.
Checkout scanners use red light, so red or orange bars are invisible to them. Black on white is the safest combination; dark blue or dark green on white also works.
Avoid glossy backgrounds, transparent paper and tightly curved surfaces such as small bottles unless you test them first. If a test fails, increase the size rather than changing the bar width.
Do you also need dynamic QR codes?
Besides barcodes, codigo-qr.es generates QR codes with an editable destination, scan analytics and logo customisation. Try the QR generator for free.
Go to QR generator