Hitomezashi

Make a hitomezashi stitch pattern and print it as a template or as a two-colour picture. Every horizontal and vertical line of the grid is stitched as a row of dashes: stitch, gap, stitch, gap. Each line gets one bit, which says whether it starts with a stitch (0) or a gap (1), and those simple offsets build up into steps, crosses and zigzags. Take the bits from a word (vowels are 1), from digits (odd digits are 1), from 0s and 1s you type, or from a seed, separately for the rows and the columns, on a grid of up to 150 × 150. The tool also colours the squares with two colours so that a stitch always separates different colours, and prints the stitch template at the exact spacing you choose. Download a PDF, a 300 DPI PNG or an SVG. Nothing is uploaded.

100% private — everything runs in your browser. Everything runs in your browser; nothing is uploaded.

100% private — runs in your browser

Print at 100% (Actual size). Real size prints on one sheet when the drawing fits; the check bar in the footer lets you confirm the scale. The SVG holds the drawing at the printed size.

Stitch rule

Look

Page

Runs in your browser with our own code: nothing you type is uploaded or saved. Every stitch and every colour is worked out by our own code from the bits shown. You may use what you make here, including commercially, with no credit needed.

How to make and print a hitomezashi pattern

  1. Pick a preset, or set the columns and rows.
  2. Choose where the row bits and the column bits come from, and type the word, digits or 0s and 1s.
  3. Choose two colours with stitches, stitches only or colours only, and dots at the grid points if you like.
  4. Set the stitch length and line width; choose Fitted to one page or Real size and the paper.
  5. Download the PDF and print at 100% (Actual size), or the PNG or SVG.

What you can use it for

  • Stitch templates for hand embroidery at the exact spacing
  • Maths lessons on binary sequences and two-colouring
  • Names and words turned into patterns for gifts
  • Quilting, knitting and weaving charts from the two-colour grid
  • Plotter, laser and vinyl art from the SVG
  • Backgrounds and wrapping paper

The 14 presets

PresetGridRow bits (first 12)Column bits (first 12)StitchesRegionsDarkLookStitch length
Words: rows “hitomezashi”, columns “stitch pattern” (vowel = 1)30 × 40word: 010101010010word: 0010000100101,2355850%two colours + stitches5 mm
Stitch template only: rows “sashiko”, columns “running stitch”30 × 40word: 010010101001word: 0100100001001,2357249%stitches only5 mm
Digits: rows 31415926535, columns 27182818284 (odd = 1)30 × 40digits: 110111001111digits: 0110001000001,23514650.3%two colours + stitches5 mm
Binary: rows 0010111, columns 011010030 × 400s and 1s: 0010111001010s and 1s: 0110100011011,2359349%two colours + stitches5 mm
All lines alternate: 0101 … both ways30 × 400s and 1s: 0101010101010s and 1s: 0101010101011,2353550%two colours + stitches5 mm
All lines start with a stitch: 0 … both ways30 × 400s and 1s: 0000000000000s and 1s: 0000000000001,23530175%two colours + stitches5 mm
Pairs: 0011 … both ways30 × 400s and 1s: 0011001100110s and 1s: 0011001100111,23516163.3%two colours + stitches5 mm
Rows 0011, columns 0130 × 400s and 1s: 0011001100110s and 1s: 0101010101011,2353550%two colours + stitches5 mm
Seeded random bits, half 1s (seeds 1 and 2)30 × 40seeded: 010001001011seeded: 0110001101011,2359850%two colours + stitches5 mm
Seeded random bits, one in five is 130 × 40seeded: 110000000001seeded: 1000000001011,23515845.8%two colours + stitches5 mm
Words on 80 × 100: rows “made good”, columns “hitomezashi”80 × 100word: 010101100101word: 0101010100108,09017450.9%two colours + stitches2 mm
Stitch template with dots at every grid point24 × 30word: 011001011001word: 0001100001107476247.2%stitches only6 mm
Real size: 30 × 40 at 5 mm spacing30 × 40word: 010101010010word: 0010000100101,2355850%stitches only5 mm
Real size: 24 × 32 at a quarter inch24 × 32word: 011000110001word: 0100010010007967747.9%stitches only0.25 in

