EcomInsides

Barcode & Labels

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

By Nikunj Maniya · 4 May 2026 · Updated 18 November 2026 · 10 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 shipping label barcode is a machine-readable line the courier trusts more than the words beside it. One sticker often carries two, three, or four symbols. Your phone, the pickup scanner, and the hub belt do not all read the same one. If you know the job of Code 128, Code 39, QR, and DataMatrix, you know which white corner you must not crop off. This page stays on those four symbols and on the print defects that make them fail. It does not quote clause numbers from a standard.

Shipping label barcode jobs on one sticker

Look at a fresh label from the marketplace you ship on today. You will usually see:

  • A long set of vertical bars, often near the tracking number. That is a 1D symbol. The data is in the widths of the bars and the gaps.
  • Sometimes a second, shorter 1D symbol near an order id or a SKU.
  • A square mark built from little modules. That is a 2D symbol. QR and DataMatrix both look square and they are not the same mark.

The words under a 1D symbol are a human check. The scanner uses the bars. If the words say one tracking number and a damaged symbol reads another, or reads nothing, the hub follows the scan. Reprint when the scan and the printed digits disagree.

Marketplace artworks differ. Amazon, Flipkart, and Meesho can move a symbol from the top of the label to the bottom in a new template. After any change, scan a new sample and note which corner holds which code. The crop boundary has to keep every one of them. Do that crop with the shipping label cropper so the page becomes 4×6 without you dragging a box through the bars. The Amazon file steps are in how to crop Amazon shipping labels.

Official download help for the current file is in Amazon Seller Central. The symbol names below describe the mark. They do not promise that every hub uses every mark on every lane.

Code 128, the usual tracking bars

Code 128 is a compact 1D symbology. It can encode digits and letters, so it is a common choice for an AWB or tracking string that mixes numbers and prefixes. The bars are narrower than older linear codes for the same data, which is why a full tracking number fits across a 4-inch label.

The symbology is specified in ISO/IEC 15417. The catalogue entry is on the ISO page for that standard. Print the symbol the PDF already drew. You are not designing a new Code 128 on the packing bench.

What you protect on Code 128:

  • The full bar height. A crop that shaves the top of the bars gives the scanner less to see, especially if the label is slightly curved on the carton.
  • The blank margin on the left and the right. This quiet zone tells the scanner where the symbol starts and stops. Cutting into it is a common reason a “complete looking” barcode fails.
  • The original width. Fit-to-page and “shrink oversized pages” make every bar thinner. At some point the scanner merges bar and gap.

Scan the Code 128 first in any test. If this one fails, the parcel is not ready, even when a QR on the same sticker still opens a tracking page on your phone.

Basic handling: print dark enough that the bars are black or a deep colour, not grey. Leave the text line under the bars readable so a person at the hub can type the number if a scanner is down. That text is a backup. It does not replace a good symbol.

Amazon FBA uses a second Code 128 that is not on the shipping label. The fulfillment center scans the FNSKU stuck to the unit. That code is 10 characters and starts with X. Copy it from Inventory in Seller Central, then make the sticker with the FNSKU barcode generator. Print one, scan it, and only then label the rest of the shipment.

Code 39, the wider backup bars

Code 39 is an older 1D symbology. For the same string it takes more width than Code 128, because the pattern is less dense. Basic Code 39 encodes uppercase letters, digits, and a small set of symbols. You will meet it on some order ids, carton marks, and internal SKU labels. Some marketplace templates still use a second linear code beside the main AWB. Scan it and read what comes back. If the result matches your order id, treat that symbol as the warehouse check, and still guard it.

Code 39’s wider bars can look more forgiving when the print is slightly light. They still fail when you scale the page, crop the quiet zone, or run a white line through the bars from a dirty head. A SKU label you print yourself at 50 × 25 mm needs its own quiet zone. A tiny Code 39 crammed to the edge of a jewellery tag will fail in the same way a tiny Code 128 fails.

If you add your own SKU barcode, put it on a separate product or bin label. Leave the marketplace shipping artwork alone. An extra symbol dropped on top of the AWB confuses both scanners and people. The label size guide separates 2×1 bin labels from the 4×6 shipping roll.

QR codes on a shipping label

A QR symbol is a square 2D code with large finder patterns, the three big squares in the corners. On a shipping label it often holds a tracking link a buyer can open with a phone camera. It can also hold a shorter id. Scan it and see whether you get a web address or a string of characters. That tells you the job on this template.

QR includes error correction. A light scuff or a small mark can still scan. A missing corner, a heavy crease through a finder pattern, or a symbol printed pale grey often will not. Error correction is a cushion, not a licence to crop the square in half.

Phone cameras are good at QR and less consistent on thin Code 128 if the bars are faint. A successful QR scan only proves the QR. Run the 1D scan as its own step.

Print QR at the size in the PDF. Shrinking a 2D symbol shrinks every module. Below the size the artwork used, cameras struggle, especially in a dim packing room. Glare from a lamination pouch or from tape laid over the square also blocks a phone scan. Keep tape off the symbols. Tape the carton edges instead.

DataMatrix, the small square

