Threadsmith Digitizer

Turn shapes, SVG paths, text or a whole project into embroidery stitches with stats and preview.

mm
More options
mm

SVG path syntax in millimetres (y down, 0,0 = hoop centre). Closed paths (Z) become fills, open paths become lines.

paths, rect, circle, ellipse, line, polyline, polygon and transforms are imported; text, images and gradients are skipped with a warning.

mm

Optional. Default: the SVG’s own physical size (px at 96 dpi).

A–Z, a–z, 0–9 and . , ! ? - _ ' " : ; ( ) / & + # * =

mm
mm

0 = straight. Positive arches the baseline upwards (top of a badge), negative curves it downwards (bottom of a badge).

A .threadsmith.json project (see the app’s project schema).

°
mm
mm
mm

Optional, mm: "x1,y1 x2,y2; x1,y1 x2,y2". Each line must cross both edges of the column; the stitch is parallel to it there and turns gradually in between. Used by turning satin, rails and columns along open paths.

mm

Fills that fall apart into sections are joined by travel runs routed inside the area that is still to be sewn, instead of jumps and trims. Projects keep their own per-object setting.

Reorders objects for fewer colour changes, trims and jumps; overlapping objects keep their order. Used only when it is no worse than the original order.

#rrggbb or a built-in thread name such as ruby, emerald, gold, navy.

stitches/min

Adds result.stitchList ([x, y, type] in mm) for chaining into threadsmith-stitch-file.

SVG source: how artwork colours are matched to threads (within ΔE2000 8 or redmean 60, else a custom thread). Stored in the project.

Try an example: · · · · · · ·

More about this tool

Part of Threadsmith

How it works

Digitizes vector artwork into machine embroidery: running, bean, satin (pull compensation, auto split, short stitches, turning satin along the medial axis, satin between two rails, direction lines), tatami fill with stagger, graded density and travel under the fill, contour fill and motif runs, plus underlay. An optional sequence optimiser reorders objects for fewer colour changes, trims and jumps without changing the layering. Returns stitch counts, trims, colour changes, thread and bobbin estimates, sewing time, hoop fit, a density check and a thread-look SVG preview — the same engine as the Threadsmith app.

  • Shapes are flattened to polygons (Bézier curves within 0.04 mm); closed shapes are regions (even-odd, holes allowed), open paths are lines.
  • Tatami: scanlines at the fill angle every row-spacing; intervals are split into blocks that can be sewn back and forth, ordered nearest-first, and penetrations sit on a staggered grid (1/3 offset by default) so no visible columns form.
  • Satin: zig-zag between the edges every density step (rows perpendicular to the shape’s principal axis); columns along lines measure spacing on the outer edge and shorten every other inner stitch on tight curves; stitches longer than the max width are split with interleaved penetrations.
  • Contour fill and edge-walk underlay use an exact Euclidean distance transform of the rasterised shape and marching-squares iso-lines, so insets stay valid for concave shapes and holes.
  • Turning satin: the shape is thinned (Zhang–Suen) to a one-cell skeleton, corner spurs shorter than 1.6 × the inscribed radius are pruned, and the longest geodesic path is the centreline; the outline is split at its ends into two rails. Rails are paired piecewise-linearly in arc length between anchors — the column ends, every direction line where it crosses both rails, otherwise the feet of the centreline normals — so the stitch is parallel to each direction line and turns gradually between them. Spacing is measured on the rail that advances more (the outer edge of a turn).
  • Satin underlay along rails: centre walk through the midpoints, edge walk out on one rail and back on the other (inset), open zig-zag between the inset rails; the top stitching starts where the underlay ended.
  • Travel under fills: blocks of a fill are sewn in an order chosen by an inside-route cost (Dijkstra on a grid of the fill, 12× cost through stitched or never-stitched cells) with penalties for leaving the unsewn rest disconnected; travel runs follow the cheapest route, are straightened by line-of-sight checks against the exact outline and reported with the share that lies under later stitches. Trims and jumps saved are measured by compiling the same design with travel switched off.
  • Sequencing: objects grouped by colour (first appearance) and visited nearest-first; gaps up to 1.2 mm are sewn, gaps below the trim distance are jumped, longer gaps get tie-off, trim, jump and tie-in. The optimiser keeps every pair of objects whose stitches share a 1 mm cell in their original order, stays in one thread while possible and only replaces the order when colour changes, trims and jumps are all no higher.
  • Thread estimate = sewn length + 0.8 mm take-up per penetration + 5 % waste; bobbin ≈ ⅓ of the sewn length; time = stitches ÷ speed + 4 s per trim + 20 s per colour change.

