What stays on your device
Your browser reads the photo and scales it to at most 1,600 pixels on its long side. Cropping, color matching, the PDF, and the PNG all happen in your browser. Saved projects are stored in your browser’s own storage, called IndexedDB, and you can delete them from the maker. Nothing about your photo is sent to us. See the privacy policy for the page view counts we do keep.
From photo to cells
- Average. The photo is divided into the chart’s grid, and each cell takes the average color of the pixels inside it. Transparent pixels in a PNG make empty cells.
- Background, if you ask. Remove background floods inward from every edge cell. A neighboring cell joins the background when its color is within Tolerance of the edge color the flood started from. Brushes erase or restore cells by hand.
- Group colors. The cells’ colors are grouped with k-means clustering in CIELAB, a color space where equal distances look like roughly equal differences to the eye. Colorful cells get a little more weight, so a bright subject is not swallowed by a large gray background.
- Match threads. Each group is matched to the nearest color in the palette using Delta E 2000. That is the CIE’s formula for how different two colors look. Our tests check it against the test data of Sharma, Wu, and Dalal (2005).
- Assign cells. Each cell takes the nearest chosen thread, again by Delta E 2000. With Dithering on, the difference between a cell and its thread is passed on to the cells next to it (Floyd and Steinberg’s error diffusion), which mixes threads in a dot pattern.
- Clean up. With Clean up stray stitches on, a cell with no same-color neighbor among its 8 neighbors takes the most common neighbor color. A lone cell in empty space is cleared.
The supply math
Thread is worked out from the shape of a stitch on the fabric grid. If the holes are s apart (25.4 mm divided by the count), a full cross uses (2√2 + 2) x s of thread per strand: two diagonals on the front and two short legs on the back. A half stitch or basketweave stitch uses (√2 + 1) x s, and continental uses (√2 + √5) x s. The maker multiplies by the stitches, the strands, and 1 plus Extra for waste, then divides by a skein. A DMC six-strand skein is 8 m of six strands, per DMC. A DMC tapestry wool skein is 8 m, worked as one strand. The skein calculator shows a full worked example.
Drills, beads, and plates are counted per color, plus your spare percent, rounded up. Drill sizes are Diamond Art Club’s: 2.5 mm square and 2.8 mm round. Pegboards hold 29 x 29 beads, and baseplates 16, 32, or 48 studs a side at 8 mm per stud.
Color data and credits
Screen colors for thread and beads are approximate, because no maker publishes official ones. Always buy by number.
- DMC floss colors: sharlagelfand/dmc (MIT, 2020 Sharla Gelfand) and DavidPagels/dmc-floss-helper (MIT, 2021 DavidPagels).
- Anchor colors: lindsaylandry/go-cross-stitch (MIT, 2022 lindsaylandry). Published Anchor lists disagree with each other a lot, so treat DMC to Anchor matches as computed suggestions.
- Perler and Hama colors: maxcleme/beadcolors (MIT, 2020 maxcleme), measured from real beads by volunteers.
- LEGO colors: the LDraw Parts Library, CC BY 2.0 and CC BY 4.0, filtered to solid colors.
- PDF files are made with pdf-lib (MIT, 2019 Andrew Dillon).
- The sample photo is a bluebird by Matt Poole, U.S. Fish and Wildlife Service, in the public domain.
The full licence notices are in the third-party licences file. DMC, Anchor, Perler, Hama, and LEGO are trademarks of their owners, who do not sponsor or endorse this site.
What the method cannot do
It cannot see meaning: an eye and a button are both just colors to it. It cannot know your tension, fabric, or dye lots, so supply amounts are estimates.
Updated December 2, 2026