Corporate17 July 2026

Barcode Country Prefixes and How to Read the Origin Code

A guide to the GS1 country prefix system, what the leading digits of an EAN-13 barcode mean, and why the prefix indicates where the code was registered rather than where the product was made.

Lawyer Do Khanh Linh — Director, LTV Law
Reviewed by Lawyer Do Khanh Linh — Director, Hanoi Bar Association
Updated 17 July 2026
Barcode Country Prefixes and How to Read the Origin Code
Table of contents

You pick up a product, see that the digits under the barcode begin with 893, 690 or 888, and wonder where it comes from. The first two or three digits of a barcode act as a kind of passport: they show which national GS1 organisation the barcode was registered with. This guide sets out the full list of GS1 country prefixes, explains how to read them and how to calculate the check digit to spot an invented code, and makes one important point clear: a barcode shows where the code was registered, not necessarily where the product was made.

It is written both for buyers who want to look up the origin of goods and for businesses, including foreign-owned companies operating in Vietnam, that are preparing to register barcodes for their own products.

What is a barcode and who manages the system?

A barcode is a sequence of digits combined with parallel black and white bars of different widths, which lets a scanner read and identify a product automatically, quickly and accurately. Each product traded on the global market has a unique number that distinguishes it from millions of other products.

The global barcode system is managed by GS1, a non-profit organisation headquartered in Belgium and present in more than 110 countries. GS1 allocates country prefixes (the first three digits) to its member organisation in each country. In Vietnam, the member is GS1 Vietnam under the National Committee for Standards, Metrology and Quality, the only body authorised to issue barcodes to Vietnamese businesses.

Structure of an EAN-13 barcode

EAN-13 is the most widely used barcode in the world. It has 13 digits and is used on almost all retail consumer goods. The 13 digits fall into four groups:

  1. Country prefix (the first 2 to 3 digits): allocated by GS1 Global, it shows which national GS1 organisation the product was registered with. For example, 893 is Vietnam and 690 to 699 is China.
  2. Company number (the next 4 to 7 digits): allocated by the national GS1 organisation to each business. Its length depends on how many products the business registers.
  3. Product number (2 to 5 digits): set by the business itself to distinguish its own items. The company number and product number together always total 9 digits.
  4. Check digit (the last digit): calculated from the previous 12 digits using a fixed formula, so that the scanner can detect a misread.

Taking the example 8 934 5xx xxxxx C: 893 is Vietnam, 4 5xx is the company number, the following digits are the product number and C is the check digit. Our article on barcode structure and types explains this in more detail.

EAN-8 barcodes

EAN-8 is a shortened 8-digit version for products whose packaging is too small to carry an EAN-13 code, such as sweets, lipsticks, chewing gum or small spice sachets. An EAN-8 code consists of a 2 to 3 digit country prefix, a 4 to 5 digit item number and 1 check digit. Because capacity is limited, EAN-8 numbers must be allocated individually by GS1; a business cannot derive one from its EAN-13 numbers.

How to read the first three digits

To see where a product was registered, look at the first two or three digits of the number under the barcode and compare them with the table below. For example:

  • starting with 893: registered in Vietnam;
  • starting with 690, 691 and so on up to 699: registered in China;
  • starting with 885: registered in Thailand;
  • starting with 00 to 13: registered in the United States or Canada.

Important: the barcode does not necessarily show where the product was made

This is the most common misunderstanding. The first three digits show only which national GS1 organisation the barcode was registered with. They do not confirm that the product was manufactured in that country, because:

  • a Vietnamese company (prefix 893) may have goods manufactured under contract in China or Thailand and then import them for distribution; the products still carry 893 because the company registered its codes in Vietnam;
  • conversely, a multinational group may register its codes in one country but run factories in many others;
  • a business may lawfully obtain barcodes from another country.

To establish the actual origin of goods, rely on the "Made in" statement, the supplementary label, import stamps and certificates of origin, not on the barcode alone.

Full list of country barcode prefixes (GS1 standard)

The table below lists GS1 country prefixes in ascending order. Note that some ranges, such as 020 to 029, 040 to 049 and 200 to 299, are reserved for internal in-store use and are not used for goods placed on the market.