DataMatrix is the other common 2D symbol. It is often smaller than the QR on the same label. The finder pattern is an L-shaped solid border on two sides, with a broken border on the other two, rather than three big QR squares. Once you have seen both, you can tell them apart without an app.

Carriers use DataMatrix for routing data their own sorters read. The payload is defined by that carrier. You will not see a neat public sentence when you scan it, and you do not need to. Your job is to keep the whole square on the sticker, at the original size, with its quiet zone.

Because it is small, DataMatrix is the first symbol a tight crop removes. It sits in a corner. A “clean” crop that deletes the corner to make the address look bigger can turn a fast sort into a manual exception. Leave the corner.

DataMatrix can be read at a rotation, which is why belts use it. Rotation tolerance does not survive a symbol that is cut, wrinkled through the middle, or printed on a grey background. If the square is incomplete, reprint.

How print defects break the scan

The same six defects show up on thermal and on laser. The symbol type changes which defect hurts first.

Too light. Eco paper, low darkness, or a worn head prints grey bars. The scanner wants contrast. Raise darkness one step and print one label. If the background also turns grey, the roll has been heat-damaged. That is a paper problem, covered in thermal label paper types.

Too dark. Bars swell and fill the gaps. Code 128 fails this way when the gaps disappear. 2D symbols fail when neighbouring modules merge. Lower darkness one step. Do not jump from the minimum to the maximum.

Scaling. Fit-to-page, “fit picture to frame”, and a wrong paper size shrink or stretch the symbol. Bars must stay at the aspect ratio in the file. Stretching Code 128 so the label “fills the roll” makes the gaps illegal for the scanner even though your eye still sees stripes.

Clipped quiet zone. A crop, a tear, or a print width that is narrower than the artwork eats the blank margin. The bars look whole. The scan fails. A 4-inch head and a 100 mm roll are the size match in the size guide.

A white line. Dust or a dead dot on a thermal head repeats a blank stripe down the batch. One failed label is a crease. Every label with the same line is the head. Clean it the way the manual describes, then print one test.

Wrinkle, tape, and damp hands. A crease through Code 128 breaks the bars. Tape glare blocks QR. A wet thumb smears eco thermal and can leave laser paper cockled. Top-coated thermal and a dry carton remove two of those. The print method comparison is in thermal versus laser shipping labels. Zebra’s direct thermal and thermal transfer note explains why the image sits in a coating or in a ribbon, which is why a thumb does not treat every label the same way.

203 DPI on a desktop thermal printer is enough for these shipping symbols when you print them at the PDF’s size. The dots are not the usual failure. The shrink setting is.

A one-label check before the batch

Do this once per pickup, and again when you change rolls, drivers, or marketplace templates.

  1. Print one label at 100 percent on the right page size.
  2. Scan the long 1D bars. Read the result aloud against the tracking digits.
  3. Scan any second 1D symbol. Confirm it is the order id or SKU you expect.
  4. Scan the QR, if there is one. Confirm a link or a string comes back.
  5. Scan the DataMatrix, if there is one. A result of any kind means the square is intact. You do not have to decode the carrier’s private data.
  6. If any symbol fails, fix darkness, scale, crop, or the roll. Then print label one again. Only then print the batch.
  7. Spot-check the last label of a long run. A head that fades on label 80 will not show on label 1.

Use an imager for steps 2 to 5. A 1D-only laser gun can pass the bars and never see the squares. A phone is a fair pre-check. Your pickup partner’s gun is the real one, so hold the test label flat, at a similar distance, in ordinary light.

Keep the PDF’s symbols. Add bin barcodes on a separate small roll. Crop in the browser, scan one, then seal the carton. That sequence prevents the reprint pile better than a faster printer does.

Frequently asked questions

Which barcode on the label is the tracking number?

On most marketplace shipping labels the long 1D bars are the tracking or AWB symbol, very often Code 128. Confirm it by scanning that symbol and reading the digits your phone shows against the tracking number printed in text. A second 1D symbol may be an order id.

Why does a phone read the QR and the hub still rejects the parcel?

The phone and the hub may be reading different symbols. A customer QR can scan after a scuff that ruins the Code 128 bars, or the reverse. Scan every symbol on a test label, not only the square one.

Can I shrink the label so it fits a smaller roll?

Shrinking makes the bars and modules narrower than the artwork intended. Print at 100 percent on a roll that matches the design, usually 100 × 150 mm for these shipping PDFs. A shorter roll clips the bottom symbol.

What is the white space beside a barcode for?

Scanners need a blank margin around the symbol so they know where the code starts and ends. If your crop or your tear cuts into that blank, the symbol can look intact to your eye and still fail. Leave the margin that came with the PDF.

Do I need a laser scanner for QR and DataMatrix?

A 1D laser scanner reads many linear barcodes and misses a lot of 2D symbols. An imager, including most phone cameras, can read both Code 128 and QR or DataMatrix when the print is sharp. Use an imager for a pre-dispatch check.

Where is the Code 128 specification?

ISO/IEC 15417 is the Code 128 symbology specification. You do not need to read it to dispatch. You need a dark print, the original size, and an intact quiet margin. The ISO page is linked in this article.

Related guides

Try the free Shipping Label Cropper →