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.
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:
- 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.
- 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.
- 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.
- 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.
| Prefix | Country or territory of registration |
|---|---|
| 000 – 019, 030 – 039, 060 – 139 | United States and Canada |
| 020 – 029, 040 – 049, 200 – 299 | Internal in-store use (not for goods on the market) |
| 300 – 379 | France and Monaco |
| 380 | Bulgaria |
| 383 | Slovenia |
| 385 | Croatia |
| 387 | Bosnia and Herzegovina |
| 389 | Montenegro |
| 400 – 440 | Germany |
| 450 – 459, 490 – 499 | Japan |
| 460 – 469 | Russia |
| 470 | Kyrgyzstan |
| 471 | Taiwan |
| 474 | Estonia |
| 475 | Latvia |
| 476 | Azerbaijan |
| 477 | Lithuania |
| 478 | Uzbekistan |
| 479 | Sri Lanka |
| 480 | Philippines |
| 481 | Belarus |
| 482 | Ukraine |
| 484 | Moldova |
| 485 | Armenia |
| 486 | Georgia |
| 487 | Kazakhstan |
| 488 | Tajikistan |
| 489 | Hong Kong |
| 500 – 509 | United Kingdom |
| 520 – 521 | Greece |
| 528 | Lebanon |
| 529 | Cyprus |
| 530 | Albania |
| 531 | North Macedonia |
| 535 | Malta |
| 539 | Ireland |
| 540 – 549 | Belgium and Luxembourg |
| 560 | Portugal |
| 569 | Iceland |
| 570 – 579 | Denmark, the Faroe Islands and Greenland |
| 590 | Poland |
| 594 | Romania |
| 599 | Hungary |
| 600 – 601 | South Africa |
| 603 | Ghana |
| 608 | Bahrain |
| 609 | Mauritius |
| 611 | Morocco |
| 613 | Algeria |
| 615 | Nigeria |
| 616 | Kenya |
| 619 | Tunisia |
| 620 | Tanzania |
| 621 | Syria |
| 622 | Egypt |
| 625 | Jordan |
| 626 | Iran |
| 627 | Kuwait |
| 628 | Saudi Arabia |
| 629 | United Arab Emirates |
| 640 – 649 | Finland |
| 690 – 699 | China |
| 700 – 709 | Norway |
| 729 | Israel |
| 730 – 739 | Sweden |
| 740 – 745 | Central America (Guatemala, El Salvador, Honduras, Nicaragua, Costa Rica, Panama) |
| 746 | Dominican Republic |
| 750 | Mexico |
| 754 – 755 | Canada |
| 759 | Venezuela |
| 760 – 769 | Switzerland and Liechtenstein |
| 770 – 771 | Colombia |
| 773 | Uruguay |
| 775 | Peru |
| 777 | Bolivia |
| 778 – 779 | Argentina |
| 780 | Chile |
| 784 | Paraguay |
| 786 | Ecuador |
| 789 – 790 | Brazil |
| 800 – 839 | Italy and San Marino |
| 840 – 849 | Spain and Andorra |
| 850 | Cuba |
| 858 | Slovakia |
| 859 | Czech Republic |
| 860 | Serbia |
| 865 | Mongolia |
| 867 | North Korea |
| 868 – 869 | Turkey |
| 870 – 879 | Netherlands |
| 880 | South Korea |
| 883 | Myanmar |
| 884 | Cambodia |
| 885 | Thailand |
| 888 | Singapore |
| 890 | India |
| 893 | Vietnam |
| 896 | Pakistan |
| 899 | Indonesia |
| 900 – 919 | Austria |
| 930 – 939 | Australia |
| 940 – 949 | New Zealand |
| 955 | Malaysia |
| 958 | Macao |
| 977 | Serial publications (ISSN) |
| 978 – 979 | Books (ISBN) |
| 980 | Refund receipts |
| 981 – 984 | Common currency coupons |
| 990 – 999 | Coupons |
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:
- Step 1: add all the digits in the odd positions (1, 3, 5, 7, 9, 11) to obtain total A.
- 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.
- Step 3: calculate S = A + (B × 3).
- 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:
| Type | Features | Main uses |
|---|---|---|
| EAN-13 and EAN-8 | One-dimensional (1D) code with 13 or 8 digits, including a country prefix | Retail consumer goods worldwide |
| UPC-A and UPC-E | 1D code with 12 digits, used mainly in the United States and Canada; EAN-13 is in effect an extension of UPC | Retail in North America |
| Code 128 | 1D code that can encode letters, numbers and symbols, with flexible length and high capacity | Logistics, warehousing, shipping and internal management |
| QR code | Two-dimensional (2D) square code holding large amounts of data, such as web addresses, text or payment information | Traceability, 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/
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/
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.
Related insights
Trademark Registration in Vietnam for Foreign Companies (2026)
17 July 2026
Intellectual PropertyPatent Registration in Vietnam for Foreign Applicants (2026)
17 July 2026
Intellectual PropertyIndustrial Design Registration in Vietnam for Foreign Firms (2026)
16 July 2026
Intellectual PropertyEnforcing Intellectual Property Rights in Vietnam in 2026
16 July 2026
Need help protecting your rights in Vietnam?
LTV Law acts as your licensed local representative — from filing to enforcement.