---
title: "What Is a Barcode? How to Get, Read and Use a Product Barcode (GTIN/EAN) in E-Commerce: A Practical Guide"
description: "What is a barcode, what do EAN-13 and GTIN mean, and how do you get a product barcode? A practical explanation of barcode anatomy, check digit calculation, the difference from SKU and its use in e-commerce."
url: https://www.faprika.com/en/blog/what-is-barcode
language: en
site: Faprika
---

# 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 explanation of barcode anatomy, check digit calculation, the difference from SKU and its use in e-commerce.

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.

Key Takeaway

“A barcode is not a picture, it is a number: the lines are simply the machine-readable form of that number. As long as the number is correct, unique and belongs to your product, every system recognizes the same product in the same way.”

## 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 reading

What 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 reading

What 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.

*Görsel: 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).)*

| Section | Number of digits | What does it mean? |
| --- | --- | --- |
| Prefix | First 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 number | Variable | The number assigned to the company that registered the barcode |
| Product number | Variable | The serial number the company gives to its own products |
| Check digit | Last 1 digit | Calculated 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.

*Görsel: 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.)*

| Type | Digits | Where is it used? |
| --- | --- | --- |
| EAN-13 | 13 | Retail products; product identification on marketplaces and in catalogs |
| EAN-8 | 8 | Very small packages where a 13-digit code will not fit |
| UPC-A | 12 | Products of North American origin |
| GTIN-14 | 14 | Bulk packaging levels such as cartons and pallets |
| QR Code | Variable (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 organization | Your business | The manufacturer |
| Scope | Unique worldwide | Unique only in your catalog | Unique in the manufacturer's catalog |
| Format | 8, 12, 13 or 14 digits | Unlimited; letters and digits | Depends on the manufacturer |
| What is it for? | Scanning, matching, catalog | Internal stock tracking, reporting, orders | Identifying the manufacturer's product |
| Does it change? | Does not change as long as the product does not change | Can be changed according to your own system | The 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ı öneririz

Pazaryerleri 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.

*Görsel: 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

Barcode number (12 digits: calculate, 13 digits: verify)

Digits entered**12**

Check digit**3**

Full barcode / result**8691234567883**

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

Tip

A valid number does not mean it is your number

The check digit only catches typing or reading errors. A mathematically valid number may belong to someone else. Do not use numbers you have calculated and generated yourself in external systems such as marketplaces or catalogs without obtaining the number for your own product from the numbering organization.

## 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.

Tip

Do not give your own barcode to someone else's product

When selling a product whose brand you do not own, use the manufacturer's barcode. Generating your own number for the same product does not match your product to the correct product on marketplaces and in catalogs, splits the same product in two under different numbers, and mixes up your stock and reports.

## 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.

| Situation | Which barcode? | Note |
| --- | --- | --- |
| Your own brand, marketplace or retail sales | Registered GTIN (EAN-13) | Obtained from the numbering organization |
| Another brand's product | The manufacturer's barcode | No new number is generated |
| Shelf, carton and pallet labels inside the warehouse | Internal barcode | Specific to your business; not used outside it |
| Order, return or shipping label | System barcode | Carries the order number or tracking number |

We recommend reading

What 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.

*Görsel: 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ı öneririz

Baş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.

| Scanner | Advantage | Watch out | Best suited for |
| --- | --- | --- | --- |
| Phone camera | No extra device cost, start right away | Slow and tiring at very high scanning volumes | Small warehouse, low volume |
| Wired or wireless handheld scanner | Fast, inexpensive, durable; connects to the computer like a keyboard | Range of movement limited by the cable or wireless range | Packing table, stocktaking |
| Handheld terminal | Freedom of movement, own screen and software | High device cost | Large warehouse, heavy picking |
| Desktop scanner | Hands-free, scan by passing the product in front of it | Fixed position | Checkout, 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](https://www.faprika.com/en/pricing) 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](https://www.faprika.com/en/tutorials/automatic-sku-barcode) 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](https://www.faprika.com/en/tutorials/add-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](https://www.faprika.com/en/tutorials/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](https://www.faprika.com/en/add-ons/wms-warehouse-management) 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.

Set up a barcoded warehouse from the panel

Define your products and variants with SKUs and barcodes, and manage every step from goods receipt to returns by scanning. Run your warehouse with barcodes using Faprika Depo.

Explore the Warehouse Management System

### You May Also Like

- [**What Is Stock Tracking? How Is It Done?**](https://www.faprika.com/en/blog/what-is-inventory-tracking)
- [**What Is WMS? How Does a Warehouse Management System Work?**](https://www.faprika.com/en/blog/what-is-wms)
- [**What Is E-Commerce Order Management?**](https://www.faprika.com/en/blog/order-management)
- [**What Should an E-Commerce Product Page Look Like?**](https://www.faprika.com/en/blog/e-commerce-product-page)
