How to get a barcode for your product: GS1 company prefix and EAN-13 / UPC-A
How to get a barcode for a product you sell: GS1 company prefixes, how EAN-13 and UPC-A numbers are built, and when internal codes are enough instead.
Published
If you need a barcode for a product you sell in shops or on online marketplaces, the way to get one is to apply to your national GS1 member organisation for a GS1 company prefix, then assign a product number to each item you sell. A retail barcode is not a number you invent with a free tool. Anyone can draw the stripes, but the number belongs only to the company that registered it.
If you only track supplies, equipment or products sold in your own shop, you need not register anything. This article explains how the number is built, the usual steps, when you need a registered code and when an internal number will do, and what to watch when printing labels.
What a retail barcode is: a number that identifies a product
A retail barcode identifies a product worldwide. Depending on the region you will see EAN-13 (13 digits) or UPC-A (12 digits), both part of the GS1 system. A scanner reads the number, and the system behind it looks up the name and price.
The barcode carries no name or price, only “this product is this number”. That is why the number must be unique worldwide and is allocated by the organisation that manages numbers instead of being chosen freely.
How EAN-13, EAN-8, UPC and other retail formats differ is explained in Barcode types and standards.
How the number is built: company prefix, item reference, check digit
A 13-digit EAN-13 number is made of three broad parts. UPC-A follows the same idea with 12 digits.
| Part | Who decides it | What it does |
|---|---|---|
| GS1 company prefix (the leading part) | Your GS1 member organisation issues it to you | Says which company the product belongs to |
| Item reference | You assign it | Says which product it is within your company |
| Check digit (the last digit) | It is calculated | A test digit that catches misreads |
Company prefix length varies with the type you are issued, and a longer prefix leaves room for fewer products. Which type to choose and how many products you will need is a question for your GS1 member organisation, so check its current guidance.
You assign item references yourself. The same product in a different size, colour or pack count normally gets a different code, so keep your own table of products and codes.
For EAN-13, the check digit comes from the first 12 digits. Add the digits in odd positions (from the left) as they are, and the digits in even positions multiplied by 3. Subtract the total’s remainder after dividing by 10 from 10 (a remainder of 0 gives 0). That is the last digit. Barcode and label software adds it automatically, but knowing the last digit follows from the others helps you spot a typing mistake.
The usual steps: apply to your national GS1 member organisation
The broad flow is below. The process, required documents and terms differ by country and can change, so check the current procedure with your national GS1 member organisation before you apply.
- Check that you need one. Find out whether a retailer or marketplace is asking for a registered code (see the next section).
- Apply to your national GS1 member organisation for a company prefix. Registration is per company. You receive not a number per product but a range of numbers your company may use.
- Assign item references. List your products, decide a code for each, and keep the pairing in a table.
- Add the check digit and create the barcode. Output the number in the right format, such as EAN-13 or UPC-A, from label or design software.
- Print it and test that it scans. Scan it with the scanners or phones you will actually use and confirm the number.
There are also rules about discontinued products, reusing codes and keeping your registration current; check those in the official guidance too.
You could pick a number yourself and draw a barcode that looks real, but we advise against it. An unregistered number can collide with another company’s product, and a retailer’s system will treat it as that product.
When you need a registered code and when an internal number is enough
You need a registered GS1 barcode when your product has to be identified outside your own business. Otherwise an internal number is enough.
| Situation | Registered GS1 barcode | Internal number or label |
|---|---|---|
| Selling products at a retail checkout | Needed | Cannot be used |
| Supplying products to a wholesaler or distributor | Depends on the buyer’s requirements | Depends on the buyer’s requirements |
| Listing products on an online marketplace | Rules differ by marketplace; check the seller guidance | Depends on the rules |
| Managing things only inside your own shop | Not needed | Can be used |
| Managing equipment, materials and consumables | Not needed | Can be used |
| Managing equipment you lend out | Not needed | Can be used |
When in doubt, ask the buyer or marketplace which kind of code it requires. You can often get a prefix once you need it, so there is no need to register ahead of time with no sales planned.
Internal codes: restricted-circulation numbers stay inside your own business
A barcode used only inside one business is called an internal code, or a restricted-circulation code (sometimes a store-internal code). A business assigns it to its own products, and its own checkout or stock system reads it. No registration is needed, but it means nothing outside that business.
When you create internal numbers, keep these points in mind.
- Keep them distinguishable from retail codes. If you make them all 13 digits, they look like real retail barcodes. Set a rule that shows a number is internal, such as a different format or length.
- Do not put the name or price in the number. A price change would force a number change. Use the number only to identify, and keep name and price in your stock record.
- Do not change a number once it is set. Old labels should still scan as the same product.
- Do not put them on goods that leave the business. Do not send a product with an internal number to a retailer as it is.
For internal labels, a QR code is often easier: phones read it more easily and it prints smaller. See How to make barcodes for a small business.
Printing and sticking: points to watch
Print quality can make a registered barcode fail to scan. Check these before you put it on a product.
- Leave a quiet zone. Scanners need white space outside both ends of the bars. Do not crop the label tightly.
- Do not resize it freely. Squashing or over-shrinking makes it unreadable. Start with the label software’s standard size.
- Print dark on white. Avoid weak contrast or printing over a pattern.
- Avoid curves and creases. Bottles and wrinkled bags make scans fail. Use a flat surface where you can.
- Print the number too. Digits beneath the bars can be typed in when a scan fails.
- Do a test print. Stick it on the real product and check that your scanner or phone reads it.
For many labels, keep a table (a spreadsheet works) of each product’s number, and use a label printer, so numbers do not get mixed up.
You may not need to get one at all
If you have no products to sell and only manage what you use, you do not need to register a barcode. A small shop whose checkout works by typing or picking names can manage without one too.
If you only resell goods you bought in, the manufacturer has probably already put a barcode on them. Scan that barcode and manage the stock with it. You register a code when you make or pack a product under your own name.
Where Tana fits
Tana is a shared inventory app for teams. It does not issue or register retail barcodes; it looks after your products once you have the codes.
- Attach a manufacturer’s barcode to an item. Register the barcode on a product to an item, and scanning it opens that item so you can record stock. You can also search by barcode. Tana reads common formats such as EAN-13, UPC, Code 128 and QR codes.
- Scan with a phone or tablet camera. No dedicated reader is needed: use the iPhone or iPad camera, or the browser’s camera in the web app.
- Print internal QR labels. From the web app, print QR labels for items, and for storages such as shelves, boxes, rooms and vehicles. Scanning opens that item or storage. Use these for things with no barcode.
- See the same latest numbers as your team. Use − and + as stock goes out and comes in, and = to enter the exact counted number at a stocktake. The history shows who changed what, and when.
Barcodes for products sold at retail must be obtained from your national GS1 member organisation.
Frequently asked questions
Where can I get a barcode for my product?
Apply to your national GS1 member organisation for a GS1 company prefix. The process, required documents and terms differ and can change, so check the current information on its official site.
Can I make a retail barcode myself?
You can draw the barcode with label software, but the number belongs only to the company that registered it. A number you choose yourself can collide with another company’s product.
Do I need a separate code for each product?
Normally yes. Products that differ in size, colour or pack count are assigned different codes. Check your GS1 member organisation’s guidance.
What is the difference between an internal number and a registered GS1 barcode?
A registered GS1 barcode identifies the product at checkouts and in systems outside your business. An internal number works only in your own system and needs no registration. For equipment and materials, it is enough.
Do I need to register a barcode for goods I buy in?
If the manufacturer has put a barcode on them, no. You can scan that barcode as it is in your inventory management.