🧢 Knitting Pattern Generator

Convert any image into an illusion knitting pattern β€” runs entirely in your browser

Rotate you image pre-upload, the image will be processed with the expected viewing angle being the bottom of the page.

Click or drop an image here



Generated pattern

πŸ“˜ How This Works

This tool converts images into illusion knitting charts using pixel analysis. You can select the granularity of the conversion with the "Stitch Detail" slider. This will convert a square (n x n pixels) into a single stitch in the final pattern.

When you upload an image it is processed using a simple Kmeans algorithm, with converts the image into 3 separate colours. These colours are then determined to be either light, medium, or dark and based on this determination a stitch will be formed in the pattern.

The resulting pattern creates an optical illusion when viewed from a specific angleβ€”appearing as a flat geometric pattern from one view, but revealing the full image when seen from the side/bottom viewing angle.

Technical Details

The image processing takes advantage of WASM to keep your data and processing on your device. This may mean the time to process may be longer on low power devices but you data remains private and never leaves your device.

You can experiment with pre-processing your image for better results. The analogue method found 'woollythoughts.com' relies on the artist determining which parts of the image will be best desplayed as each stitch. This occurs with a greyscale image, however this process uses the colours as well as brighteness to determine the pattern make up.

By pre-processing your image you can influence how the image is adapted into a pattern.

πŸ“Έ Preparing Your Images

For best results, prepare your image before uploading. Following these tips will dramatically improve your finished pattern:

Rotate First

The angle of viewing for the illusion will be from the bottom of this page, so the image should be rotated taking that into account pre-upload.

Colour limitations

If your images is a simple block colour image this can result in poor patterns. For example if a image naturally only has 4 colours during this the conversion will convert this into 3 colours, meaning two of the colours will be merged in the final pattern. Better to avoid overly simple images.

Aspect Ratio Considerations

The image is processed from top left to bottom right. On the final stitch for the rows and columns the stitch type can be dertermined with fewer pixels than the other stitches, this can lead to a small amount of distortion.

Detail Limitations

In the woollythoughts tutorials the pattern creation starts with the tigers eye, however this generates patterns starting at the top left. If you need the pattern to make a certain part of the image into a stich you will need to calculate that based on the images pixels and the location of the detail desired.

Note:Currently these patterns are untested on scale. Small scale simple patterns have been tested and seem to work but it is still early days.

🧢 Knitting Instructions

Quick Reference Guide

Before you start, understand the terminology:

Term Meaning
Ridge 2 rows of knitting (in garter stitch)
Right Side (RS) The side facing you when looking at the chart
Wrong Side (WS) The back side of your work
Light yarn Your lighter coloured yarn (e.g. cream, white, pale yellow)
Dark yarn Your darker coloured yarn (e.g. black, navy, dark brown)

The Three Zones on Your Pattern

Your downloaded pattern has three types of squares. Here's what each one means and what to do:

⬜ White / Light Squares

This area should appear as the LIGHT colour in the finished piece. Knit on light ridges, purl on dark ridges.

β—Ό Grey / Medium Squares

Intermediate shading where both colours blend. Knit on both light and dark ridges so neither colour dominates.

⬛ Black / Dark Squares

This area should appear as the DARK colour in the finished piece. Knit on dark ridges, purl on light ridges.

The Golden Rule

Illusion knitting works by making some stitches pop forward (visible) and others recede (hidden) depending on the viewing angle.

On the Wrong Side row:
KNIT = the stitch SHOWS (pops forward, visible from viewing angle)
PURL = the stitch RECEDES (gets pushed back, less visible from viewing angle)

So when you want the current ridge's colour to be seen, you KNIT.
When you want the other colour to show through, you PURL (hiding the current colour).

Step-by-Step Execution

Every ridge is made up of two rows. Ridges alternate between light yarn and dark yarn throughout.

  1. Cast on the number of stitches matching your chart width.
  2. Determine your starting colour. The first ridge on your chart will be either light or dark. Start with that yarn.
  3. Row 1 β€” Right Side (RS): Using the current yarn colour, knit ALL stitches across. Always. This sets the ridge.
  4. Row 2 β€” Wrong Side (WS): Still using the same yarn, look at your chart for this ridge and follow the rules below:
    • If this is a LIGHT ridge (you're using light yarn):
      • ⬜ White/light squares β†’ KNIT (light shows)
      • ⬛ Black/dark squares β†’ PURL (light hides, dark from below shows through)
      • β—Ό Grey/medium squares β†’ KNIT (light partially shows, creating blend)
    • If this is a DARK ridge (you're using dark yarn):
      • ⬛ Black/dark squares β†’ KNIT (dark shows)
      • ⬜ White/light squares β†’ PURL (dark hides, light from below shows through)
      • β—Ό Grey/medium squares β†’ KNIT (dark partially shows, creating blend)
  5. Switch yarns to the other colour and move to the next ridge on your chart.
  6. Repeat Rows 1–2 for each ridge, alternating light and dark yarn, following the chart top to bottom.
  7. Bind off when you reach the final row of your chart.

Complete Example: Two Ridges

Quick Reference Card

Print this and keep it next to you while knitting:

Square Colour On a LIGHT Ridge (WS row) On a DARK Ridge (WS row)
White KNIT PURL
Grey KNIT KNIT
Black PURL KNIT

Why Does This Create an Illusion?

When you purl a stitch on the Wrong Side, it creates a bump that pushes that stitch backward. From the straight-on view, both colours look equally mixed and you just see stripes. But when you tilt the piece and view from the bottom/side angle, the purled (receded) stitches disappear behind the knitted (forward) stitches β€” and the image appears.

The grey/medium squares are knit on both ridges, so neither colour fully dominates. This creates areas of intermediate tone, giving your image shading and depth rather than just harsh black-and-white contrast.

Testing Your Work

Tips for Success

βœ“ Use Strong Contrast

Choose light and dark yarns with strong contrast (e.g. cream and black, white and navy)

βœ“ Mark Every 10th Stitch

Use stitch markers or a highlighted chart to avoid losing your place on wide patterns

βœ“ Block When Done

Gently steam or wet-block your finished piece to soften purl bumps and sharpen the illusion

βœ— Don't Rush the WS Row

The wrong-side row is where the magic happens β€” mistakes here directly affect the illusion

Estimating Finished Size

Approximate sizes based on common yarn weights:

Yarn Weight Needle Size Per Stitch 150 sts wide
DK / Light Worsted US 5–6 (3.75–4mm) ~3mm ~18cm / 7"
Worsted US 7–8 (4.5–5mm) ~4mm ~15cm / 6"
Bulky / Chunky US 9–10 (5.5–6mm) ~5mm ~12cm / 5"

Note: These are estimates. Always knit a swatch and measure your own gauge for accurate sizing.

πŸ”’ Privacy & Data

Your privacy is our priority. This tool is designed with your security in mind:

How it works: This tool uses WebAssembly to process images locally. Once you close the tab, all data is gone. Nothing is sent to any server.

⚠️ Credits & Attribution

This tool was inspired by the work of Pat Ashforth & Steve Plummer at Woolly Thoughts.

Their "Eye of the Tiger" illusion knitting tutorial series provided the foundational technique and methodology for this application. We're grateful for their generous sharing of illusion knitting knowledge.

If you create something beautiful with this tool, please credit both us and the original Woolly Thoughts pattern designers.

Read the full Woolly Thoughts tutorial series here