PrefixCountry or territory of registration
000 – 019, 030 – 039, 060 – 139United States and Canada
020 – 029, 040 – 049, 200 – 299Internal in-store use (not for goods on the market)
300 – 379France and Monaco
380Bulgaria
383Slovenia
385Croatia
387Bosnia and Herzegovina
389Montenegro
400 – 440Germany
450 – 459, 490 – 499Japan
460 – 469Russia
470Kyrgyzstan
471Taiwan
474Estonia
475Latvia
476Azerbaijan
477Lithuania
478Uzbekistan
479Sri Lanka
480Philippines
481Belarus
482Ukraine
484Moldova
485Armenia
486Georgia
487Kazakhstan
488Tajikistan
489Hong Kong
500 – 509United Kingdom
520 – 521Greece
528Lebanon
529Cyprus
530Albania
531North Macedonia
535Malta
539Ireland
540 – 549Belgium and Luxembourg
560Portugal
569Iceland
570 – 579Denmark, the Faroe Islands and Greenland
590Poland
594Romania
599Hungary
600 – 601South Africa
603Ghana
608Bahrain
609Mauritius
611Morocco
613Algeria
615Nigeria
616Kenya
619Tunisia
620Tanzania
621Syria
622Egypt
625Jordan
626Iran
627Kuwait
628Saudi Arabia
629United Arab Emirates
640 – 649Finland
690 – 699China
700 – 709Norway
729Israel
730 – 739Sweden
740 – 745Central America (Guatemala, El Salvador, Honduras, Nicaragua, Costa Rica, Panama)
746Dominican Republic
750Mexico
754 – 755Canada
759Venezuela
760 – 769Switzerland and Liechtenstein
770 – 771Colombia
773Uruguay
775Peru
777Bolivia
778 – 779Argentina
780Chile
784Paraguay
786Ecuador
789 – 790Brazil
800 – 839Italy and San Marino
840 – 849Spain and Andorra
850Cuba
858Slovakia
859Czech Republic
860Serbia
865Mongolia
867North Korea
868 – 869Turkey
870 – 879Netherlands
880South Korea
883Myanmar
884Cambodia
885Thailand
888Singapore
890India
893Vietnam
896Pakistan
899Indonesia
900 – 919Austria
930 – 939Australia
940 – 949New Zealand
955Malaysia
958Macao
977Serial publications (ISSN)
978 – 979Books (ISBN)
980Refund receipts
981 – 984Common currency coupons
990 – 999Coupons

Note: this table reflects GS1 prefix allocations and may be updated over time. The latest official list is published by GS1 Vietnam (gs1.org.vn).

Checking whether a barcode is valid using the check digit

A very useful way to detect an invented barcode is to recalculate the check digit, the last digit of an EAN-13 code. If your result matches the last digit printed on the product, the code is mathematically valid; if it does not, the code is almost certainly wrong or fake.

EAN-13 check digit formula

Number the 13 positions from left to right (positions 1 to 13, where position 13 is the check digit to be verified). Then:

  1. Step 1: add all the digits in the odd positions (1, 3, 5, 7, 9, 11) to obtain total A.
  2. Step 2: add all the digits in the even positions (2, 4, 6, 8, 10, 12) to obtain total B, then multiply it by 3.
  3. Step 3: calculate S = A + (B × 3).
  4. Step 4: take the nearest multiple of 10 that is equal to or greater than S and subtract S. The result is the check digit. If S is already a multiple of 10, the check digit is 0.

Worked example

Take the sample code 8 9 3 4 5 6 3 4 0 0 0 5 (?), where the 13th digit is unknown.

  • Odd positions (1, 3, 5, 7, 9, 11): 8 + 3 + 5 + 3 + 0 + 0, so A = 19.
  • Even positions (2, 4, 6, 8, 10, 12): 9 + 4 + 6 + 4 + 0 + 5 = 28, so B × 3 = 84.
  • Total S = 19 + 84 = 103.
  • The nearest multiple of 10 that is equal to or greater than 103 is 110, so the check digit is 110 minus 103, which is 7.

The complete valid code is therefore 8934563400057. If the last digit printed on the product is not 7, the code is not valid.

Reverse check: apply the formula to all 13 digits including the check digit. If S is divisible by 10, the code is valid. In the example, 103 plus 7 gives 110, which is divisible by 10, so the code is valid. Further tips are in our guide on how to check if a barcode is genuine.

Other barcode types: how UPC, Code 128 and QR codes differ from EAN

EAN-13 is only one of many barcode types. A quick comparison:

