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.
- 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.
- Row 1: 29 light
- Row 2: 29 light
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- Row 16: 3 light, 1 dark, 3 light, 5 dark, 2 light, 6 dark, 2 light, 1 dark, 3 light, 1 dark, 2 light
- 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
- 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
- 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
- Row 20: 10 light, 1 dark, 1 light, 2 dark, 3 light, 1 dark, 11 light
- 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
- 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
- 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
- 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
- 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
- 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
- Row 27: 2 light, 7 dark, 2 light, 3 dark, 1 light, 1 dark, 1 light, 1 dark, 2 light, 7 dark, 2 light
- Row 28: 29 light
- 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 GeneratorWhy 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
Yes, if the contrast is high, the light border is kept and the chart is followed exactly. Smooth yarn, flat blocking and good light matter more than gauge. Scan the on-screen preview first, then test the knitting before binding off.
One stitch per module plus the border: a short link makes a 25 × 25 or 29 × 29 code with a 2-square border, so 29 or 33 stitches. With 3-stitch blocks multiply by three. The tool shows the exact cast-on count for your link.
No. A code knit 1 stitch × 1 row is about 25% squat and most phones still read it, because scanners correct the shape from the three corner squares. Square blocks are worth it for anything large, fuzzy or meant to be scanned from a distance.
Smooth worsted or DK in black and white or another very dark and very light pair. Avoid mohair, boucle and variegated yarns — the halo or color changes blur the module edges the scanner relies on.
Related Tools and Pages
Crochet QR Code
The same QR chart for C2C tiles or single crochet.
Rick Roll QR Code
Never Gonna Give You Up as a ready-made QR chart for any craft.
Knitting Graph Paper
Printable graph paper proportioned to your stitch and row gauge.
Fair Isle Pattern Generator
Two-color stranded charts from photos, with float estimates.
Cross Stitch QR Code
Chart a link as a cross stitch QR code in DMC colors.
