Threadsmith Design Stats
Stitch count, colours, trims, thread, sewing time and density of a DST, PES, JEF or EXP file.
How it works
Reads a Tajima DST, Brother PES, Janome JEF or Melco EXP file (or a stitch list) and reports stitches, jumps, trims, colour changes, size and hoop fit, thread length per colour with a bobbin estimate, sewing time at your machine speed and a thread-density check with the densest spots, plus a thread-look preview. A job estimate adds thread, cones and bobbins for many pieces, machine time on one or more heads and the cost.
- DST records are decoded from balanced ternary (bits for ±1, ±3, ±9, ±27, ±81 per axis); runs of three or more jumps count as one trim, as on most machines. EXP bytes are two’s-complement 0.1 mm steps with 0x80 control codes. PES files are read from their PEC block (7/12-bit moves, jump/trim flags, PEC palette colours); JEF from the stitch offset in its header (Janome palette colours).
- Sewn length = sum of stitch lengths per colour; top thread = sewn length + 0.8 mm take-up per penetration + 5 % waste; bobbin ≈ 33 % of sewn length.
- Sewing time = stitches ÷ speed + trims × trim time + colour changes × change time + 0.15 s per jump.
- Density: each stitch deposits length × 0.4 mm thread width into the 1 mm cells it crosses; values are thread layers (1 ≈ fully covered once).
- Job estimate: colour stops that use the same thread are added up; job thread = per-piece thread × pieces, cones = job thread ÷ thread per cone (rounded up to whole cones), bobbins = bobbin thread × pieces ÷ thread per bobbin. Machine cycles = pieces ÷ heads (rounded up), machine time = cycles × (sewing time + hooping time). Cost = cone share × cone price + bobbins × bobbin price + machine time × hourly rate.
Thread and time figures are planning estimates; real consumption depends on tension, fabric, stabiliser and machine.
Sources
- Embroidery format DST (header fields, ternary stitch encoding, control codes, trim convention) (EduTech Wiki, University of Geneva)
- Embroidery format EXP (2-byte two’s-complement stitches, 0x80 control codes) (EduTech Wiki, University of Geneva)
- pyembroidery – reference readers/writers for DST, EXP, PES/PEC and JEF (EmbroidePy)
- Embroidery format PES / PEC (PEC header, 7/12-bit stitch encoding, thread palette, thumbnails) (EduTech Wiki, University of Geneva)
- Ink/Stitch manual – stitch types, underlay, pull compensation (Ink/Stitch project)
- Felzenszwalb & Huttenlocher, Distance Transforms of Sampled Functions, Theory of Computing 8 (2012)
- Zhang & Suen, A fast parallel algorithm for thinning digital patterns, Communications of the ACM 27(3) (1984) — skeleton for turning satin
Part of Threadsmith
-
Threadsmith Embroidery digitizing studio
Draw or import artwork, turn it into stitches, export DST, PES, JEF or EXP files.
Related tools
- Threadsmith Digitizer – Turn shapes, SVG paths, text or a whole project into embroidery stitches with stats and preview.
- Threadsmith Stitch File Writer – Write DST, PES, JEF or EXP embroidery machine files from a stitch list or a Threadsmith project.
How to use Threadsmith Design Stats
Read a DST, PES, JEF or EXP embroidery file and get stitches, trims, hoop fit, thread per colour, bobbins, sewing time, a job cost and a density check.
What it is for
You've bought or been sent an embroidery file and want to know what you're in for before you hoop anything. How long will it run? Does it fit the hoop? Will a bobbin last? Is it so dense it'll turn a T-shirt into cardboard?
Upload a Tajima DST, Brother PES, Janome JEF or Melco EXP file, or paste a stitch list, and this tool decodes it and reports stitches, jumps, trims, colour changes, size and hoop fit, thread length per colour with a bobbin estimate, sewing time at your machine speed, and a density check that points out the densest spots. You also get a thread-look preview.
Thread, time and cost figures are planning estimates.
Worked example
The built-in example is the botanical-leaf design as a DST file, checked for a 100 × 100 mm hoop at 850 stitches per minute, with the three thread colours entered as #0b7a4b, #1f5c3f and #6d4a33.
DST "LEAF": Stitches: 2,230 · Colours: 3 · Trims: 10 · Size: 37.7 × 85 mm · Sewing time: about 3 min 59 s at 850 stitches/min · Top thread: 9.11 m.
It fits the 100 × 100 hoop with room to spare, since 85 mm is the tall side. Per colour, the green fill takes 1,879 stitches and 8.12 m of thread, the dark-green veins 301 stitches and 0.83 m, and the brown stem 50 stitches and 0.16 m. The bobbin estimate is 2.39 m. The densest cell reaches 2.1 thread layers, under the 2.6 limit, so no hotspots are flagged.
The sewing time is worth breaking down: 2,230 stitches at 850/min take about 2 min 37 s. Ten trims at 4 s add 40 s, and two colour changes at 20 s add another 40 s. Almost a third of the run is spent not stitching.
The third example turns this into a job: 250 pieces on a 4-head machine with 45 s hooping, 5000 m cones at 9.50 and 100 m bobbins at 0.35. It needs 2277.5 m of top thread, 6 bobbins and 4 h 58 min of machine time (50.7 pieces per hour). At 38 per hour for machine and operator the job costs 195.28 EUR, 0.78 per piece; the thread is only 4.33 of that.
How to read the result
- Header (DST): the label, record count, colour changes and extents stored in the file.
- Stitches, jumps, trims, colour changes: three or more jumps in a row count as one trim, as on most machines.
- Size and hoop: the stitched extent and whether it fits, with any overflow in millimetres.
- Colours: stitches and top thread per colour block. DST and EXP store no colours, so blocks are named "Thread 1", "Thread 2" unless you enter hex values.
- Top thread / bobbin: sewn length plus 0.8 mm take-up per stitch and 5 % waste; bobbin about a third of the sewn length.
- Density and hotspots: the maximum thread layers per 1 mm cell, and where the limit is exceeded.
- Job estimate: thread per thread for all pieces, cones and bobbins rounded up, machine time over all head cycles and the cost.
Tips and common mistakes
- Set Machine speed to what you actually run. Many home machines are set slower than their maximum, and the time scales directly.
- Enter your own trim and colour-change times. A machine without an automatic trimmer may need a minute per colour change while you cut and rethread.
- A density above about 3 layers in many cells often means a design scaled down without re-digitizing. Expect puckering and needle breaks.
- PES and JEF colours come from the machine's thread chart and are approximations. Enter your real colours to get a useful preview.
FAQ
Why does my DST show no colours?
DST stores colour changes but not colours. Enter the thread colours in sewing order, one per block, to get named blocks and a realistic preview.
How accurate is the thread estimate?
It's a planning figure. Tension, fabric and stabiliser change real consumption, so allow some extra, especially on the bobbin.
What density limit should I use?
The default 2.6 layers roughly covers underlay, top stitching and some overlap. Lower it for light, stretchy fabrics.
Can I check a design before converting it?
Yes. Paste a stitch list in the same format as the Stitch File Writer uses.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://threadsmithdesignstats.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://threadsmithdesignstats.usefulweb.site/mcp· tool namethreadsmith_design_stats
Example request
curl -s -X POST https://threadsmithdesignstats.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{…see OpenAPI examples…}'