Blog

When a regular QR reader cannot read a Micro QR Code: it is not damaged, it is a different format. How to read it from an image, and how a 2-module quiet zone changes the result

When a small QR-like code with only one corner square, printed on a part, a circuit board or a tiny label, will not scan in a QR reader, the cause is usually not damage but a different format: Micro QR Code. Given the same image, a regular QR code reader returned nothing while a Micro QR Code reader returned the contents. The reverse also held: a regular QR code could not be read by the Micro QR reader. This article shows what stops working when the quiet zone is cropped away, how to tell M1–M4 apart and how much text each holds, and what to watch for with non-ASCII text.

A regular QR code (21 × 21 modules) shown at the same height next to Micro QR Codes M1 (11 × 11), M2 (13 × 13), M3 (15 × 15) and M4 (17 × 17). The regular QR code has squares in three corners; the Micro QR Codes have one, in the top left only.
Far left is a regular QR code; the four on the right are Micro QR Codes M1–M4. The square finder pattern appears in three places on a QR code and only in the top left on a Micro QR Code. All codes are scaled to the same height.
Contents

Small parts, circuit boards and serial-number stickers sometimes carry a square pattern that looks like a shrunken QR code. You point a QR scanning app at it and nothing happens; a regular QR reader shows no reaction either. It is tempting to blame dirt or poor printing, but in many of these cases the code is not damaged at all. It is a different format from QR code, called a “Micro QR Code”.

Micro QR Code was created by DENSO WAVE, the company that developed QR code, for even smaller spaces. A QR code places square finder patterns in three corners; a Micro QR Code has just one, in the top left. A reader built for QR codes cannot find the patterns it is looking for, so it never recognizes the symbol as a code. This article feeds the same images to a regular QR code reader and to the Micro QR Code Reader to see the difference, then walks through reading the contents from an image and what happens when the quiet zone is cropped away.

The difference from a regular QR code: one finder pattern instead of three

The cover image places a regular QR code next to Micro QR Codes M1–M4. The regular QR code has nested squares in three corners; the Micro QR Codes have only one, in the top left.

DENSO WAVE describes the main feature of Micro QR Code as having “only one orientation detecting pattern”, which is what allows it to be smaller. The quiet zone (the blank margin) also shrinks: a QR code needs at least 4 modules, while a Micro QR Code needs only 2 (DENSO WAVE, “Micro QR Code”).

There are four versions, M1 to M4, measuring 11, 13, 15 and 17 modules per side. They do not hold much: even the largest, M4, takes at most 35 digits, 21 alphanumeric characters or 15 bytes (for example UTF-8 text). They are smaller than the smallest regular QR code (Version 1, 21 × 21 modules), which is exactly why they are used on parts and boards where a regular QR code would be too large.

The shapes are similar enough to be confusing, but if there is only one square pattern in the top left and the whole symbol is a small square of 11–17 modules, you can treat it as a Micro QR Code.

Feeding the same image to a regular QR reader and a Micro QR reader

To check whether the result really depends on the type of reader, I made a test code. Entering ITEM-001 in the Micro QR Code Generator produces an “M3 / 15 × 15 modules” code. I left Code size at “Auto”, Error correction at “L”, Module size at 8 px and Quiet zone at 2 modules, and pressed “Save as PNG”.

The English Micro QR Code Generator. Numbers or short text contains ITEM-001, Code size is Auto, Error correction is L, Module size is 8 and Quiet zone is 2. The Preview on the right shows an M3 code, with M3 / 15 × 15 modules / 152 × 152 px / UTF-8 8 bytes / Error correction L shown below it.
ITEM-001 is eight characters, and with Code size set to Auto it became M3 (15 × 15 modules).

I first gave this image to the regular QR code reader. Choosing the saved PNG under “Image file” starts reading straight away.

The English QR code reader. m3a.png is selected under Image file, but Decoded text is empty, and below it reads: The QR code could not be read. Choose an image clearly showing the entire code and its margin.
Given the Micro QR Code image, the regular QR code reader could not read it.

The reader reports “The QR code could not be read” and Decoded text stays empty. The image is sharp and has a margin, yet it fails, because this tool is looking for three finder patterns that are not there, not because the code is broken. The M1 and M4 images gave the same result.

Next, I gave the same image to the Micro QR Code Reader.

The English Micro QR Code Reader. m3a.png is selected under Image file, Decoded text shows ITEM-001, and below it reads: The Micro QR Code was read.
Given the same image, the Micro QR Code Reader returned ITEM-001.

