Stringar

String Art Generator,Turn Any Photo into Nail & Thread Art.

Visit Website
December 4, 2025 String Art Generator: Turning Photos into Thread Art

I recently launched Stringar.com, a free tool that converts any photo into string art patterns. Here's the story behind why I built it and how it works.

The Problem

String art is beautiful—those geometric pieces where thread wraps around nails to create images. But there's always been a massive barrier to entry: the math. Traditionally, you'd need to either buy pre-made kits with fixed designs or figure out the complex algorithms yourself to plan which nails to connect in what sequence.

I wanted to democratize this craft. What if anyone could turn their own photos—portraits, pets, landscapes—into custom string art patterns?

The Technical Challenge

The core algorithm is what's called a "greedy algorithm." Here's how it works:

  1. Convert the image to grayscale (0-255 brightness values)

  2. Place pins in a circle with precise mathematical spacing

  3. Find optimal connections by iteratively selecting the line that darkens the brightest areas first

  4. Generate a numbered sequence so you can physically recreate it

The tricky part? Making it fast enough to run in-browser and accurate enough to produce recognizable results. I optimized the algorithm to complete most patterns in 5-30 seconds, depending on complexity.

Privacy-First Design

A crucial decision: all processing happens locally in your browser. Your photos never leave your device. No server uploads, no data collection. Upload an image, and the algorithm runs entirely on your machine using JavaScript and canvas rendering.

What Makes It Work

The algorithm analyzes brightness and contrast to determine string placement. High-contrast images work best—think portraits with dramatic lighting, bold silhouettes, or architectural photos with defined shadows. The tool converts these into precise nail-to-nail instructions that you can actually follow to build the physical piece.

Users can download their results in multiple formats: the visual preview, the numbered sequence for construction, and the raw data if they want to modify it.

Comment

About

Stringar.com is a free online tool that converts photos into string art patterns - those geometric artworks made with thread wrapped around nails. The site exists to make this craft more accessible by using algorithms to