SKU vs Barcode: The Difference and How to Use Both in a Small Shop
A SKU is a code you invent; a barcode is how a code is drawn for a scanner. Which number to encode, what WooCommerce stores where, and a labelling plan for own-made and bought-in goods.
In this article15 sections
SKU vs barcode comes down to this: a SKU is a product code you create for your own business, and a barcode is a machine readable picture of a code. They are not alternatives. A barcode can contain your SKU, or it can contain a registered product number such as a GTIN.
The practical question is which number to put into the bars on each product. That depends on who made the item and where it will be sold.
SKU or barcode meaning, with the third term#
| Term | What it is | Who creates it | Typical look |
|---|---|---|---|
| — | — | — | — |
| SKU | Your internal stock code | You | MUG-BL-350 |
| GTIN (UPC, EAN, ISBN) | Product number from a numbering system | Issued through GS1 or the ISBN system | 8 to 14 digits |
| Barcode | Visual form a scanner reads | Printed from a code | Stripes or a 2D square |

GS1 describes the GTIN as an identifier for trade items. A UPC or EAN on a retail pack is such a number, drawn as a barcode.
What a SKU is good for#
A SKU is for people and for your systems. It can carry meaning: product family, colour and size. You can change your scheme and nobody outside must approve it. It should be unique per item you stock, so every variation needs its own. Our guide to creating SKU numbers and the free SKU generator help with patterns.
What a barcode is good for#
Speed and accuracy. Scanning avoids typing a long code wrongly at the till, at goods in and during counts. The scanner does not know what your product is. It passes the characters to the software, which looks them up. If the software cannot find that string, scanning does nothing useful.
SKU vs UPC: which should go in the barcode?#
| Your item | Encode | Why |
|---|---|---|
| — | — | — |
| Bought-in goods with a printed UPC or EAN | Use the printed one | No relabelling, and the maker’s number identifies it |
| Your own goods sold only in your shop | Your SKU in Code 128 | Free to create and long enough for letters |
| Your own goods sold to other retailers or marketplaces that require a GTIN | A GTIN from GS1 | Outside systems expect a registered number |
| Loose or bundled items | Your SKU or an internal code | No manufacturer code exists |
Do not invent digits that look like a UPC or EAN. They may belong to someone else. If you need a real number, get it from GS1, and check the digits of a number you were given with our free GTIN check digit calculator.
SKU vs barcode number in WooCommerce#
WooCommerce has a SKU field and a separate field for GTIN, UPC, EAN or ISBN, on products and on variations. Put your own code in SKU and the registered number in the GTIN field. Keeping them apart means you never need to choose one over the other. See WooCommerce GTIN for what the field accepts.
Some POS and label plugins add their own barcode field as well. Decide which field is the master, and do not let three fields drift apart.
An example labelling plan#
A gift shop stocks 300 products: 220 from brands with printed EANs and 80 made locally with no code.
- For the 220, copy each printed number into the GTIN field. Print no new label.
- For the 80, create SKUs such as CNDL-LAV-200.
- Print Code 128 labels containing those SKUs.
- Scan every shelf item once and note any that fail.
- Add a rule that new products get a code before they reach the shelf.
The shop prints labels for 80 products, not 300. If one label costs 0.03 and each of the 80 lines has 25 units, that is 2,000 labels, or 60.00. Relabelling all 300 lines at the same stock depth would be 7,500 labels, or 225.00, plus the hours to stick them on.
Keep codes safe to scan#
- Do not reuse a SKU for a different item.
- Avoid spaces and unusual symbols in SKUs you intend to print.
- Keep codes short enough for the label width, because longer codes make wider symbols.
- Be careful with leading zeros in spreadsheets, which may drop them. Format code columns as text.
- Avoid letters that look like numbers, such as O and 0, in codes people type.
Test at the counter, not at the desk#
Scan a sample from each group into a blank text box. Compare the characters with the field in your product. Common surprises are a missing leading zero on a UPC, a check digit that the scanner leaves out and a variation sharing its parent’s code. If a scan finds nothing, our guide to barcode scanner product not found walks through the causes.
Do you need barcodes at all?#
A tiny catalogue with a handful of sales a day can run on a search box. Barcodes start paying off when queues form, when similar variants get confused or when counting takes a whole day. SKUs are worth having from the start, because retrofitting codes to hundreds of products is the tedious part.
Scanning both with Retail POS#
Retail POS is a free point of sale for WooCommerce on WordPress.org. A scanned code is matched against the product’s barcode field, then WooCommerce’s GTIN field, then the SKU and WooCommerce’s SKU index, and a variation wins over its parent. So the shop in the example can scan printed EANs and its own SKU labels at the same till.

