How small can an embroidered QR code be and still scan?

Print guides say 1 inch. Embroidery guides say 1.5. Both figures are real, and the gap between them is the needle. Here is the arithmetic behind 1.5 in, module sizes for Versions 1 to 4 at four sizes, and how short a URL has to be to stay small.

Updated 8 min read Reviewed against our editorial standards

Quick answer

About 1.5 in square is the smallest embroidered QR code that has reliably scanned in published tests. The limit is the needle: at 1.5 in, a Version 1 or 2 code has squares about 1.5 to 1.8 mm wide, and a satin stitch cannot go under 1 mm. Keep the URL to 26 characters or fewer with error correction L or M, so the code stays at Version 2.

On this page
  1. Key takeaways
  2. What a QR code is made of
  3. Why the needle sets the size
  4. Module size by version and code size
  5. How long a URL each version holds
  6. Worked example: a 1.5 in code on a patch
  7. Stitching it so it scans
  8. What this does not cover

Key takeaways

  • Make an embroidered QR code at least 1.5 in square. That is the smallest size Sewing Machine Fun got to scan every time, and the size the shop guides repeat.
  • The limit is the size of one square in the code. Keep each square at 1.5 mm or more, and never under 1 mm, the shortest satin stitch Melco allows.
  • At 1.5 in, only a Version 1 or Version 2 code has squares that big. Version 2 holds a URL of up to 26 characters at error correction M, or 32 at L.
  • Use a short URL and error correction L or M. Level Q pushes a 22 character URL up to Version 3, and its squares drop to 1.3 mm.
  • Trim every jump, leave 4 squares of clear fabric on all sides, and use 60 wt thread with a topper on any pile fabric.

About 1.5 in square is the smallest embroidered QR code that reliably scans. Aly at Sewing Machine Fun tested the size herself. She writes that "the minimum I could get a 100% successful readable embroidered code with was a 1.5″ square minimum size." MaggieFrames and Hooping Station give the same 1.5 in figure. Neither says why. The reason is arithmetic, and it tells you when 1.5 in works and when it does not.

What a QR code is made of

A QR code is a grid of small squares. Each square is called a module. A dark module is a 1 and a light one is a 0, and the phone reads the pattern. On fabric, every dark module is a block of stitches and every light module is bare fabric.

The grid comes in sizes called versions. DENSO WAVE, the company that invented the QR code, sets them out. Version 1 is 21 x 21 modules. "Each higher version number comprises 4 additional modules per side," so Version 2 is 25 x 25, Version 3 is 29 x 29 and Version 4 is 33 x 33. More data needs a higher version.

Two more terms matter. The quiet zone is a clear border: DENSO WAVE says the code "requires a four-module wide margin at all sides." On fabric that border is plain, unstitched cloth. Error correction is spare data that lets a scanner read a damaged code. There are four levels. L restores about 7 percent of the data, M about 15, Q about 25 and H about 30.

Why the needle sets the size

A printer can make a module as small as a few dots of ink. DENSO WAVE's own example prints modules 0.254 mm wide. That is why print guides talk about 1 in codes. Sewing Machine Fun quotes that print rule, "QR codes must be at least 1″x1″ for smartphones to read," and then found that stitching needs more.

A needle cannot work that small. Melco's rule is to keep each stitch "longer than the diameter of the needle you are using." A 75/11 needle is 0.75 mm thick. Melco's minimums are 10 points (1 mm) for satin stitches and 20 points (2 mm) for fill stitches, as covered in minimum stitch length.

Now look at the smallest block in a QR code: one dark module on its own. Under 2 mm wide, it is too small to hold a fill stitch. So it has to be a short satin block, with each stitch running across the module. That stitch can be no shorter than 1 mm. So 1 mm is the floor for a module.

At the floor, though, each stitch is barely longer than the needle is thick. Stitches also pull in as they sew, which is why pull compensation exists. EduTech Wiki notes that students who stitched smaller QR codes "did add some pull compensation." A module that shrinks or bleeds into the one beside it is a misread square.

So this site works to 1.5 mm per module. That is two needle widths, and it matches Melco's 1.5 mm minimum for a run stitch. It is the site's own working figure, not one any maker publishes. It lines up with the 1.5 in test result, as the table shows.

Module size by version and code size

Divide the width of the code by its modules and you have the module size. The code width here is the stitched area only. The quiet zone is extra.

Module width in mm by QR version and stitched code width (site arithmetic: 25.4 mm per inch divided by modules per side)
Version (modules)1 in1.5 in2 in3 inSmallest size at 1.5 mm
Version 1 (21 x 21)1.211.812.423.631.24 in
Version 2 (25 x 25)1.021.522.033.051.48 in
Version 3 (29 x 29)0.881.311.752.631.71 in
Version 4 (33 x 33)0.771.151.542.311.95 in

Read it in three bands. Under 1 mm (Versions 3 and 4 at 1 in) the satin cannot form, and the code will not scan. From 1 to 1.5 mm it may scan, but with no margin. Hooping Station says some software and machines "can produce readable codes at 1 inch," which fits Version 1 at 1.21 mm. At 1.5 mm and up, the module has room for the stitch to pull in.

At 1.5 in, Versions 1 and 2 clear 1.5 mm and Versions 3 and 4 do not. That is why 1.5 in works for short links and fails for long ones. A Version 4 code needs about 2 in.