TypeFeaturesMain uses
EAN-13 and EAN-8One-dimensional (1D) code with 13 or 8 digits, including a country prefixRetail consumer goods worldwide
UPC-A and UPC-E1D code with 12 digits, used mainly in the United States and Canada; EAN-13 is in effect an extension of UPCRetail in North America
Code 1281D code that can encode letters, numbers and symbols, with flexible length and high capacityLogistics, warehousing, shipping and internal management
QR codeTwo-dimensional (2D) square code holding large amounts of data, such as web addresses, text or payment informationTraceability, marketing, payments and website access

The key difference is that EAN and UPC contain only an identification number, while a QR code can contain a link to detailed traceability information. That is why more and more products carry both an EAN-13 code and a QR code.

Lookup apps and the limits of relying on a barcode

Consumers can use apps such as iCheck, Scan and Check or Barcode Scanner to scan a barcode and look up the product name, the owning business and related information. Their limits should be understood:

  • a barcode only shows that the product has a validly registered code; it does not guarantee that the goods are genuine, because sophisticated counterfeits can copy the barcode of genuine goods;
  • a valid check digit only confirms that the number follows the mathematical formula; it says nothing about quality or authenticity;
  • apps rely on databases updated by users and businesses, so the information may be incomplete or wrong.

A barcode is a helpful aid, not conclusive proof. Combine it with anti-counterfeiting stamps, invoices, reputable points of sale and origin information.

Who issues Vietnam's 893 barcodes?

The prefix 893 was allocated to Vietnam by GS1 Global in 1995, when Vietnam became a member. Barcodes with the 893 prefix are issued and managed for Vietnamese businesses by the National Committee for Standards, Metrology and Quality through the National Barcode Centre (GS1 Vietnam). A business that wants lawful barcodes beginning with 893 must file online and be granted the right to use the barcode numbers under Decree No. 37/2026/ND-CP. Since 1 July 2026, applications are filed on the National Public Service Portal using a VNeID account, and an electronic certificate of the right to use the barcode numbers is issued.

For more detail, see our articles on the 893 barcode prefix and registering a GS1 barcode for a business. Importers should also note the rules on barcodes in customs declarations.

Frequently asked questions

Which country does the 893 barcode belong to?

893 is the country prefix of Vietnam, allocated by GS1 Global and managed by GS1 Vietnam. A product carrying 893 means that the business registered its barcode in Vietnam.

Which country do barcodes starting with 8938 or 8935 belong to?

They are still Vietnamese codes. Only the first three digits (893) identify the country; the following fourth, fifth and sixth digits belong to the company number issued by GS1 Vietnam.

Does an 893 barcode mean the product was made in Vietnam?

Not necessarily. The 893 prefix only shows that the business registered its code in Vietnam; the product may have been manufactured elsewhere and imported, so check the "Made in" label to find the origin.

What does a barcode starting with 690 mean?

The range 690 to 699 belongs to China, so products carrying these prefixes had their barcodes registered in China.

How can I tell whether a barcode is genuine or fake?

You can recalculate the check digit, the last digit, using the EAN-13 formula in this article; if it matches, the code is mathematically valid, but this does not guarantee that the goods are genuine, so also check anti-counterfeiting stamps and buy from reputable sources.

What is the difference between EAN-13 and UPC?

EAN-13 has 13 digits and is used worldwide, while UPC-A has 12 digits and is used mainly in the United States and Canada; EAN-13 is in effect an extension of UPC, adding one digit at the front to encode the country.

Where does a business in Vietnam register its own barcodes?

Since 1 July 2026, businesses file online on the National Public Service Portal with a VNeID account to obtain a company number and an electronic right to use barcode numbers under Decree No. 37/2026/ND-CP, and the application is processed by the National Barcode Centre (GS1 Vietnam).

How LTV Law helps

Knowing the country prefix table helps you see quickly where a product's barcode was registered, and the check digit helps you spot invented codes, but always remember that a barcode shows the place of GS1 registration, not the place of manufacture.

For businesses that need lawful 893 barcodes that scan correctly in retail systems in Vietnam and abroad, LTV Law handles the GS1 application end to end, from advice and online filing to follow-up until the right to use the barcode numbers is granted. See our barcode registration service or contact our team for a quotation.

This article is for general information only and does not constitute legal advice.

barcode prefixGS1country codes

Need help protecting your rights in Vietnam?

LTV Law acts as your licensed local representative — from filing to enforcement.

ZALOCALL