Estimates assume average fabric and settings; always test-stitch on the real fabric and stabiliser. Thread names are generic colours, not brand shade numbers.

Sources

Part of Threadsmith

  • Threadsmith Embroidery digitizing studio

    Draw or import artwork, turn it into stitches, export DST, PES, JEF or EXP files.

    Open Threadsmith

Related tools

How to use the Threadsmith Digitizer

Turn a shape, SVG path, SVG file, text or Threadsmith project into machine embroidery stitches, with turning satin, travel under fills and an optimised sewing order.

What it is for

An embroidery machine doesn't sew a picture; it sews a list of needle positions. Digitizing turns artwork into that list: fill or satin, stitch angle and spacing, the underlay that stabilises the fabric, and the sewing order. Commercial digitizing software is expensive.

This tool runs the same engine as the Threadsmith app. Start from a basic shape, an SVG path in millimetres, a whole SVG file, a line of text or a Threadsmith project. Choose running, satin, tatami, contour or motif stitches, or leave it on auto. Satin can run straight across a shape, turn along its centreline, follow two rails, and obey direction lines you set. Fills can hide their travel runs under later stitches, and the sewing order can be optimised. You get stitch counts, hoop fit, thread, sewing time, a density check and a preview.

Estimates assume average fabric, so always test-stitch on your real fabric and stabiliser.

Worked example

The first example digitizes a 40 × 30 mm oval in ruby on auto:

Stitches: 1,084 · Colours: 1 · Trims: 1 · Size: 40.3 × 30.3 mm · Sewing time: about 1 min 37 s at 700 stitches/min.

Auto chose a 45° tatami with edge-walk and tatami underlay; pull compensation makes it 0.3 mm larger than drawn.

The E-shaped tatami example shows travel under fills. At 45° the letter falls apart into five sections. With travel on, the result needs 1 trim instead of 4: four travel runs (54.5 mm in total) are routed inside the letter through area that is still to be sewn, and 96.7 % of that length ends up under later stitches. That saves about 10 s per piece; switch Travel under fills off and the same design reports 4 trims.

The crescent example uses turning satin with three direction lines: 270 stitches, 42.4 × 21.3 mm. The stitches run across the band like spokes, lie flat along both straight ends and lean along the slanted line at the top.

How to read the result

  • Stitches, jumps, trims, colour changes: the work the machine does. Trims and colour changes cost time.
  • Size and hoop fit: the stitched extent and any overflow.
  • Top thread and bobbin: planning estimates including take-up and 5 % waste.
  • Travel under fills: travel runs, their length, the share covered by later stitches and the trims and jumps saved compared with travel switched off.
  • Sewing order: colour changes, trims and jumps before and after the optimiser. It only changes the order when nothing gets worse.
  • Density: maximum thread layers per 1 mm cell. Values above the limit risk stiff patches or puckering.

Tips and common mistakes

  • Paths are in millimetres, origin at the hoop centre, y pointing down. Closed paths become fills, open paths lines.
  • Direction lines are typed as x1,y1 x2,y2; …. Each must cross both edges of the column; lines that miss are ignored with a warning.
  • For a ribbon with two drawn edges, use one path with two open sub-paths and Satin mode: Between two rails.
  • Turning satin needs a shape without holes and works best on bands and leaves; split forked shapes.
  • Satin wider than the 8 mm maximum is split, but broad satin still looks loose. Use tatami for large areas.
  • Tick Include the stitch list to feed [x, y, type] points to the Stitch File Writer.

FAQ

What are direction lines?

Short lines across a satin column that set the stitch angle where they cross it. Between two lines the angle turns gradually.

Is travel under fills always fully hidden?

Not always. The coverage figure tells you how much of the travel lies under later stitches; the rest crosses stitches already sewn.

Will the optimiser put a shape under another one?

No. Objects whose stitches overlap keep their original order, so layering is unchanged.

Does it produce a DST or PES file?

Not directly. Pass the stitch list or project to the Threadsmith Stitch File Writer, or open the design in the app and export there.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://threadsmithdigitize.usefulweb.site/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://threadsmithdigitize.usefulweb.site/mcp · tool name threadsmith_digitize
Example request
curl -s -X POST https://threadsmithdigitize.usefulweb.site/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{"source":"shape","shape":"ellipse","widthMm":40,"heightMm":30,"color":"ruby"}'
Feedback · ideas & bug reports welcome