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.
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”.
I first gave this image to the regular QR code reader. Choosing the saved PNG under “Image file” starts reading straight away.
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.
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
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.
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.