Knitting Chart Maker
Operator: Abdulla Al Fahad. How tools are built and checked
A knitting chart is a picture of the right side of the work, so it is read the way the fabric is made: on a flat chart a right-side row runs from right to left, the next row runs back from left to right, and every knit square on that return row is purled. Get that wrong in a hand-drawn chart and the written pattern and the picture disagree by row 2.
This page draws the chart, numbers the rows on the correct edge, reads flat and in-the-round charts in the right direction, and writes the rows out with stitch counts, so the text is always a translation of the squares and never a second source of truth.
Key features
- A grid of up to 100 stitches by 150 rows with 14 symbols modelled on the Craft Yarn Council conventions: knit, purl, yarn over, make one, k2tog, ssk, centred double decrease, slip 1, bobble, no stitch, and 4- and 6-stitch cables crossing in front or behind
- Flat or in-the-round reading, with row 1 as a right-side or a wrong-side row; row numbers sit on the right for right-side rows and rounds and on the left for wrong-side rows
- Stitch repeat boxes and row repeat boxes, entered with the stitch and row numbers printed on the chart, drawn in red and blue and written as [ ... ] x N
- Colourwork mode with up to 12 yarn colours, each named by a letter, and picture import with a gauge correction so the rows follow your stitches and rows per 10 cm
- Written instructions with a stitch count on every row, warnings when a row works a different number of stitches than the row before left, and a cast-on figure worked out from the first row and its repeat boxes
- A PDF with the chart (split by rows across pages if it is tall), a legend of only the symbols used, and the written rows; PNG at twice the size of the SVG, which uses 24-point squares, for the chart alone
How a chart is read and written out
Stitch numbers run along the bottom from the right edge, because the first stitch of a right-side row is the rightmost square. Columns marked 1, 5, 10 and so on and heavier lines every five squares make a long row easier to follow. A cable occupies 4 or 6 squares and is stored as one symbol with continuation cells, so painting a cable stamps all of them and erasing one square turns the orphaned cells back into knit stitches.
Each symbol carries its instruction for a right-side row and for a wrong-side row. Knit and purl swap, k2tog becomes p2tog and ssk becomes ssp on a wrong-side row, while yarn over, make one, bobble and the cables read the same. In the round there is no wrong side, so every round uses the right-side wording.
How it works
A row is turned into text by taking its squares in reading order, merging neighbours with the same instruction (knit, knit, knit becomes k3), and wrapping any stretch inside a repeat box as [ ... ] x N. Stitches taken off the needle and stitches made are counted for every symbol (k2tog takes 2 and makes 1, a yarn over takes 0 and makes 1), so each row shows its resulting stitch count.
A row that works a different number of stitches than the previous row left is flagged, as is a cable on a wrong-side row and a cable that crosses the edge of a repeat box. The repeat box is applied to every row of the chart, which is how chart repeats are normally drawn.
Picture import averages the pixels under each square, transparent pixels counting as white, then reduces the squares to the number of yarn colours you ask for with a median-cut palette ordered from light to dark, so colour A is the lightest. The number of rows is stitches times the picture's height over its width times rows per 10 cm over stitches per 10 cm, rounded and limited to 150.
Typical uses
- A designer draws a 24-stitch chart once, adds a 12-stitch repeat box worked 3 times and sends testers the PDF; the cast-on of 48 stitches (24 + 12 x 2) is computed from the box, not typed.
- A knitter turns a square logo into a 40-stitch motif for a hat in 4 colours; at 22 stitches and 30 rows per 10 cm the page makes it 55 rows, 18.2 cm wide and 18.3 cm tall, matching the logo's square shape.
- A sock leg worked in the round on 64 stitches is drawn as a 16-stitch chart whose repeat box covers all 16 stitches, worked 4 times; every round is read right to left and numbered on the right.
Building one
- Set the width and height and press Apply size, or press Load example.
- Pick a symbol and click or drag on the grid; switch on Colourwork to paint yarn colours instead.
- Choose flat or in the round, which side row 1 is, and add repeat boxes using the printed stitch and row numbers.
- Read the Written rows tab and the warnings; fix any row that works the wrong number of stitches.
- Title the chart and export it as a PDF, PNG or SVG.
Example
A cable and eyelet panel (the built-in example)
12 stitches by 8 rows, flat, row 1 right-side. Purl border of 2 stitches each side, a 4-stitch cable back and a 4-stitch cable front on row 3, k2tog with yo eyelets on row 7. Stitch repeat box from stitch 10 to 3, twice; row repeat of rows 1 to 8, three times.Written rows
Cast on 20 stitches. Row 1 (RS): p2, [k8] x2, p2. (20 sts). Row 2 (WS): k2, [p8] x2, k2. (20 sts). Row 3 (RS): p2, [C4F, C4B] x2, p2. (20 sts). Row 7 (RS): p2, [k2, yo, k2tog, k2, yo, k2tog] x2, p2. (20 sts). Work rows 1 to 8 a total of 3 times, then finish. The PDF runs to 3 pages: the chart, the legend and the written rows.Tips for best results
- Use no-stitch squares to keep a chart rectangular where a decrease takes the stitch count down; they are skipped in the written rows and the next row's count still has to match.
- For colourwork the picture is averaged per square, so import a picture already cropped to the motif and simplified; fine detail under one square wide disappears into a neighbour colour.
- Add repeat boxes last: the cast-on figure and the stitch count of every row change when a box is added.
Things to check before you rely on it
Written colourwork rows read 'k3 in A, k2 in B, k3 in A'; the page does not measure float lengths or tell you when to weave a float in.
The PDF squares are (page width less 140 pt) divided by the number of stitches, so they drop below 8 pt once a chart is wider than 59 stitches on Letter or 56 on A4, and they stop shrinking at 5 pt, which is reached at 91 stitches on A4 and 95 on Letter; the PDF warns when that happens, and the SVG scales without that limit.
Common errors and how to fix them
- The picture is 8000 x 6500 pixels; the limit is 40 million
- Shrink the picture in any image editor first; only 600 pixels on the long side are used anyway.
- Gauge must be between 5 and 60 stitches and 5 and 90 rows per 10 cm
- Measure over a washed swatch of at least 10 cm and enter stitches and rows per 10 cm, not per inch.
Best practices
- When a row's stitch count changes, look first for a yarn over or make one with no decrease to match it in the same row; the warning names the row, and fixing one square usually clears the following rows too.
- Draw a repeat once and cover it with a repeat box instead of copying it across the chart: the written rows and the cast-on number then follow every edit to the original.
What the 14 symbols mean
Knit is a blank square and purl a dot, as in most charts. The decreases lean the way their stitches do: k2tog is a slash leaning right, ssk a slash leaning left, and the centred double decrease a small arrow-head with a line through it. The cables are drawn as two crossing diagonals; the heavier one runs down to the right for a front cross and up to the right for a back cross.
- Yarn over: a circle
- Make one: a plus sign
- Slip 1: a V
- Bobble: a filled circle
- No stitch: a grey square
Frequently asked questions
Why does row 2 say purl when the squares are knit?
The chart shows the right side of the fabric. A square drawn as knit means a knit stitch as seen from the right side, so on a wrong-side row it is worked as a purl. In the round every round is a right-side round, so no swap happens.
Why do the stitch repeat numbers count from the right?
The printed stitch numbers start at the rightmost square, the first stitch of a right-side row. Typing 10 and 3 in the repeat fields marks the 8 squares from the tenth to the third counted from the right edge.
Does the picture import work for stranded colourwork with more than two colours?
It reduces the picture to up to 12 colours, but stranded work with more than two colours in a row is hard to knit; try 2 to 4 colours and check the chart before casting on.