Which Barcode Type Should You Use? Comparison of Code 128, EAN, QR Code & DataMatrix
Compare 1D vs 2D barcode formats to select the perfect code type for retail, warehouse, medical, or chemical applications.
Choose the barcode from the receiving process, rather than from the shape that fits your artwork. The same item can need different carriers for a retailer, an internal warehouse and a customer web link.
Ask three questions first
- What must the reader return: an internal reference, a GTIN, structured production data or a URL?
- Which reader and application must accept it?
- Does a trading partner, sector specification or regulation prescribe the carrier?
These answers determine which options you can consider. A small square symbol is not automatically a substitute for a retail EAN symbol, and a generic QR code is not automatically a GS1 data carrier.
Compare four common choices
- Code 128 encodes an internal alphanumeric value well when an existing system expects that value. Longer data makes a linear symbol wider. Plain Code 128 must not be described as GS1-128 merely because its text contains numbers or parentheses.
- EAN-13 / UPC-A identify retail trade items using the respective numeric formats. Use the identifier and symbol accepted by the retailer. EAN-13 has 13 digits; UPC-A has 12.
- QR Code is useful for a URL intended for consumer phones. The phone also needs connectivity and a functioning destination to open a web page.
- GS1 DataMatrix carries GS1 Application Identifiers, such as GTIN, lot and expiry, in a compact 2D symbol. The reader and application must support the symbol and parse its data structure.
Example: one product, three tasks
Suppose a sample part has internal reference DEMO-0042, a retail identifier and an online manual. The warehouse may use Code 128 for DEMO-0042. The retail package must use the retailer's accepted carrier for its assigned identifier. A separate QR code can link to the manual.
Do not place all three on the package without considering accidental scans. Use clear placement and readable captions so staff can select the intended code. Test each receiving application, including which field receives a scan.
Decide whether the symbol fits
Compare the complete area, including quiet zones and readable text. For 2D codes, encoded data affects the module count. For linear codes, the data length affects width. Work backwards from printer resolution, required module size and scanner performance rather than assuming a fixed minimum in millimetres.
UDImaker creates Code 128, QR Code and GS1 DataMatrix. Import externally generated EAN/UPC artwork when appropriate. Start with a barcode layout and keep a note of the receiving system and acceptance test with your saved design.
Sources and technical review
Relevant primary references are listed below. These guides explain the design workflow; confirm current sector requirements and local regulations before production use.