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?
Result
The details
The complete nail sequence, as files
- Every thread segment in order, first to last
- The position of each nail in inches, so you can print a layout template
- The length of thread to buy
$4.99 one payment, no subscription
Your order
The complete nail sequence, as files
- Contents
- Full pattern and nail positions, CSV
- Total
- $4.99
Payment is not open yet: your detailed result is free
You have paid nothing: no bank details were asked for or sent.
This site is a trial. The price of $4.99 was a price under consideration, to find out whether this detail is useful to people who try it. We should have told you before your click, and we apologize. Thank you: your click helps us decide what is worth keeping.
In the print window that opens, choose “Save as PDF” as the printer.
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.
- Article “String art” (English Wikipedia): the computed form of the technique, producing photorealistic pieces, is credited to Petros Vrellis in 2016 — verified for the attribution; the page does not describe the method (checked on 2026-12-02)
- Greedy chord-by-chord method, described on this page — declared: a method commonly shared by makers, written out here; its result is checked against an independent rewrite (tests of this batch)
- Elementary geometry and well-known algorithms described on this page — demonstrated: checked against cases calculated separately (the tests of this batch, written without reading the code of the site)