Skip to content

← Knowledge base

Printing barcodes: orientation, inverse codes, 2D and verification

A barcode is only worth something if it scans everywhere along the way: at dispatch, in the customer’s warehouse, and years later during a complaint. Designing the content is only half the job — how it is printed decides just as much whether the code stays readable.

Updated:

Inverse (reversed) barcodes

In an inverse code light bars run on a dark background. It looks striking but is risky: the standards (ISO/IEC 15416 and 15415) always calculate contrast from the reflectance difference between light and dark elements, and most classic laser (1D) scanners are designed for dark bars on a light background — many will not read an inverse code at all.

Camera-based (imager) scanners mostly handle inverse codes, and among the 2D standards Data Matrix explicitly permits reversed polarity, which better decoders detect automatically. The practical rule still stands: if the code has to be read in someone else’s system — at a customer, a courier or an official inspection — do not use an inverse code. If you must (for example on dark stock or with laser marking), test it first with the scanner that will actually read it in the field.

1D or 2D code?

Linear barcodes (Code 128, EAN, Code 39) carry data in one direction only and contain no error correction: a scratch, a ribbon fault or a crease makes the code unreadable. 2D codes (Data Matrix, QR), by contrast, include Reed–Solomon error correction, which restores the data even when part of the code is lost.

  • Data Matrix ECC 200: still decodable with roughly 25–30% of the code damaged
  • QR code: four error-correction levels (L ≈ 7%, M ≈ 15%, Q ≈ 25%, H ≈ 30%) — a higher level means a larger code
  • Far more data in far less space — for part marking this is often the only workable route
  • A 2D code reads from any direction, so the orientation question disappears
  • In exchange it needs an imager: old laser handheld scanners cannot see a 2D code

Verification: how do we know the code is good?

That “my handheld reads it” is not proof. Standard grading (ISO/IEC 15416 for 1D, 15415 for 2D) rates the print from A to F, scoring contrast, modulation, decodability and defects separately. Automotive, electronics and pharma typically require at least a “C” (2.0) grade — and hold the supplier responsible for it.

Grading can be done on a sample basis (with a handheld verifier) or on every label, with an inline verifier integrated into printing. That a code scans, or carries the right data, is not a grade: the standard grade is always measured with a verifier.

Practical checklist

Before a new label goes live, it is worth going through these:

  • Is there enough quiet zone on both sides of the code — typically ten times the module width
  • Do the resolution and module width match (600 dpi for a small Data Matrix, 300 dpi for general work)
  • Is the ribbon-label pairing right: a resin ribbon gives a sharper code than wax
  • On glossy or laminated surfaces reflection can disturb the scanner — a matte material is safer
  • Test with the scanner and in the environment where the code will actually be read

Questions? We help you choose.

Describe the task and we will suggest the right label-ribbon-printer combination.