Which Barcode Should I Use? 1D vs 2D Guide

Buyer's Guide September 30, 2026 🕑 9 min read
Handheld barcode scanner reading a 1D barcode label on a shipping carton

Walk into any warehouse, hospital, or retail store and you'll see barcodes doing the quiet work of tracking everything that moves. But "barcode" is not one thing — there are dozens of symbologies, and picking the wrong one leads to unscannable labels, rejected shipments, or scanners that cannot read your codes at all. This guide breaks down how to choose the right barcode for your application.

First Decision: 1D or 2D?

1D (linear) barcodes encode data in the widths of parallel bars and spaces. They hold a small amount of data — typically a numeric or short alphanumeric ID — and are read by sweeping a laser or imager across the lines. They are cheap to print, fast to scan, and work with almost any scanner.

2D barcodes (QR Code, Data Matrix, PDF417) store data in a grid of modules. They hold far more information — URLs, JSON payloads, multiple fields — and require an area imager or a smartphone camera to read. They also include built-in error correction, so they stay scannable even when partially damaged.

Common 1D Barcode Types (and When to Use Them)

  • Code 128: The default for logistics, shipping, asset tags, and internal tracking. High-density, supports full ASCII. If you only pick one 1D code, make it Code 128.
  • Code 39: Older, self-checking, widely used in automotive, defense, and some healthcare. Lower density than Code 128.
  • UPC-A / EAN-13: The retail checkout standards — UPC-A in North America, EAN-13 internationally. Mandatory if you sell through general retail or marketplaces.
  • ITF-14: Used on shipping cartons and outer cases (the "case code" above the item-level barcode).
  • GS1-128 (Code 128 + GS1): Adds structured application identifiers (batch, expiry, serial) for supply-chain compliance.
  • Codabar: Still found in libraries, blood banks, and photo labs for legacy systems.

Common 2D Barcode Types (and When to Use Them)

  • QR Code: The most recognized 2D code. Ideal for linking to product manuals, warranty pages, payment links, or marketing content — scannable by any phone.
  • Data Matrix: Extremely space-efficient, readable at very small sizes, and durable. The standard for electronics, medical devices, and direct part marking.
  • PDF417: High capacity for documents and manifests — common on ID cards, boarding passes, and logistics paperwork.
  • Aztec: Used in transport ticketing where a code must sit in a small, often curved area.

Which Barcode Should I Use? A Quick Checklist

  1. How much data? A short ID or SKU → 1D. A URL, serial + lot + expiry, or multiple fields → 2D.
  2. Where is it scanned? Retail POS laser scanners read 1D only (use UPC/EAN). Smartphones and imagers read QR / Data Matrix.
  3. How small is the label? Tiny parts and medical devices → Data Matrix (2D, dense). Standard cartons → Code 128.
  4. How harsh is the environment? Heat, moisture, abrasion → 2D (more error correction) printed with thermal transfer on durable media.
  5. Is there an industry mandate? Retail → GS1 / UPC / EAN; Healthcare → GS1 DataMatrix or ITF; Logistics → GS1-128 or QR.

Matching the Barcode to Your Printer

Most modern thermal label printers generate both 1D and 2D codes from the same device — you simply switch the command or template. What matters more is resolution and media:

  • 203 dpi: Enough for standard barcodes (Code 128, UPC, QR) at normal sizes.
  • 300 dpi: Needed for small or high-density codes — jewelry tags, electronics, pharmaceutical labels.
  • 600 dpi: For micro-marking and very fine Data Matrix on tiny components.
  • Direct thermal vs thermal transfer: Use thermal transfer for labels that must survive months in the field; direct thermal for short-life shipping labels and receipts.

📦 Recommended Printers

Match the printer resolution to your barcode: standard 1D and QR labels run perfectly on the 203 dpi S200; small or high-density codes need the 300 dpi S300; and micro Data Matrix on tiny tags calls for the 600 dpi S600. All three are 4-inch thermal transfer label printers for warehouse, retail and industrial labelling.

1D vs 2D at a Glance

NeedBest choiceNotes
Retail checkoutUPC-A / EAN-13Laser scanners, GS1 mandated
Internal trackingCode 128Dense, full ASCII
Shipping cartonsITF-14 / GS1-128Case-level codes
Link to manual / promoQR CodePhone-scannable
Tiny durable part markData MatrixSmall, error-correcting
Documents / manifestsPDF417High capacity

Conclusion

There is no single "best" barcode — only the right one for your data, scanner, and environment. Start from the checklist above: a short ID at a retail lane means UPC/EAN; a link to a product page means QR; a tiny medical component means Data Matrix; and general internal tracking almost always means Code 128. Pair the symbology with the right printer resolution and media, and your labels will scan first time, every time.

If you're unsure which barcode — or which printer — fits your operation, contact our sales team for a recommendation based on your labels and scanners.

Frequently Asked Questions

Yes. Modern thermal label printers use command sets like ESC/POS, TSPL, or ZPL that generate both linear and 2D symbologies from the same device — you only change the command or label template.

Yes. 2D codes require an area imager (or a smartphone camera). Traditional 1D laser scanners cannot read QR Code or Data Matrix.

At the POS lane, UPC-A (North America) or EAN-13 (international) are mandated by GS1. Use QR Code on packaging or shelf talkers to link shoppers to product info and promotions.

203 dpi covers most standard barcodes. Choose 300 dpi for small or high-density codes (jewelry, electronics, pharma), and 600 dpi only for micro-marking on tiny parts.

Absolutely — that is exactly what QR Code is for. Encode the URL directly; smartphones and imagers open it without any app. Keep the URL short and the quiet zone clear for reliable scans.