Add the quiet zone on top. Four modules each side at 1.5 mm is 6 mm of clear fabric all round, so a 1.5 in Version 2 code needs about 2 in square of plain cloth.

How long a URL each version holds

The version is set by how much you put in the code. A web address is stored one byte per character, and "https://" alone is 8 characters. DENSO WAVE's capacity table gives the most bytes each version holds at each level:

Maximum URL length in characters (8-bit bytes) by version and error correction level (DENSO WAVE)
VersionL (7%)M (15%)Q (25%)H (30%)
Version 11714117
Version 232262014
Version 353423224
Version 478624634

So at 1.5 in, the URL has to fit Version 2: 26 characters at M, or 32 at L. Very few full web addresses are that short. Use a short link or a short page path made for the code.

Error correction is where the two shop guides part ways with the arithmetic. MaggieFrames says "a medium level (M or Q)" suits embroidery. But DENSO WAVE warns that raising the level "also increases the amount of data" and so the code size. At the minimum size, Q costs a version. DENSO WAVE says L suits a clean setting and Q or H a dirty factory one. A shirt or patch is closer to clean. Use M, or L if it saves a version, and spend the margin on module size instead.

EduTech Wiki adds one more trick. It is "very recommended to put the URL in upper case," which it says makes a "much simpler QR tag, i.e. much easier to stitch." Open the capital-letter link in a browser first, since some pages do not load in capitals.

Worked example: a 1.5 in code on a patch

Take a 1.5 in square QR code for a patch. Suppose the link is a 55 character product page, such as https://example.com/products/blue-polo-shirt?ref=qr-tag.

  1. Find the version. 55 characters is more than Version 3 holds even at L (53). Version 4 holds 62 at M, so the code comes out at Version 4.
  2. Find the module size. At 1.5 in, Version 4 gives 1.15 mm. That is above the 1 mm floor but well short of 1.5 mm. This code needs about 2 in.
  3. Shorten the link. Swap in a 22 character address, https://example.com/qr, that forwards to the product page. At M, 22 fits Version 2 (26), not Version 1 (14).
  4. Check the level. At Q, Version 2 holds only 20, so 22 characters would jump to Version 3 and 1.31 mm modules. Stay at M.
  5. Read the result. Version 2 at 1.5 in gives 1.52 mm modules. Add 6 mm of quiet zone each side, so the patch needs about 2 in of plain fabric around a 1.5 in code.

Stitching it so it scans

  • Trim every jump. A QR code is many small, separate blocks, so it has many jumps. Hooping Station warns that "even a single stray thread crossing a 'white' square can block the scanner's view." The usual 2 to 3 mm rule in jump stitch trim length is too loose here: a whole module is under 2 mm. Mark every connector as a trim. On a machine with no cutter, stop and clip each one, and check the face again when the hoop comes off.
  • Use 60 wt thread near the minimum. Sewing Machine Fun says 60 wt or 90 wt "may give cleaner edges." MaggieFrames says finer thread lets "tiny modules remain distinct." Pair it with a 75/11 or finer needle, as in embroidery lettering.
  • Put a topper on any pile. On towels, fleece or velvet, the pile pushes up between the blocks and blurs the light modules. A water-soluble topper keeps the stitches on the surface, as towels and terry explains.
  • Hold the fabric still. Sewing Machine Fun used no-show mesh cutaway, Pellon SF101 and Odif 505 spray adhesive. A code that shifts by one module is a different pattern; see registration.
  • Test before the garment. Stitch the code on scrap of the same fabric and scan it with two phones.

What this does not cover

The 1.5 in figure comes from one tester and two shop guides, not a standard. None of them says which version they stitched. The 1.5 mm module target is this site's own reasoning from Melco's minimums, so treat it as a starting point and trust your scan test over the table. The figures assume a 75/11 needle and dark thread on light fabric. A heavier needle needs bigger modules. Light thread on dark fabric, logos in the middle of the code, color codes and URLs in other alphabets are not covered. Neither is how long a stitched code keeps scanning through washing and wear. A QR code that scans on the bench is only as good as the link behind it, so use an address you control and will keep live.

Frequently asked questions

Can an embroidered QR code be 1 inch?

Sometimes, but not reliably. A Version 1 code at 1 in has modules 1.21 mm wide, just over the 1 mm floor for a satin stitch. That only holds 14 URL characters at error correction M. Version 3 or 4 at 1 in drops under 1 mm and will not form. Sewing Machine Fun could not get a code under 1.5 in to scan every time.

Does the quiet zone count in the 1.5 in?

No. The 1.5 in is the stitched code. DENSO WAVE requires a clear border four modules wide on every side. At 1.5 mm modules that is 6 mm of plain fabric all round, so plan about 2 in square of clear space.

Which error correction level is best for embroidery?

M at the minimum size, or L if it keeps you a version lower. Higher levels add data, and DENSO WAVE says that makes the code bigger. At 1.5 in, Q can push a short URL from Version 2 to Version 3 and shrink each module from 1.52 to 1.31 mm.

Should I fill or satin the squares of a QR code?

An isolated module under 2 mm is too small for a fill stitch, since Melco's fill minimum is 2 mm, so it ends up as a short satin. Larger joined dark areas can take a fill. The stitch types guide covers where each one works.

Sources and further reading

Found something wrong or out of date? Tell us and we will fix it.