A barcode is a machine-readable representation of data. A scanner or camera reads the pattern, decodes its value, and sends that value to software. The barcode usually identifies a product, asset, shipment, location, or web address; price, stock, and descriptive details normally live in the connected database.
A barcode converts characters into a visual pattern defined by a symbology. One-dimensional codes use bars and spaces. Two-dimensional codes arrange data in a matrix of squares, dots, or other shapes.
A barcode does not usually contain a product's price. A retail code commonly carries an identifier. The POS retrieves the current name, price, tax rule, and inventory record from its database.
This distinction matters: printing the same valid barcode on two products still creates a data problem because software cannot determine which product moved.
| Characteristic | 1D | 2D |
|---|---|---|
| Appearance | Parallel bars and spaces | Squares, dots, or cells |
| Capacity | Short identifiers | More data in a compact symbol |
| Examples | UPC, EAN, Code 128, ITF-14 | QR Code, Data Matrix |
| Reader | Laser or image scanner | 2D imager or compatible camera |
“Barcode” is the broad category. A QR Code is a specific two-dimensional barcode.
| Type | Typical use |
|---|---|
| UPC-A | 12-digit GTIN on consumer products, especially at North American retail checkout. |
| EAN-13 | 13-digit GTIN used globally for retail trade items. |
| Code 128 | Alphanumeric internal SKUs, inventory, shipping, and logistics. |
| GS1-128 | GS1 identifiers with structured lot, date, quantity, and logistics data. |
| ITF-14 | Shipping cases and corrugated packaging not usually scanned at retail POS. |
| Code 39 | Industrial, government, and legacy asset applications. |
| QR Code | URLs, mobile experiences, documents, and some product applications. |
| Data Matrix | Small parts, healthcare, manufacturing, and direct-part marking. |
The right type depends on the identifier, scanning environment, capacity, label size, surface, equipment, industry rules, and trading-partner requirements.
A GTIN is a Global Trade Item Number used in the GS1 system. A UPC-A symbol commonly carries a GTIN-12, while an EAN-13 symbol carries a GTIN-13. People often call both the number and symbol a “UPC barcode,” but the identifier and its machine-readable carrier are distinct.
GS1 is the official source for GS1 GTINs and EAN/UPC standards. A business selling through retail channels should obtain identifiers through GS1 and confirm each partner's requirements. Rendering a random 12-digit number as UPC-A does not make it an officially assigned GTIN.
An SKU is an internal stock identifier. A barcode is a machine-readable carrier. A business can encode an alphanumeric SKU in Code 128 for internal use and also store an official UPC or EAN on the same product record.
A Code 128 inventory label may encode only COF-BEA-ETH-1KG. A UPC-A carries a GTIN-12. GS1-128 and GS1 DataMatrix can structure identifiers and attributes such as lot number, serial number, or date. A QR Code can contain a URL or text. For most inventory systems, a stable identifier linked to a database is simpler than packing changing product data into the symbol.
Do not crop the quiet zone, stretch a code disproportionately, place it on a busy background, or assume one successful phone scan proves production quality.
If a retailer, marketplace, logistics partner, healthcare system, or regulator specifies a format, follow it.
Code 128 suits alphanumeric SKUs when the scanner and inventory or POS software support it.
Products entering general retail distribution commonly need official GTINs encoded in EAN/UPC symbols.
QR Code, Data Matrix, or GS1 DataMatrix can carry more data or fit particular environments. Scanner compatibility matters.
The free Stash barcode and label generator supports internal label workflows. It does not issue official UPC, EAN, or GTIN identifiers.
Scanning reduces typing but cannot fix dirty product data or missing stock movements. Pair it with a reliable receiving process and regular physical inventory counts.
First confirm the exact characters returned by the scanner. Then verify that the identical value exists on the intended product record.
A visual, machine-readable representation of data decoded by a scanner.
Usually not. It commonly carries an identifier, while the POS retrieves the current price.
A barcode is the carrier. A UPC commonly refers to a GTIN-12 encoded in a UPC-A symbol.
Yes. It is a two-dimensional barcode.
You can generate internal labels from controlled values. Official retail GTINs follow GS1 rules.
There is no universal best. Code 128 is common internally; EAN/UPC is common for retail trade items.
Not when the system must distinguish them. Duplicate mappings cause incorrect transactions.
Yes. Alphanumeric SKUs can often be encoded in Code 128.
No. Accuracy still depends on clean data and correctly recorded movements.
Prepare unique SKUs, encode each in a compatible type, print, and test with the real system. Use the free Stash barcode generator.
Create product codes with the free SKU generator, then turn them into labels with the free barcode generator. For ongoing stock, purchasing, suppliers, forecasting, and multiple locations, explore Stash inventory management.
Last reviewed: August 9, 2026.
Stash connects inventory tracking, forecasting, purchasing, suppliers, and multi-location visibility so growing physical businesses can act on the numbers with less manual work.