Let's plan your store together: request a free demo

0850 333 15 23
  1. Home
  2. Blog
  3. E-Commerce
  4. What Is a Barcode? How to Get, Read and Use a Product Barcode (GTIN/EAN) in E-Commerce: A Practical Guide

What Is a Barcode? How to Get, Read and Use a Product Barcode (GTIN/EAN) in E-Commerce: A Practical Guide

What is a barcode, what do EAN-13 and GTIN mean, and how do you get a product barcode? A practical guide to the anatomy of a barcode, how the check digit is calculated, the difference from a SKU and its use in e-commerce.

FaprikaE-Commerce Updated: 13 min read
Photo: markuswinkler / Unsplash
Contents 17 sections
  1. What Is a Barcode?
  2. Why Is a Barcode So Important in E-Commerce?
  3. What Is Inside an EAN-13 Barcode? (Anatomy)
  4. What Are the Barcode Types? EAN-13, EAN-8, UPC, GTIN-14 and QR
  5. What Is a GTIN? How Does It Differ from an EAN?
  6. Are Barcode, SKU and Manufacturer Part Number the Same Thing?
  7. How Is the Barcode Check Digit Calculated? (Hands-On Lesson)
  8. How to Get a Product Barcode (Step by Step)
  9. Can I Create Barcodes for My Own Warehouse?
  10. How Do You Assign Barcodes to Products with Variants?
  11. How Is a Barcode Printed and Where Is It Applied?
  12. Where Is a Barcode Used in E-Commerce?
  13. What Are the Barcode Reader Options?
  14. 8 Common Mistakes with Barcodes
  15. Barcode Checklist
  16. Barcode and SKU Management with Faprika
  17. Frequently Asked Questions

The lines on a product's box and the 13-digit number beneath them are among the least visible yet hardest-working components of e-commerce. The short answer to what is a barcode? is that it turns a product into a code a machine can read; but in e-commerce a barcode is more than a label: product matching on marketplaces, picking the right product in the warehouse, stock counts, return acceptance and product data in search engines all rely on the same number.

This article is designed more like a lesson than a definition page. Step by step, you will learn what each digit in a barcode means, the difference between EAN-13, GTIN and SKU, how a barcode's check digit is calculated by hand (and verified with the tool below), how to obtain a barcode for your product, how to print the label and at which points of your e-commerce operation to use it. At the end you will have a checklist to catch your own mistakes.

What Is a Barcode?

A barcode is the form of a product's number shown as lines of varying thickness and spaces, which optical readers can decode quickly. The reader converts the lines into a number; this number is linked to a record on the computer that shows the product's name, price, stock status and more. In other words, the barcode itself does not carry product information; it is the key used to reach that information.

For this reason, when a product's name, price or color changes, its barcode does not change; when the product itself changes (a different size or a different package, for example), a new barcode is needed. A barcode is the product's identity, not its attributes.

We recommend readingWhat Is a Barcode System? (Glossary)

Why Is a Barcode So Important in E-Commerce?

In e-commerce, a barcode is the global number that identifies a product on marketplaces and in product catalogs, the scan key that verifies the right product in the warehouse, and the outside-world counterpart of the record in the stock system. Without barcodes, matching, counting and picking products is done by hand and is prone to errors.

  • Catalog and matching: Marketplaces and product search systems see products with the same barcode as the same product; the correct barcode ensures your product enters the correct catalog.
  • Warehouse accuracy: Scanning the barcode during picking and packing prevents the wrong product from being shipped.
  • Stock counting: A count done by scanning, rather than typing by hand, is both fast and error-free.
  • Return acceptance: A returned product is scanned and taken back into the correct stock record.
  • Speed: Scanning is many times faster than typing in the product code by hand and eliminates typing errors.
We recommend readingWhat Is Stock Tracking? How Is It Done?

What Is Inside an EAN-13 Barcode? (Anatomy)

EAN-13, the most common barcode type on retail products in Türkiye and worldwide, is a 13-digit number, and each part has its own role: first the country or numbering organization prefix, then the company number, the product number and, at the end, the check digit that verifies the number's accuracy.

Anatomy of an EAN-13 barcode: country or organization prefix, company number, product number and check digit; the sections of the 13-digit number under the bars
EAN-13 anatomy: each part of the number carries a different piece of information (example number).
SectionNumber of digitsWhat does it mean?
PrefixFirst 3 digits (868 and 869 are allocated to Türkiye)Indicates the numbering organization that issued the number; it shows where the barcode was registered, not the country where the product was made
Company numberVariableThe number assigned to the company that registered the barcode
Product numberVariableThe serial number the company gives to its own products
Check digitLast 1 digitCalculated from the previous 12 digits; catches reading or typing errors

