How to cross stitch a QR code
A QR code is a square of dark and light squares that a phone reads as an address or a line of text. A phone can read a stitched one when its squares are even, the dark ones are dark and well filled, and a bare margin four squares wide is left all round it. Make a short code, print it and read the print with two phones first. Then stitch it dark on light, square for square.
On this page
- The three numbers to know
- What the squares are
- Make a short code
- Chart it square by square
- One stitch a square, or four
- Read the size tables
- Size with one stitch a square, on 14 count
- The same on other counts
- Size with two stitches a square, on 14 count
- Size with two stitches a square, on 16 count
- Hoop for the whole code, on 14 count
- Keep the margin bare
- Dark on light, and which thread
- Read a small print before you stitch
- Stitch it
- Test the stitching, three times
- What not to put in a code on a wall
- Uses that suit it
- Common mistakes
- Questions people ask
- Where to go next
The three numbers to know
| What | How many |
|---|---|
| Squares across the code | 21, 25, 29, 33, 37 and so on, four more each step |
| Stitches to each square | 1 across and 1 down, or 2 across and 2 down |
| Bare margin on every side | 4 squares of the code: 4 stitches, or 8 at two stitches a square |
What you need:
- white or cream Aida, 14 or 16 count
- black or very dark six-strand cotton, used two strands at a time, and a size 24 or 26 tapestry needle
- a hoop that takes the whole code (the sizes are in a table below)
- a printout of your code, squared paper, a ruler and a pencil
- two phones to read it with: your own and a friend's
What the squares are
| Part | What it does | What it asks of you |
|---|---|---|
| Corner squares (A, B and C), in three of the four corners | They tell the phone that this is a code, and which way up it is | Every stitch right. The code cannot repair these |
| Light line (D) | Sets a corner square apart from the rest | Leave it bare |
| Timing lines (E), dotted: dark, light, dark, light, from one corner square to the next | They mark off the squares one by one between the corners | Do not skip one |
| Small squares (F), 5 a side, in codes of 25 and up | They help with a code seen at an angle | Copy them exactly |
| All the other squares | Your words, and what the phone needs to read and repair them | Copy them row by row |
| Margin (1 to 4) | Shows where the code ends | Nothing in it at all |
A level of error correction is how much of a damaged code a phone can repair. There are four: L (about 7 percent), M (15), Q (25) and H (30).
Make a short code
Fewer words make fewer squares, and fewer squares can be bigger.
- Choose the words. An address of one page, a name, a short line of text. Leave off anything that is not needed.
- Count the characters. A character is a letter, a figure, a sign or a space, and the "https://" of an address counts too.
- Find the size in the table below. Read its numbers for level L, smallest code first, and stop at the first that is at least as large as yours. That is the smallest code that holds your words.
- Find the level. For that same code read on, from L to M, Q and H, while the number is still at least as large as yours. The last one that is gives your level: the most repair for the same size.
- Make the code in one of the two ways below this list, at that level if you are given the choice.
- Save it plain. Square dots, black on white, no logo, no rounded corners.
- Read it on the screen with a phone. Open the camera, bring the whole code into the picture, and look at what comes up. Check it letter by letter.
- Count the squares across. Include the corner squares and leave out the margin. It is 21 or a number four, eight, twelve or so more. If not, count again.
Two ways to make it:
- A web page's address. Open the page in a browser on a computer. Look for "Create QR code" in the browser's menu, under its sharing entries, or in the menu that a right click on the page opens. If yours has none, copy the address and use the other way.
- Any words: a name, a wish, an address, a Wi-Fi line. Open a free code-making page, type or paste your words into its box for text, choose the level and save the picture. Choose a plain code that holds your own words and not a link of the site's.
What each size holds
| Squares across | Most characters at level L | Level M | Level Q | Level H |
|---|---|---|---|---|
| 21 | 17 | 14 | 11 | 7 |
| 25 | 32 | 26 | 20 | 14 |
| 29 | 53 | 42 | 32 | 24 |
| 33 | 78 | 62 | 46 | 34 |
| 37 | 106 | 84 | 60 | 44 |
An address of 22 characters, for instance, needs 25 squares. At that size L and M hold it and Q does not, so the level is M. At level H it would take 29 squares. If your code comes out a size larger than the table says, a higher level was chosen for you. It can be stitched too, and takes more stitches.
A Wi-Fi code
Make it as a line of text, written like this, with no spaces that are not in the name or the password:
WIFI:T:WPA;S:name;P:password;;
Put the network's name in place of "name" and its password in place of "password". WPA is the kind of security: for a network with no password, write nopass there. Put a backslash before any semicolon, colon, comma, double quote or backslash in the name or the password. The pattern uses 18 characters of its own, so a name of 8 and a password of 10 make 36. Never put a password you use for anything else into a code, or into someone else's page: "What not to put in a code on a wall", further down, says what to use instead.
Chart it square by square
- Print the code large, the full width of the paper. This print is for copying from. A second one, small, comes later.
- Rule a line every ten squares on the print, from the left edge of the code and from the top. Leave the margin out of the count.
- Take squared paper. Print graph paper with 10 squares to the inch (2.54 cm), or open the pattern maker on a grid 20 squares wider and higher than your code.
- Mark out the code. Start its top left corner where the heavy lines numbered 10 across and 10 down meet, and outline as many squares each way as your code has. Now the heavy lines of the chart are the lines on your print, and more than four bare squares lie all round.
- Copy the three corner squares. They tell you at once if the width is wrong.
- Copy the top row. Say the runs aloud: seven dark, one light, two dark, and so on.
- Add up the row. The runs must come to the number of squares across.
- Go on down, one row at a time, and check each before the next.
- Read the chart with a phone. Filled in solid black on white paper, it is a code already. If a phone cannot read it, compare it with the print, row by row.
Do not smooth an edge, center a heart in it or make the squares round. A picture in the middle uses up the repair that your stitches may need.
One stitch a square, or four
Four crosses to a square (2) take four times the stitches. They make a code twice as wide, which can be read from farther away, and one thin cross matters less.
A rule of thumb is that a phone reads a code from up to ten times the code's width, in good light and from straight in front. In dim light, at an angle or in color, count on eight times or less. A code of 25 squares, one stitch a square on 14 count, is 1 3/4 inches (4.5 cm) wide without its margin: hold the phone within about 18 inches (45 cm). Two stitches a square double both.
So use one stitch a square for a card or a label that is held in the hand, and two for something on a wall.
Read the size tables
The tables below count in stitches with the margin of four squares already added. Find yours here first.
| Squares across the code | Stitches with the margin, one to a square | Stitches with the margin, two to a square |
|---|---|---|
| 21 | 29 | 58 |
| 25 | 33 | 66 |
| 29 | 37 | 74 |
| 33 | 41 | 82 |
| 37 | 45 | 90 |
The cloth to cut then adds more all round, to frame or finish the piece with.
Size with one stitch a square, on 14 count
| Design, in stitches | Stitched size, inches | Stitched size, centimeters | Fabric to cut, inches | Fabric to cut, centimeters |
|---|---|---|---|---|
| 29 × 29 | 2 1/8 × 2 1/8 in | 5.3 × 5.3 cm | 9 × 9 in | 21 × 21 cm |
| 33 × 33 | 2 3/8 × 2 3/8 in | 6.0 × 6.0 cm | 9 × 9 in | 21 × 21 cm |
| 37 × 37 | 2 5/8 × 2 5/8 in | 6.7 × 6.7 cm | 9 × 9 in | 22 × 22 cm |
| 41 × 41 | 2 7/8 × 2 7/8 in | 7.4 × 7.4 cm | 9 × 9 in | 23 × 23 cm |
| 45 × 45 | 3 1/4 × 3 1/4 in | 8.2 × 8.2 cm | 10 × 10 in | 24 × 24 cm |
The fabric to cut leaves 3 inches (7.5 cm) on every side for framing, rounded up to a whole inch or centimeter. For a design of another size, open the fabric calculator on 41 × 41 stitches at this count and change the numbers.
The same on other counts
| Stitches | 11 count Aida | 14 count Aida | 16 count Aida | 18 count Aida | 28 count evenweave or linen, over two |
|---|---|---|---|---|---|
| 29 | 6.7 cm | 5.3 cm | 4.6 cm | 4.1 cm | 5.3 cm |
| 33 | 7.6 cm | 6.0 cm | 5.2 cm | 4.7 cm | 6.0 cm |
| 37 | 8.5 cm | 6.7 cm | 5.9 cm | 5.2 cm | 6.7 cm |
| 41 | 9.5 cm | 7.4 cm | 6.5 cm | 5.8 cm | 7.4 cm |
| 45 | 10.4 cm | 8.2 cm | 7.1 cm | 6.3 cm | 8.2 cm |
Size with two stitches a square, on 14 count
| Design, in stitches | Stitched size, inches | Stitched size, centimeters | Fabric to cut, inches | Fabric to cut, centimeters |
|---|---|---|---|---|
| 58 × 58 | 4 1/8 × 4 1/8 in | 10.5 × 10.5 cm | 11 × 11 in | 26 × 26 cm |
| 66 × 66 | 4 3/4 × 4 3/4 in | 12.0 × 12.0 cm | 11 × 11 in | 27 × 27 cm |
| 74 × 74 | 5 1/4 × 5 1/4 in | 13.4 × 13.4 cm | 12 × 12 in | 29 × 29 cm |
| 82 × 82 | 5 7/8 × 5 7/8 in | 14.9 × 14.9 cm | 12 × 12 in | 30 × 30 cm |
| 90 × 90 | 6 3/8 × 6 3/8 in | 16.3 × 16.3 cm | 13 × 13 in | 32 × 32 cm |
The fabric to cut leaves 3 inches (7.5 cm) on every side for framing, rounded up to a whole inch or centimeter. For a design of another size, open the fabric calculator on 82 × 82 stitches at this count and change the numbers.
Size with two stitches a square, on 16 count
| Design, in stitches | Stitched size, inches | Stitched size, centimeters | Fabric to cut, inches | Fabric to cut, centimeters |
|---|---|---|---|---|
| 58 × 58 | 3 5/8 × 3 5/8 in | 9.2 × 9.2 cm | 10 × 10 in | 25 × 25 cm |
| 66 × 66 | 4 1/8 × 4 1/8 in | 10.5 × 10.5 cm | 11 × 11 in | 26 × 26 cm |
| 74 × 74 | 4 5/8 × 4 5/8 in | 11.7 × 11.7 cm | 11 × 11 in | 27 × 27 cm |
| 82 × 82 | 5 1/8 × 5 1/8 in | 13.0 × 13.0 cm | 12 × 12 in | 29 × 29 cm |
| 90 × 90 | 5 5/8 × 5 5/8 in | 14.3 × 14.3 cm | 12 × 12 in | 30 × 30 cm |
The fabric to cut leaves 3 inches (7.5 cm) on every side for framing, rounded up to a whole inch or centimeter. For a design of another size, open the fabric calculator on 82 × 82 stitches at this count and change the numbers.
Hoop for the whole code, on 14 count
| Design, in stitches | Stitched size | Smallest hoop |
|---|---|---|
| 29 × 29 | 2 1/8 × 2 1/8 in (5.3 × 5.3 cm) | 4 inch (10 cm) |
| 33 × 33 | 2 3/8 × 2 3/8 in (6.0 × 6.0 cm) | 5 inch (13 cm) |
| 37 × 37 | 2 5/8 × 2 5/8 in (6.7 × 6.7 cm) | 5 inch (13 cm) |
| 41 × 41 | 2 7/8 × 2 7/8 in (7.4 × 7.4 cm) | 6 inch (15 cm) |
| 45 × 45 | 3 1/4 × 3 1/4 in (8.2 × 8.2 cm) | 6 inch (15 cm) |
| 58 × 58 | 4 1/8 × 4 1/8 in (10.5 × 10.5 cm) | 7 inch (18 cm) |
| 66 × 66 | 4 3/4 × 4 3/4 in (12.0 × 12.0 cm) | 8 inch (20 cm) |
| 74 × 74 | 5 1/4 × 5 1/4 in (13.4 × 13.4 cm) | 9 inch (23 cm) |
| 82 × 82 | 5 7/8 × 5 7/8 in (14.9 × 14.9 cm) | 10 inch (25 cm) |
| 90 × 90 | 6 3/8 × 6 3/8 in (16.3 × 16.3 cm) | 12 inch (30 cm) |
The hoop leaves half an inch (1.3 cm) of cloth all round the design, measured corner to corner.
Keep the margin bare
- Four squares of the code on every side. With two stitches a square, that is eight stitches.
- The color of the light squares. Bare cloth, the same as inside the code.
- No words, border or motif in it. Set them farther out.
- No frame or mat over it. A mat is the card border inside a frame. Have its opening cut to the outside of the margin or wider.
- No grid left in it. Wash out pen lines, and pull out grid threads, before you test.
Dark on light, and which thread
A phone tells the squares apart by how dark they are. Contrast counts for more than color.
| Thread and cloth | Will it do? |
|---|---|
| Black (DMC 310) on white or cream | The surest |
| Very dark navy, brown or green on white or cream | Likely. Test first |
| Mid blue, mid green, gray | Test first. The paler, the less likely |
| Red on white, or blue on green | No. Some readers cannot tell the two apart |
| Pastels | No. Too little contrast |
| Metallic or very shiny thread | No. The shine moves and reads as light |
| Light thread on dark cloth | No. Many readers expect dark on light |
| Hand-dyed cloth in patches of light and dark | No. The light squares should be one even shade |
Fabric colors has more on how a thread stands against its ground.
Read a small print before you stitch
This print is as large as the stitching will be. It shows whether a phone can read the code at that size.
- Work out the width. Divide the code's stitches across, without the margin, by the count. 25 stitches on 14 count are 1 3/4 inches (4.5 cm), and 50 are twice that.
- Print the code at 100%. Choose 100% or "actual size" in the print window.
- Measure the printed code across, without its white margin.
- Work out the percentage. Divide the width you want by the width you measured, and multiply by 100. To bring a code of 5 inches (12.7 cm) down to 1 3/4 inches (4.5 cm), that is 35%.
- Print it again at that percentage. Type it into the scale box of the print window.
- Leave white paper round it, four squares of the code or more, if you cut it out.
- Read it with two phones, at the distance it will be read from. If they cannot, use two stitches a square, or fewer words.
Stitch it
If you have never made a cross, learn it first: how to cross stitch. A cross is two slanting stitches, its legs, one on top of the other.
- Try a patch. In a corner of the cloth fill a block of 5 by 5 with crosses, in two strands of your thread.
- Hold the patch away from you. If specks of cloth show, use three strands or a higher count: how many strands has the usual numbers, and full coverage how to close the gaps.
- Find the middle of the cloth. Fold it in half both ways. The folds cross at the middle.
- Mark the outline of the code round the middle, with thread or with a pen that washes out. Each side is as many stitches as the code has squares, or twice as many at two stitches a square. For a code of 25 squares, count 12 to the left and 13 to the right, 12 up and 13 down; at two stitches a square, 25 each way. The bare margin lies outside the outline.
- Grid the inside every ten stitches, or every twenty at two stitches a square, starting from the left and the top of the outline. The lines then match the chart's: gridding.
- Put the cloth in the hoop, with the whole outline inside it. Pull it evenly, or the squares will not stay square.
- Start the thread under the first stitches, with no knot: starting and ending a thread.
- Stitch the top left ring (A) into the top left corner of the outline. It is seven crosses on each side, or fourteen at two stitches a square, where the ring is two crosses thick.
- Fill its dark middle (C). It is three crosses by three, or six by six. The ring between (B), one square wide, stays bare: that is one block of cloth, or two at two stitches a square.
- Count along the outline to the top right corner and stitch the ring and the middle there.
- Do the same in the bottom left corner. The bottom right corner has none.
- Check the gap between two rings. It is 14 squares less than the width of the code: 7 in a code of 21, 11 in a code of 25, and double in stitches at two a square. Put it right now if it is out.
- Work the other dark squares row by row, the timing lines (E) and small squares (F) among them, in full crosses, with the top leg slanting the same way in all of them.
- Leave the light squares as bare cloth. Do not outline anything.
- Check each row against the chart before the next, from both ends.
- End the thread where the next dark square is more than three or four stitches away across bare cloth: run it under four or five stitches on the back, and cut it. Dark thread carried behind light cloth can show through as gray.
How to count has ways to keep your place.
Test the stitching, three times
- When the corners and the first few rows are in. It cannot be read yet. Look at it through the phone's camera, at the distance it will be read from, and see whether dark and light are plainly apart.
- When it is finished. Pull out a thread grid. Then wash out any pen lines (how to wash), let it dry, press it from the back (how to iron) and lay it flat. Read it with two phones or more.
- Where it will hang. Try it in the daytime and by lamplight, and once more after it is framed. Glass can throw a glare. A frame without glass, or a place out of the light of a window, may be the cure.
Keep the whole code and its margin inside the camera's picture.
If it will not read, in this order
| Try | Why |
|---|---|
| Move the phone slowly nearer and farther, straight in front | It may be out of focus or at a slant |
| Add light, and take away shadow | Dark and light have to differ |
| Wipe the lens, or use another phone | It may not be the stitching |
| Read the small print again | If the print fails too, the code or its address is at fault |
| Press the cloth and pull it flat | A wavy code has uneven squares |
| Look at the margin | A pen line, a hoop edge or a border may be in it |
| Check the three corner squares stitch by stitch | The code cannot repair them |
| Check every row against the chart | A missed row shifts everything below it |
| Stitch once more over the palest squares, with one strand | Specks of cloth make a dark square gray |
If nothing on the list helps, work it again at two stitches a square.
What not to put in a code on a wall
Anyone who can see a code can read it.
- An address that will change. The stitches cannot. Use one you own, or one you expect to last.
- A short link from a service. If the service stops or lets the link expire, the code leads nowhere, and whoever runs it decides where it leads.
- A password you would not say aloud. A Wi-Fi code holds the network's name and its password as plain text. Use a guest network, which is a second network, with a password of its own, for visitors. When you change the password, the code is finished.
- Anything personal, such as a telephone number, a home address or a date of birth.
Uses that suit it
- A Wi-Fi card for guests, for the guest network only, made as "A Wi-Fi code" says above. Small finishes has flat and standing shapes for it.
- A link to a page of photographs or a playlist, on a card: making cards.
- A line of plain text, such as a name or a wish. It needs no page to stay alive.
Write the code's words in pencil on a slip of acid-free paper and keep it behind the frame. Years on, someone can still read it.
Common mistakes
- Cropping the margin when the piece is framed. Measure four squares out before the mat is cut.
- A long address. Every step up in length adds four rows and four columns.
- Resizing the picture of the code until its squares blur, then charting the blur. Print a fresh one.
- Half crosses to save thread. They leave cloth showing. Use full crosses.
- Uneven cloth. If the count differs across and down, the squares come out oblong. Find the count both ways first.
- One phone, once. Try two, in two lights.
Questions people ask
Do stitched QR codes work? They can. A reader looks only for light and dark squares in the right places, and does not care what they are made of. Whether yours does is known when a phone has read it.
How big must it be? At one stitch a square the smallest code with its margin is 29 stitches, about 2 1/8 inches (5.3 cm) on 14 count. A bigger square is read more steadily.
Can it be another color? A very dark one, on a light, even cloth. Test the thread on a patch, and read a print in the same color first.
Can I put a logo or a heart in the middle? It is better not to. It covers squares that the code then has to repair, and stitching needs that spare room for itself.
Can I make it round? No. The squares, the three corners and the margin are what make it a code.
Can I stitch it on linen? On an even linen over two threads, yes. On one whose threads run thick and thin the squares vary, and Aida is safer.
Must I stitch the light squares white? No. Bare white or cream cloth is the light color. On dark or mid-colored cloth they would all have to be stitched, and the margin too.
Where to go next
Print graph paper or open the pattern maker and chart the code. For more designs built from squares, look through the pixel art patterns. When the piece has been read, see how to frame it.
QR Code is a registered trademark of its owner. Floss Field is not affiliated with, sponsored by or endorsed by that owner.