Decoded text shows ITEM-001, along with “The Micro QR Code was read.” The M1 (12345), M2 (A12345) and M4 (https://x.jp/a1) images were also read exactly as entered.

I checked the reverse as well. A regular QR code containing ITEM-001 produced “No Micro QR Code could be read” in the Micro QR Code Reader, while the regular QR code reader read it as ITEM-001. Each reader looks for a different pattern, so when you cannot tell which format you have, the quickest test is to put the image into both tools and see which one succeeds.

Cropping away the quiet zone breaks reading: keep 2 modules when you crop

When you read a Micro QR Code from a photo or screenshot, how you crop the image changes the result. The quiet zone is the unprinted area around the code, and the reader needs it to find the edges of the patterns. The specification calls for at least 2 modules.

I tested this with images whose quiet zone had been trimmed. Starting from the ITEM-001 image (M3, 8 px per module) saved with a 2-module quiet zone, I made two variants:

  • one with the quiet zone trimmed to 1 module, placed on a dark gray background
  • one with no quiet zone at all, placed on a dark gray background
Two Micro QR Codes placed on a dark gray background. The left one has a white margin one module wide around the code and could be read. The right one has no white margin, so its black modules touch the background directly, and it could not be read.
The left image (1-module quiet zone) could be read; the right one (no quiet zone) could not (checked with this site's Micro QR Code Reader).

The left image, with a 1-module quiet zone, could still be read even though that is below the 2 modules in the specification. The right image, with no quiet zone and black modules touching the dark background, could not.

The English Micro QR Code Reader. dark0.png is selected under Image file, but Decoded text is empty, and below it reads: No Micro QR Code could be read. Keep a quiet zone of at least 2 modules and choose an image where the whole code is sharp.
For the image with no quiet zone, the reader asked for a quiet zone of at least 2 modules.

An image cropped to the code alone, with no quiet zone and no background (so the edge of the code touches the edge of the image), could be read by this reader. That is because the reader retries such images as “an image of the code only”. It only works for a clean crop with no background, though. In a photo where the black modules touch surrounding patterns or shadows, reading fails.

What this tells us:

  • When reading from a photo or screenshot, crop so that 2 modules of white margin remain around the code. In this test, the image with no margin on a dark background could not be read.
  • If a code is printed with less than 2 modules of margin, some readers will fail on it. When designing a label, reserve 2 modules of blank space around the code.
  • When a small code appears in part of a large photo, crop the code and its margin before reading. This reader scales images down to 2,560 px on the long side before processing, so small codes are easily lost in the reduction.

The size tells you the version and how much it holds

If you want to make a code of the same kind after reading one, the version (M1–M4) and capacity are the clues. The number of modules per side gives the version.

Version Modules per side Error correction Numeric Alphanumeric Byte
M1 11 Detection only 5 — —
M2 13 L / M 10 / 8 6 / 5 —
M3 15 L / M 23 / 18 14 / 11 9 / 7
M4 17 L / M / Q 35 / 30 / 21 21 / 18 / 13 15 / 13 / 9

The figures come from DENSO WAVE’s capacity table. M1 only detects errors and cannot correct them. Alphanumeric mode is limited to digits, uppercase letters, the space and $%*+-./:, so anything with lowercase letters needs M3 or larger. ITEM-001 is eight characters of uppercase letters, digits and a hyphen, which does not fit in M2’s six alphanumeric characters, so it became M3. If you choose the length and character set of your part numbers so they fit within M4 from the start, you can keep using small codes.

Non-ASCII text needs care. Micro QR Code has no mechanism (ECI) for declaring the character encoding. This site’s tools encode text as UTF-8, but a reader that interprets the bytes with another encoding may show garbled characters; Japanese equipment in particular often assumes Shift_JIS. This reader guesses the encoding from the data. For codes that will be read by external devices, sticking to alphanumeric identifiers makes encoding mismatches unlikely.

Other options for making and reading codes

If you need dozens of codes of the same kind, put the list of numbers in a CSV and use Batch-generate Micro QR Codes from CSV and Print to PDF instead of saving and arranging each one by hand. If the only space available is long and thin, the rectangular rMQR Code is another option. Print size works the same way as in “How to make a QR code for flyers and business cards”: (modules + quiet zone × 2) × module size.

The tools for making and reading 2D codes are gathered in the 2D Code Workspace. When you meet a code that will not scan, start by putting it into both the regular QR code reader and the Micro QR Code Reader and checking whether only one of them can read it.

Frequently asked questions

Can a smartphone camera read a Micro QR Code?

It can if the reader supports Micro QR Code, but a reader that only handles regular QR codes cannot. In the tests for this article, this site’s regular QR code reader could not read Micro QR Codes, while the Micro QR Code reader could. Support in built-in smartphone cameras varies by model and OS, so test with the device you actually plan to use.

Are Micro QR Code and rMQR Code the same thing?

No, they are separate formats. A Micro QR Code is a square of 11–17 modules per side, while an rMQR Code is a rectangle 7–17 modules tall and 27–139 modules wide. Both were developed by DENSO WAVE for spaces too small for a regular QR code, but a reader has to support each format separately.

How large does the quiet zone around a Micro QR Code need to be?

According to DENSO WAVE, a regular QR code needs 4 modules, but a Micro QR Code needs only 2. With this site’s reader, an image with a 1-module quiet zone could still be read on a dark background, but an image with no quiet zone placed on a dark background could not.