EcomInsides

Barcode & Labels

Barcode Types on Shipping Labels: Code-128, QR, DataMatrix Explained

By Nikunj Maniya · 4 May 2026 · Updated 9 June 2026 · 3 min read

Laptop on a desk showing an analytics dashboard with charts
1D AWB bars and 2D sortation codes share the same sticker — each machine reads a different one.

A modern shipping label often carries three or four barcodes simultaneously. Each is read by different equipment at different stages — your scanner at pickup, the courier hub's belt sortation system, the last-mile delivery agent's phone — and each encodes a different slice of order metadata. If you understand which barcode does what, you understand why minor cropping mistakes can cause major dispatch failures.

This article contains affiliate links. We may earn a small commission at no extra cost to you.

The four barcode types you will see

TypeDimensionTypical useWhere to find it
Code 1281DAWB / tracking numberTop of label
Code 391DOrder ID / SKUMid-section
QR Code2DCustomer-facing tracking linkBottom-right
DataMatrix2DCourier sortation routing payloadBottom or top corner

Code 128 — the AWB barcode

Code 128 is the workhorse of shipping. It is a high-density 1D linear barcode that encodes the Air Waybill (AWB) number — the courier's primary identifier for the parcel. The AWB barcode is what gets scanned at every hub from origin to last-mile.

Failure modes

  • Smudged print — direct thermal labels stored in heat darken; the contrast disappears and scanners fail.
  • Compressed width — scaling the PDF down to "fit" makes individual bars too narrow for a hand scanner.
  • Quiet zone violation — Code 128 needs ~2.5mm of white space on either side. Cropping too aggressively eats this margin and scanners refuse to read.

The Code 128 AWB barcode must remain at its original aspect ratio and width. Never crop a label so tightly that the barcode loses its quiet zone.

Code 39 — the order ID barcode

Some platforms (Flipkart, Snapdeal) include a secondary Code 39 barcode encoding the seller's order ID or SKU. This one is mostly for warehouse use — pickers scan it to reconcile shipments against the order management system. Code 39 has lower density than Code 128, so the bars are wider and more forgiving.

The QR on the bottom-right typically encodes a tracking URL. Customers can scan it with their phone and see real-time courier status. QR codes have built-in error correction (Reed-Solomon), so they tolerate ~30% damage and still scan. They are the most forgiving barcode on a shipping label.

DataMatrix — the routing brain

DataMatrix is a square 2D barcode that encodes a courier-internal payload — typically compressed JSON containing the route hash, hub ID, drop-off address bucket, and parcel weight class. The courier's belt sortation reads DataMatrix at high speed because it is readable from any rotation (omnidirectional) and resilient to belt vibration.

Why this matters for cropping

The DataMatrix is small (typically 12×12mm) but absolutely cannot be cropped off. A missing DataMatrix means the parcel hits the manual reroute pile at the courier hub, adding 1-2 days to delivery. The Ecom Insides cropper's per-platform crop boundaries are tuned to keep the DataMatrix intact across Amazon, Meesho, and Flipkart formats.

Resolution and scannability

Direct thermal printers print at 203 DPI (8 dots per mm). At that resolution, the smallest module size of a Code 128 barcode is 0.25mm, and a DataMatrix can encode comfortably down to 6mm square. This is why thermal labels print barcodes more reliably than laser stickers — the print engine resolution exactly matches what scanners expect. For the full hardware comparison, see thermal vs laser shipping labels.

Pre-flight every batch

  • Print one label.
  • Scan the AWB Code 128 with a phone barcode app.
  • Scan the QR.
  • If both succeed, proceed with the batch. If either fails, troubleshoot the printer.

This 30-second check has saved more sellers from RTO disasters than any other practice we know.

Frequently asked questions

Why does my AWB barcode look slightly different on Amazon vs Flipkart?

Different couriers have different AWB length conventions, so the encoded data differs. The barcode standard (Code 128) is the same but the payload changes.

Can I add my own barcode to the shipping label?

Yes — you can add a SKU barcode for warehouse use. The Ecom Insides cropper prints the SKU as text in its order footer; if you need a scannable barcode, render it in a separate label or in your packing slip.

What scanner should I use for warehouse picking?

A simple USB CCD imager works for both 1D and 2D codes. Honeywell Voyager 1450g and Zebra DS2200 are popular at ₹2,500–₹4,500.

Related guides

Try the free Shipping Label Cropper →