How to Plan String Art Before You Drill Anything
String art looks like a craft problem and is actually an arithmetic one. Whether your thread reaches every nail, what curve appears, and which steps are worth trying at all are all settled before you pick up a hammer.
Choose the nail count and the step, look at the loop count it reports, and print at board size with the nails shown to use it as a drilling template.

Workflow Lifecycle & Pipeline
Visual execution flow showing how String Art Generator processes data directly in your local browser sandbox.
String Art Generator Interactive Process Pipeline
Fast, zero-latency execution directly in your browser memory.
Before You Start
Ensure your source assets and browser environment meet the verified execution requirements.
Step-by-Step Instructions
Follow these verified steps to execute the task with String Art Generator.
Enter nails
Fill in nails, step (nails to skip) and size (px), plus the 3 below. Each starts at a usable value, so you can change one and leave the rest.
Nails 60 · Step (nails to skip) 23 · Size (px) 6006 fields read as you typeWatch the result change
There is no button on String Art Generator: the result follows the input as you change it.
Updates as you typeString Art Generator runs on your deviceCopy the answer
The answer sits at the top of the result panel with a copy button beside it. It never left your browser.
Copy the figureOn your clipboardUnder the Hood: Canvas & Lossy Transform Encoding
When you process images with String Art Generator, calculations execute directly in your browser's dedicated Web Worker via the OffscreenCanvas API. Lossy algorithms convert pixel matrices into the frequency domain using Discrete Cosine Transform (DCT) and Chroma Subsampling (4:2:0), removing imperceptible high-frequency color variations to compress payload size by up to 90% without visible degradation.
Frequency Domain Quantization
DCT decomposes 8x8 pixel blocks into spatial frequencies, discarding subtle chroma information the human eye cannot resolve.
Browser-Native Memory Isolation
Images are read as raw ArrayBuffers in client RAM. No byte stream is ever transferred across the public internet.
Fast LCP & Core Web Vitals
Optimized payloads load 3-5x faster on mobile networks, dramatically reducing Largest Contentful Paint (LCP).
Settings & Options Explained
Fine-tune quality, format, and compression parameters for your exact workflow.
Settings & Configuration Guide
| Setting | Recommended Value | How It Works & Impact |
|---|---|---|
| Nails | 60 | Takes a number from 3 to 360. Impact: The control runs from 3 to 360; 360 is as far as it goes. |
| Step (nails to skip) | 23 | Takes a number from 1 to 359. Impact: The control runs from 1 to 359; 359 is as far as it goes. |
| Size (px) | 600 | Takes a number from 100 to 2000, in steps of 20. Impact: The control runs from 100 to 2000; 2000 is as far as it goes. |
| Thread width (px) | 0.6 | Takes a number from 0.1 to 5, in steps of 0.1. Impact: The control runs from 0.1 to 5; 5 is as far as it goes. |
| Thread colour | #1e293b | Takes a colour. Impact: Read as written, so stray spaces and characters count. |
| Show the nails | on | Takes on or off. Impact: Left on, which is what the tool does when you change nothing. |
Best Practices & Key Considerations
Avoid common quality pitfalls and maximize output performance.
Expert Recommendations
- If it reports more than one loop, the step and the nail count share a factor. Change the step by one to make them coprime and a single thread will reach every nail.
- Only try steps up to half the nail count. A step of n and a step of nails-minus-n land on the same nails in opposite directions, so the rest are repeats.
- For the classic heart, use a step near half the nail count — 60 nails stepped by 29 or 31 gives the cardioid that school string art is based on.
- Print at the real board size with the nails shown and it doubles as a drilling template. Turn them off for clean line art.
Common Mistakes to Avoid
- Expecting Nails to go past 360 — 3 to 360 is the range the control offers.
- Expecting Step (nails to skip) to go past 359 — 1 to 359 is the range the control offers.
- Not noticing that Show the nails starts on.
- Assuming the input is sent somewhere — String Art Generator runs in this tab, and nothing you enter leaves it.
Troubleshooting & Fixes
Quick solutions for common browser constraints, format issues, and edge cases.
Troubleshooting & Common Issues
Nails will not go above 360
Possible Cause: The control runs from 3 to 360.
Step (nails to skip) will not go above 359
Possible Cause: The control runs from 1 to 359.
Frequently Asked Questions
Everything you need to know about formats, privacy, and browser support.
Related Step-by-Step Guides
Explore companion workflows, optimization techniques, and verified tutorials.