It prints labels for products that have a SKU or barcode, choosing EAN-13 or EAN-8 where the number fits and Code 128 otherwise, with label size and contents set in millimetres. It works with USB or Bluetooth keyboard style scanners and with a phone camera on the sale and returns screens. It does not issue or register GTINs. For scanning with phones, see barcode scanning with a phone.
A one page rule to share#
Write down which field holds what, who creates new codes, the SKU pattern, when to print a label and how to report a code that does not scan. New staff can follow it on day one, and your counts, orders and till will all be looking at the same numbers.
Moving from no codes to a clean catalogue#
If your shop has neither, do the work in a sensible order. Start with your best sellers, which are scanned most often. Give each variation a SKU before anything else, because labels, counts and orders all depend on it. Next, capture printed manufacturer numbers by scanning them straight into the GTIN field, which avoids typing errors. Print labels last, only for items without a usable code.
Check for duplicates as you go. Two products sharing one code will make the till choose one of them, and the stock of the other will drift. Export your catalogue, sort by SKU and by GTIN, and look for repeats and blanks. Keep a count of what remains, for example 180 of 300 lines done, so the work has a visible end.
When suppliers change packaging#
A supplier may change a printed number when the pack size or formula changes. If a familiar item suddenly stops scanning, compare the new number with the stored one before making a new product. Decide whether it is the same stock item for you. If old and new packs are on the shelf together and your system holds only one code, label one group with your SKU until the old stock sells through. Make the change on a quiet day and scan both packs afterwards to confirm that each one finds the right item.
Who is allowed to create codes#
Give one person, or one written rule, control over new SKUs. Two people inventing codes at the same time is how a shop ends up with MUG-BLU-350 and MG-BL-350 for the same mug. Keep a short list of the abbreviations you use for families and colours, and add to it before using a new one. When a product is discontinued, retire its code rather than handing it to something new, because old orders and counts still refer to it.
SKUs and barcodes: frequently asked questions#
Is a SKU the same as a barcode?
No. A SKU is an internal code you assign to a stock item. A barcode is a visual encoding that a scanner reads. You can print your SKU as a barcode, or use a barcode that carries a manufacturer’s GTIN instead.
Can I make my own barcodes?
You can encode your own SKUs, commonly as Code 128, for use inside your business. If retailers or marketplaces require a GTIN, obtain a genuine one through GS1 or the relevant system rather than inventing digits in a retail format.
Do I need both a SKU and a UPC?
It is often useful. The UPC identifies the manufacturer’s retail item and can be scanned as printed, while your SKU follows your own naming and stock rules. Store them in separate fields so neither overwrites the other.
Where do I put barcodes in WooCommerce?
Use the GTIN, UPC, EAN or ISBN field for registered product numbers and the SKU field for your own codes, on each variation where relevant. If a plugin adds another barcode field, decide which field is authoritative and keep it consistent.
Why does my scanner not find a product?
The scanned characters probably differ from what is stored. Scan into a plain text box and compare, checking leading zeros, check digits, spaces and whether the code is on the correct variation. Also confirm the product is published.