The number of digits allocated to the company and product numbers varies with the size of the number block the company obtained; the total, however, is always 13 digits. Note that the prefix does not indicate that the product is "domestic": a barcode with a Türkiye prefix only shows that the number was registered by the organization in Türkiye.

What Are the Barcode Types? EAN-13, EAN-8, UPC, GTIN-14 and QR

Barcode types differ by the number of digits they can encode and their purpose. In e-commerce you most often encounter EAN-13; EAN-8 is used on small packages, GTIN-14 on cartons, UPC-A on products from abroad, and QR codes for labels or campaign links.

Barcode types: EAN-13, EAN-8, UPC-A, the GTIN-14 case barcode and QR code; number of digits and areas of use
Five barcode types: number of digits and area of use.
TypeDigitsWhere is it used?
EAN-1313Retail products; product identification on marketplaces and in catalogs
EAN-88Very small packages where a 13-digit code will not fit
UPC-A12Products of North American origin
GTIN-1414Bulk packaging levels such as cartons and pallets
QR CodeVariable (2D)Link, information or campaign; not common on its own as a product identifier

What Is a GTIN? How Does It Differ from an EAN?

GTIN (Global Trade Item Number) is the name of the numbering standard that identifies a trade item worldwide; EAN-13, EAN-8, UPC-A and GTIN-14 are the different-length forms of this standard. In other words, GTIN is the number, while EAN and UPC are the ways that number is shown as a barcode.

Marketplace forms and the product data fields of product search systems usually say "GTIN" or "barcode" and usually ask for an 8-, 12-, 13- or 14-digit number. If you have an EAN-13, you enter those 13 digits in the GTIN field.

Are Barcode, SKU and Manufacturer Part Number the Same Thing?

No. A barcode is the universally unique number that identifies a product to the world, usually issued by the manufacturer or brand owner; a SKU is a stock code used only within your own business; the manufacturer part number (MPN) is the manufacturer's own catalog code. All three can exist together and are not used in place of each other.

Barcode (GTIN)SKU (stock code)Manufacturer part number (MPN)
Who issues it?The brand owner obtains it from the numbering organizationYour businessThe manufacturer
ScopeUnique worldwideUnique only in your catalogUnique in the manufacturer's catalog
Format8, 12, 13 or 14 digitsUnlimited; letters and digitsDepends on the manufacturer
What is it for?Scanning, matching, catalogInternal stock tracking, reporting, ordersIdentifying the manufacturer's product
Does it change?Does not change as long as the product does not changeCan be changed according to your own systemThe manufacturer can change it

We have explained separately how to set up a SKU for internal organization; it is important not to confuse it with the barcode, because you can assign a SKU however you like, whereas the barcode is expected to be taken from a registered number as your product's real identity.

Okumanızı öneririzPazaryerleri ve E-Ticaret Siteleri İçin Stok Kodunun Önemi

How Is the Barcode Check Digit Calculated? (Hands-On Lesson)

The last digit of an EAN-13 barcode is found by calculating the first 12 digits according to a specific rule: counting from the left, digits in odd positions are multiplied by 1, digits in even positions by 3, the total is found, and the number that rounds the total up to the next multiple of ten becomes the check digit. The scanner performs this calculation on every read and treats the read as invalid if the result does not match the last digit.

EAN-13 check digit calculation: the odd-position digits of the 12 digits are multiplied by 1 and the even-position ones by 3; the total is 127, and the 3 that completes it to 130 is the check digit
Check digit calculation: for the example number 869123456788, the result is 3.

Let us calculate the following example number (it does not belong to a real product and is for the lesson only) step by step: 869123456788

  1. List the digits: 8 · 6 · 9 · 1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 8
  2. Add the digits in odd positions (1st, 3rd, 5th, 7th, 9th, 11th): 8 + 9 + 2 + 4 + 6 + 8 = 37
  3. Add the digits in even positions (2nd, 4th, 6th, 8th, 10th, 12th): 6 + 1 + 3 + 5 + 7 + 8 = 30
  4. Multiply the even-position sum by 3: 30 × 3 = 90
  5. Add the two results: 37 + 90 = 127
  6. Round up to the next multiple of ten: 130 − 127 = 3

The check digit is 3, and the full barcode is 8691234567883. If the total already comes out as an exact multiple of ten, the check digit is 0. To try a barcode you have, you can use the tool below: if you enter 12 digits it finds the check digit, and if you enter 13 digits it tells you whether the barcode is valid.

Barcode check digit calculator

Digits entered12

Check digit3

Full barcode / result8691234567883

You entered 12 digits: the check digit is 3, the full barcode is 8691234567883. The example number does not belong to a real product.

How to Get a Product Barcode (Step by Step)

