Skip to main content

Knitted QR Code Pattern Generator

Paste a link and get a QR code chart drawn on knitting-shaped cells: pick 1 stitch per square for speed or 3 stitches × 4 rows so the code stays square in stockinette, enter your gauge, and download the chart with the rows written out.

Knitted QR code chart

Paste a link or any text and the grid updates to the exact stitch pattern.

29 stitches × 29 rows
QR code
Version 2 (25×25 modules)
With quiet zone
29 × 29 modules
Finished size
14.5 × 10.7 cm (5.7 × 4.2 in)
Stitches — Black
326
Stitches — White
515
Cast on / start with
29 stitches
Written rows (29 rows)

Listed from the bottom edge up, in the order you work them. Right-side rows read as written (right to left on the fabric); on wrong-side rows work the same counts in reverse. Following the chart this way keeps the code from coming out mirrored.

  1. Row 1: 29 light
  2. Row 2: 29 light
  3. Row 3: 2 light, 2 dark, 3 light, 2 dark, 1 light, 3 dark, 2 light, 2 dark, 1 light, 1 dark, 1 light, 7 dark, 2 light
  4. Row 4: 3 light, 1 dark, 1 light, 2 dark, 2 light, 6 dark, 1 light, 1 dark, 3 light, 1 dark, 5 light, 1 dark, 2 light
  5. Row 5: 2 light, 1 dark, 3 light, 1 dark, 2 light, 2 dark, 1 light, 1 dark, 1 light, 2 dark, 1 light, 2 dark, 1 light, 1 dark, 1 light, 3 dark, 1 light, 1 dark, 2 light
  6. Row 6: 4 light, 4 dark, 5 light, 3 dark, 1 light, 1 dark, 2 light, 1 dark, 1 light, 3 dark, 1 light, 1 dark, 2 light
  7. Row 7: 2 light, 1 dark, 2 light, 6 dark, 3 light, 1 dark, 2 light, 2 dark, 1 light, 1 dark, 1 light, 3 dark, 1 light, 1 dark, 2 light
  8. Row 8: 2 light, 1 dark, 2 light, 2 dark, 3 light, 1 dark, 4 light, 3 dark, 2 light, 1 dark, 5 light, 1 dark, 2 light
  9. Row 9: 2 light, 2 dark, 1 light, 2 dark, 1 light, 1 dark, 1 light, 2 dark, 1 light, 1 dark, 2 light, 2 dark, 2 light, 7 dark, 2 light
  10. Row 10: 2 light, 2 dark, 1 light, 2 dark, 3 light, 1 dark, 1 light, 1 dark, 2 light, 1 dark, 2 light, 1 dark, 10 light
  11. Row 11: 5 light, 6 dark, 1 light, 1 dark, 2 light, 1 dark, 2 light, 5 dark, 1 light, 1 dark, 1 light, 1 dark, 2 light
  12. Row 12: 3 light, 1 dark, 2 light, 1 dark, 2 light, 6 dark, 4 light, 1 dark, 3 light, 1 dark, 1 light, 1 dark, 3 light
  13. Row 13: 2 light, 3 dark, 2 light, 4 dark, 1 light, 1 dark, 1 light, 2 dark, 2 light, 5 dark, 3 light, 1 dark, 2 light
  14. Row 14: 2 light, 1 dark, 2 light, 1 dark, 2 light, 1 dark, 1 light, 1 dark, 2 light, 5 dark, 1 light, 1 dark, 4 light, 2 dark, 3 light
  15. Row 15: 2 light, 2 dark, 1 light, 1 dark, 2 light, 2 dark, 4 light, 1 dark, 1 light, 7 dark, 1 light, 3 dark, 2 light
  16. Row 16: 3 light, 1 dark, 3 light, 5 dark, 2 light, 6 dark, 2 light, 1 dark, 3 light, 1 dark, 2 light
  17. Row 17: 2 light, 3 dark, 1 light, 3 dark, 1 light, 1 dark, 2 light, 2 dark, 1 light, 1 dark, 1 light, 3 dark, 2 light, 4 dark, 2 light
  18. Row 18: 2 light, 1 dark, 5 light, 1 dark, 5 light, 2 dark, 3 light, 1 dark, 3 light, 1 dark, 2 light, 1 dark, 2 light
  19. Row 19: 3 light, 1 dark, 2 light, 1 dark, 3 light, 3 dark, 4 light, 1 dark, 2 light, 1 dark, 1 light, 1 dark, 1 light, 1 dark, 1 light, 1 dark, 2 light
  20. Row 20: 10 light, 1 dark, 1 light, 2 dark, 3 light, 1 dark, 11 light
  21. Row 21: 2 light, 7 dark, 1 light, 1 dark, 1 light, 1 dark, 1 light, 1 dark, 1 light, 1 dark, 1 light, 1 dark, 1 light, 7 dark, 2 light
  22. Row 22: 2 light, 1 dark, 5 light, 1 dark, 2 light, 4 dark, 1 light, 1 dark, 3 light, 1 dark, 5 light, 1 dark, 2 light
  23. Row 23: 2 light, 1 dark, 1 light, 3 dark, 1 light, 1 dark, 2 light, 3 dark, 4 light, 1 dark, 1 light, 1 dark, 1 light, 3 dark, 1 light, 1 dark, 2 light
  24. Row 24: 2 light, 1 dark, 1 light, 3 dark, 1 light, 1 dark, 2 light, 2 dark, 1 light, 1 dark, 1 light, 2 dark, 2 light, 1 dark, 1 light, 3 dark, 1 light, 1 dark, 2 light
  25. Row 25: 2 light, 1 dark, 1 light, 3 dark, 1 light, 1 dark, 1 light, 2 dark, 3 light, 1 dark, 1 light, 1 dark, 2 light, 1 dark, 1 light, 3 dark, 1 light, 1 dark, 2 light
  26. Row 26: 2 light, 1 dark, 5 light, 1 dark, 1 light, 3 dark, 1 light, 1 dark, 3 light, 1 dark, 1 light, 1 dark, 5 light, 1 dark, 2 light
  27. Row 27: 2 light, 7 dark, 2 light, 3 dark, 1 light, 1 dark, 1 light, 1 dark, 2 light, 7 dark, 2 light
  28. Row 28: 29 light
  29. Row 29: 29 light