Every count is worked out by the tool from the stitches it draws.

The rule

LineStitch on the piece …
Horizontal line y = j, bit rfrom x = i to i + 1 when i + r is even
Vertical line x = i, bit cfrom y = j to j + 1 when j + c is even
Bit 0stitch, gap, stitch, gap …
Bit 1gap, stitch, gap, stitch …

What prints

DownloadWhat is in it
PDFThe grid fitted to one page or at real size, vector, with the bits, the counts and a check bar
PNG 300 DPIThe same sheet as a picture
SVGThe pattern at the printed size: each stitch as its own dash in one stroked path, colours as exact rectangles

For a cutter that needs DXF, use SVG to DXF.

Which tool to use

You wantUse
Stitch lines from bits or wordsHitomezashi (this page)
Fixed traditional Japanese repeatsJapanese Pattern Generator
A cross-stitch chart from a pictureCross Stitch Pattern Maker
Plain grid paperGraph Paper
Tiles that fit by edge rulesWave Function Collapse

Other tools: the Japanese Pattern Generator draws traditional repeats, the Cross Stitch Pattern Maker turns pictures into charts and Graph Paper prints plain grids.

More free tools

Grids, patterns and printables?

Drawing and print tools that run privately in your browser, with no sign-up and no watermark.

See all free tools →

Frequently asked questions

What is hitomezashi?

A style of sashiko stitching. The Wikipedia article on sashiko (read 13 November 2026) names it as one of the two main geometric styles, “where the pattern emerges from the alignment of single stitches made on a grid”. This tool draws the grid version made from rows and columns of evenly spaced dashes.

What is the rule?

Line y = j has a bit for the rows and line x = i a bit for the columns. On a horizontal line, the piece from x = i to i + 1 is a stitch when i plus the line’s bit is even; on a vertical line, the piece from y = j to j + 1 is a stitch when j plus the line’s bit is even. So bit 0 starts with a stitch and bit 1 starts with a gap. Our tests check every row and column of 40 seeded grids against this rule.

How do words become bits?

Every vowel (a, e, i, o, u) is 1 and every other letter is 0; spaces and other characters are skipped. “hitomezashi” gives 0 1 0 1 0 1 0 1 0 0 1. Digits work the same way with odd digits as 1. A short list repeats to fill every line.

How are the two colours worked out?

Starting from the top-left square, the tool moves square by square: crossing a stitch changes the colour, crossing a gap keeps it. It then checks every pair of side-by-side squares. In our tests on 60 seeded grids every pair differs exactly when a stitch separates them, so the two colours always work out, and the region counts match a second flood fill of our own.

How is it different from the Japanese pattern tool’s sashiko export?

That tool draws fixed traditional repeat patterns and can export their lines for stitching. This one builds each line from a bit you choose, so a word or a number makes its own pattern, and it adds the two-colour fill.

Can I print a stitch template?

Yes. Choose Stitches only, add dots at the grid points if you like, set the stitch length (the grid spacing) and print at real size. Every printed stitch is exactly one grid space long and starts on a grid point; our tests check it to 0.2 mm on US Letter and A4.

What sizes can it make?

Grids from 2 × 2 up to 150 × 150 squares, with a stitch length from 1 mm to 40 mm; every preset draws in under 2 seconds in our tests.

Can it print at real size?

Yes, when the drawing fits on one sheet: choose Real size and set the cell size. Every printed line and fill is within 0.2 mm of its true place in our tests, on US Letter and A4, as long as you print at 100% (Actual size); the check bar in the footer lets you confirm the scale. Bigger drawings print fitted to the page.

Is it free?

Yes. There is no sign-up, no watermark and no limit.

Is anything uploaded?

No. Every stitch and colour is worked out by JavaScript in your browser. Nothing you type is sent anywhere or saved when you close the page.