Barcode numbers for products under your own brand are obtained by becoming a member of the representative office in Türkiye of the organization that manages the numbering standard. The organization gives you a company number block; you assign numbers from this block to your products and generate the barcode for each product yourself.

  1. Determine who needs a barcode: If you produce, or have produced, goods under your own brand, you must obtain the number. If you sell another brand's product, the product already has a barcode and you use that.
  2. Submit your membership application: Apply to the numbering organization's representative office in Türkiye with your company details. Because fees and membership terms can change, ask the organization directly for the current conditions.
  3. Get your number block: The company number assigned to you determines how many products you can number. If you have many product variants, ask for a large block; expanding it later can be more expensive and complicated.
  4. Plan numbers for your products and variants: Each product, each variant (size, color, package size) and each multipack needs a separate number. Keep a table: product name, variant, SKU and barcode.
  5. Calculate the check digit: Add the check digit to the end of the 12-digit number you assigned (using the method above or barcode software).
  6. Generate the barcode image: Use barcode generation software or a label program to convert the number into a barcode image.
  7. Record and verify: Enter the number in your product records and scan the label to verify that it reads the correct number.

Can I Create Barcodes for My Own Warehouse?

Yes. For internal barcodes used only inside the warehouse and store, you do not need to obtain numbers from the numbering organization; your business can generate numbers according to its own system. These internal barcodes are useful for picking, counting and shelf addressing in the warehouse, but they do not replace a registered barcode when identifying products to marketplaces or external catalogs.

SituationWhich barcode?Note
Your own brand, marketplace or retail salesRegistered GTIN (EAN-13)Obtained from the numbering organization
Another brand's productThe manufacturer's barcodeNo new number is generated
Shelf, carton and pallet labels inside the warehouseInternal barcodeSpecific to your business; not used outside it
Order, return or shipping labelSystem barcodeCarries the order number or tracking number
We recommend readingWhat Is a WMS? How Does a Warehouse Management System Work?

How Do You Assign Barcodes to Products with Variants?

The standard practice is for every sellable variant to carry its own barcode: the S, M and L sizes of the same T-shirt get three separate barcodes, and each color gets a different barcode as well. Otherwise the scanner cannot tell which size was scanned and the stock count comes out wrong.

The journey of a barcode in e-commerce: product definition and variant barcodes, goods receipt, shelf putaway, picking, packing verification and return receipt
The barcode carries the same number at every stage: identification, receiving, shelf, picking, packing, return.
  • Size and color: Each combination gets its own barcode and its own SKU.
  • Multipack: A pack of 3 and the single product have different barcodes, because the contents and price differ.
  • Sets and bundles: If a set is sold as a whole, it gets its own barcode; if the parts are also sold separately, they have their own barcodes too.
  • New packaging: A different package size of the same product (250 ml, 500 ml) means a different barcode.

How Is a Barcode Printed and Where Is It Applied?

Readability depends less on having the right barcode number than on printing it correctly: enough contrast, spacing and size are required. A correct barcode that is poorly printed will not scan either.

  • Keep contrast high: Black bars on a white background are the safest; colored or glossy backgrounds make scanning harder.
  • Leave margins on the sides: There must be a quiet zone to the left and right of the bars; text or border lines must not extend into it.
  • Do not shrink the size: Do not go below the barcode's standard dimensions; shrinking distorts the bar thickness.
  • Stick it on a flat surface: On a surface that folds, curves or wrinkles, the reader cannot resolve the bars.
  • Print with a label printer: A thermal label printer produces sharp output; home inkjet printers may smudge.
  • Test by scanning after printing: Before a bulk print run, test a few labels with the reader.

Where Are Barcodes Used in E-Commerce?

A barcode works with the same number at every stage, from the moment a product first enters the system until it reaches the customer and comes back as a return. That is why a barcode error turns into a separate error at every link of the chain.

  1. Product definition: When a product is entered into the catalog, its barcode is saved together with the SKU and variants.
  2. Goods receipt: Incoming boxes and products are scanned to compare what was ordered with what arrived.
  3. Shelf placement: By scanning the product and shelf barcodes, the shelf where the product is located is recorded.
  4. Picking: The picker scans the product on the shelf to confirm it is the right one.
  5. Packing verification: The product placed in the package is scanned again to check that it matches the order.
  6. Return receipt: The returned product is scanned and put back into the correct record.
Okumanızı öneririzBaşarılı Envanter Yönetimi İçin Neler Yapılmalıdır?

What Are the Barcode Scanner Options?

Choosing a barcode scanner depends on your daily scanning volume and working environment; not every business needs the same device. For small volumes a phone camera is enough, while in a busy warehouse a handheld terminal or a desktop scanner is more efficient.

