codigo-qr.es

§BARCODES / ALL FORMATS

Which barcode format do you need for retail or inventory?

codigo-qr.es supports 8 1D barcode formats. Code 128 and EAN-13 are free. The other six formats require a Pro plan.

Every format has its use case. Pick the one that fits your industry, generate the barcode and download print-ready PNG or vector SVG.

8 formatsCode 128 · EAN-13 freePNG and SVG

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.

What are the 8 barcode formats?

Code 128

Free

Universal alphanumeric barcode for inventory, shipping labels and internal identifiers. Supports all ASCII characters.

Logistics, warehouse, shipping

Fact: Published in 1981 by Computer Identics. The most used barcode in global logistics.

Example: ABC-1234-XYZ

Generate

EAN-13

Free

Global standard for retail products. 13 digits: 12 entered by you plus a check digit calculated automatically.

Retail, supermarkets, books

Fact: Managed by GS1 since 1977. Required to sell in European supermarkets and retail chains.

Example: 5901234123457

Generate

EAN-8

Pro

Compact version of EAN-13 for small packaging where the 13-digit code does not fit. Only 8 digits.

Small packaging, cosmetics, gum

Fact: GS1 assigns it under strict criteria: you must justify that the packaging size is insufficient.

Example: 12345670

Generate

UPC-A

Pro

Retail standard for the United States and Canada. 12 digits. Compatible with EAN-13 scanners: an invisible leading zero makes them equivalent.

North American retail

Fact: First barcode format adopted at mass scale, published in 1973 by the Uniform Code Council.

Example: 036000291452

Generate

UPC-E

Pro

Compressed version of UPC-A for small packages sold in the US. 8 visible digits representing a full UPC-A code.

US retail, small packaging

Fact: The scanner expands the 8 digits back to 12 in real time before querying the product database.

Example: 01234565

Generate

Code 39

Pro

Industrial alphanumeric format supporting uppercase letters, numbers and seven special characters. Widely used in defense and healthcare.

Defense, healthcare, industry

Fact: The first alphanumeric barcode, designed in 1974 by Intermec.

Example: INVENTORY-001

Generate

ITF-14

Pro

Barcode for shipping cases and pallets. 14 digits printed on corrugated cardboard. Encodes the GTIN-14 of the product inside.

Logistics, shipping cases, pallets

Fact: The thick bars of ITF-14 tolerate the low print quality of industrial cardboard.

Example: 10012345678902

Generate

GS1-128

Pro

Extension of Code 128 that encodes structured logistics data: expiry dates, lot numbers, net weight and more.

Advanced logistics, pharma, food

Fact: The parentheses in the code indicate Application Identifiers (AI) defined by GS1.

Example: (01)05012345678900(17)260301(10)ABC123

Generate

How do the 8 formats compare?

FormatMain useSectorDataLengthPlan
Code 128Internal inventory and shippingLogistics, warehouse, shippingAlphanumeric ASCII1-80 charsFree
EAN-13European retail productRetail, supermarkets, booksNumbers only13 digitsFree
EAN-8Retail product, small packagingSmall packaging, cosmetics, gumNumbers only8 digitsPro
UPC-ANorth American retail productNorth American retailNumbers only12 digitsPro
UPC-EUS retail, small packagingUS retail, small packagingNumbers only8 digitsPro
Code 39Industrial labels and defenseDefense, healthcare, industryUppercase + numbers1-43 charsPro
ITF-14Shipping case and palletLogistics, shipping cases, palletsNumbers only14 digitsPro
GS1-128Structured GS1 logisticsAdvanced logistics, pharma, foodAlphanumeric + AIsVariablePro

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.

Frequently asked questions about barcodes

  • A QR code is two-dimensional (a matrix of dots) and can hold up to 7,089 digits or 4,296 alphanumeric characters. A 1D barcode is linear and holds between 8 and around 80 positions depending on the format. QR codes can be read with any phone camera; many industrial settings read 1D barcodes with dedicated laser or image scanners.

  • EAN-13 is the most used for point-of-sale products in Europe. Code 128 is the most common for internal logistics and shipping. ITF-14 dominates shipping cases in organised distribution.

  • Not to generate the code here. If you need a unique code recognised in organised retail, you must obtain a company prefix assigned by your national GS1 member organisation. Without that registration the code is not valid in supermarkets or major retail chains.

  • Yes. The generator produces scalable vector SVG with no quality loss at any print size, and high-resolution PNG for standard label printers. Both formats are scannable by industrial readers.

  • The generator validates the check digit for EAN-13 and EAN-8. If you enter 13 digits with an incorrect last digit, the generator flags it. You can enter only the first 12 digits and the last one will be calculated automatically.

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