Craft Tools

String art pattern generator

Nails set in a circle, one thread running from nail to nail: which nail comes next, and in what order, so that the finished piece looks like your photo?

nails

Between 60 and 360. More nails give finer detail and a longer build.

segments

Between 200 and 5,000: a segment runs from one nail to the next.

in
%

How much black one segment covers: 8 to 20% for fine black thread; higher, and fewer segments are enough.

What this tool is for

A string art piece is a board, a ring of nails and one long thread. The portrait appears because the thread is denser where the photo is dark. The hard part is not pulling the thread, it is knowing where to take it: hundreds to thousands of choices, one after another. The tool calculates them from your photo and gives you the list to follow nail by nail, so you can sit down with a spool and a pair of pliers instead of a spreadsheet.

How the sequence is found

The photo is cropped to a square, converted to grayscale and limited to the circle inside it. At each step the tool looks at every chord that leaves the nail the thread is on and picks the one that crosses the most dark area that is still uncovered. It then removes a little darkness along that chord, the way a fine, slightly see-through thread would, and starts again. A chord that has been used is never used twice. This is a greedy method: simple and quick, with no promise of being the best sequence possible.

Choosing the photo and the settings

A high-contrast photo with a clear subject and a plain background works best, and faces seen head-on do well. With 200 nails and 1,500 segments, picture a circle about 20 inches across and several hours of winding; more nails and more segments sharpen the detail but lengthen the job. Opacity sets how much black one segment covers: fine black thread calls for roughly 8 to 20 percent. The “light thread on a dark background” box reverses the calculation for white thread on a black board. Test at a small scale before you hammer a few hundred nails into a big frame.

What the tool does not tell you

The preview is a drawing of the expected result, not a photograph: the real thickness and color of the thread and the tension you pull with all change the look. The length of thread is calculated for an ideal circle and leaves out knots and waste, so buy about ten percent extra. Outside the United States, 1 inch is exactly 2.54 cm if you would rather think in metric when you size the board.

Formula used and sources

Nail k of n sits at the angle 2π k ÷ n from the top, clockwise. The length of a chord between two nails d positions apart, on a circle of diameter D, is D × sin(π d ÷ n).

Grayscale value = 0.299 R + 0.587 G + 0.114 B. At each step: the chord from the current nail with the largest sum of remaining darkness; the remaining darkness along it is then lowered by the opacity.

Other tools on this site