ScannerAdvantageWatch outBest suited for
Phone cameraNo extra device cost, start right awaySlow and tiring at very high scanning volumesSmall warehouse, low volume
Wired or wireless handheld scannerFast, inexpensive, durable; connects to the computer like a keyboardRange of movement limited by the cable or wireless rangePacking table, stocktaking
Handheld terminalFreedom of movement, own screen and softwareHigh device costLarge warehouse, heavy picking
Desktop scannerHands-free, scan by passing the product in front of itFixed positionCheckout, packing and verification point

8 Common Barcode Mistakes

  1. Assigning the same barcode to more than one product: It becomes unclear which product was scanned, and stock gets mixed up.
  2. Not giving variants a barcode: Because sizes and colors cannot be told apart, counting and picking go wrong.
  3. Giving your own number to another brand's product: The product does not match correctly in the catalog, and the same product gets split in two.
  4. Entering an unregistered number on a marketplace: Using a number that belongs to someone else can lead to the product being mismatched or rejected.
  5. Not calculating the check digit: The scanner treats the number as invalid, and the barcode does not scan.
  6. Printing the barcode too small or with low contrast: It will not scan even if the number is correct.
  7. Confusing SKU with barcode: When a stock code is written in the barcode field, external systems cannot recognize the product.
  8. Not recording the numbering plan: When it is not known which number was given to which product, number collisions become inevitable.

Barcode Checklist

Before putting your products on sale, you should be able to answer "yes" to all of the items below.

  • Does every sellable variant have its own unique barcode?
  • Was the number for your own brand obtained from a numbering organization?
  • Is the manufacturer's barcode used for other brands' products?
  • Is the 13th digit of the barcode (the check digit) correct?
  • Are the barcode and SKU kept in separate fields without being mixed up?
  • Is the numbering plan (product, variant, SKU, barcode) recorded in a table?
  • Are the label contrast, quiet zone and size suitable, and was it tested by scanning after printing?
  • Was the barcode scanner in the warehouse chosen according to volume?
  • Is the GTIN field filled in on marketplace and catalog product records?
  • Are products scanned and recorded when returns are received?

Barcode and SKU Management with Faprika

Once you have set up your barcode and SKU system, processing it by hand item by item takes time. The Faprika e-commerce platform includes the following tools for this stage (you can see which feature starts in which plan on the e-commerce plans page):

  • Automatic SKU and barcode generation: Under Catalog > Product Management, you generate the stock code and barcode with one click using the buttons on the product edit screen; a step-by-step guide is in the Automatic SKU and Barcode Generation tutorial. The barcode generated by the panel is a unique identifier within your own catalog; if a marketplace or search engines require a registered GTIN for a product of your own brand, enter the number you obtained from the numbering organization.
  • Product variations: You can define options such as size and color as variants and enter separate stock and price for each variant; the steps are in the Adding a New Product tutorial.
  • Bulk product update: To update the barcode, stock code or price of many products at once, you can watch the Bulk Product Update tutorial.
  • Warehouse management and barcode scanning: To carry out goods receipt, shelf placement, picking and counting by scanning barcodes, use the WMS Warehouse Management System and order verification (scanning at packing) solutions; coverage varies by plan.

Frequently Asked Questions

What is a barcode?

A barcode is a form of a product's number shown with lines and spaces of varying thickness, which optical readers can decode quickly. The barcode itself carries no product information; the scanned number is linked to the product record in the system and displays its name, price and stock.

Are EAN-13 and GTIN the same thing?

GTIN is the name of the numbering standard that identifies trade items worldwide; EAN-13, EAN-8, UPC-A and GTIN-14 are different-length formats of this standard. In marketplace forms, the GTIN or barcode field is mostly filled with the EAN-13 number.

How do you get a product barcode?

Barcode numbers for products under your own brand are obtained by becoming a member of the Turkish representative office of the organization that manages the numbering standard. The organization assigns you a company number block; you assign numbers from this block to your products, add the check digit and generate the barcode image. For fees and terms, check the current conditions with the organization.

What is the difference between a barcode and a SKU?

A barcode is the unique GTIN that identifies a product worldwide and is usually obtained by the brand owner from a registered number. A SKU, on the other hand, is an internal code that only your business assigns for stock tracking. The two are kept in separate fields and are not used in place of each other.

Does every variant need its own barcode?

Yes. Each size, color or package size of the same product must receive its own barcode; otherwise the scanner cannot tell which variant was scanned and the stock count becomes wrong.

What is the last digit of a barcode for?

The last digit is the check digit, found by calculating the first 12 digits. The scanner performs this calculation on every read; if the result does not match the last digit, the read is treated as a typing or reading error and is invalid.

You May Also Like

A strong infrastructure to make a difference in e-commerce.

Expand your customer base and grow your sales.

Plan your free demo

Leave the form and our expert will call you; let's plan your store together.

Get Information

Leave your details and our expert will call you as soon as possible.

If you'd like to talk right away: +90 850 333 15 23