Test it: scan the preview on screen with your phone camera before you start.

Dark BLK Black, light WHT White.

Turn a photo into a real pattern

Want a picture instead of a code? Turn any photo into a knitting chart with the stitch ratio built in.

Open Knitting Generator

Why a knitted QR code needs its own chart

A QR code is a grid of square modules, but a stockinette stitch is wider than it is tall — about 3 rows for every 4 stitches of width at a typical gauge. Knit a QR code one stitch per square and it comes out roughly a quarter shorter than it is wide. Most phone scanners correct for a stretched code, but a square one scans faster and from further away.

The 3 stitches × 4 rows option fixes that: each module becomes a block that is as tall as it is wide in stockinette, so the finished piece matches the screen. It also makes the code four times bigger, which helps with fuzzy yarns and scanning across a room. A typical 29 × 29 code at 20 stitches per 10 cm is about 14.5 cm wide at 1 stitch per module and 43.5 cm with 3-stitch blocks — scarf or pillow size.

Knitting the chart bottom-up flips the reading direction, and a mirrored QR code will not scan. The written rows under the chart are already in working order — bottom row first, right-side rows read right to left — so the code faces the right way on the front of the fabric. For any other colorwork, the knitting graph paper uses the same stitch proportions.

Which technique: double knitting, stranded or duplicate stitch

Double knitting is the favorite for QR scarves: two layers knit at once, no floats, and both sides finished. The back shows the same code in reversed colors, and many phone cameras will not read a light-on-dark code, so mark which side is the front.

Stranded colorwork works, but QR codes have long runs of one color — the corner squares alone are 7 modules wide — so catch the float every 4–5 stitches and keep the tension loose enough that the fabric lies flat. A puckered code is harder to scan than a slightly squat one.

Duplicate stitch is the easiest route for a small code: knit a plain light-colored piece, then embroider the dark modules on top, one V per stitch. It is slow for a big code but mistakes are easy to undo. Whatever the method, use a smooth, high-contrast pair such as black and white wool, block the piece flat, and scan it before you weave in the ends.

Knitted QR Code FAQ

Related Tools and Pages