Binary DST & PES Inspector

Stitch Count Calculator & Free DST / PES File Reader

Drop a .dst or .pes file below to read exact stitch count, color changes, jumps, trims, and size in inches and millimeters—100% locally in your browser.

.DST/.PES LA:STAR_LOGO 00 03 83 (JUMP) 1A 24 03 (SEW) 00 00 C3 (STOP) 00 00 F3 (END) 2,550 sts · 59.1 × 62.3 mm

Read Exact Stitch Counts from DST and PES Files in Your Browser

When a customer or digitizer sends you a Tajima (.dst) or Brother (.pes) file, your operating system only shows the file size in kilobytes—not how many stitches, color changes, or trims are inside. Dropping the file into the reader above parses every binary stitch command right on your computer and immediately reports normal stitches, jumps, trims, color changes, thread blocks, width × height in both inches and millimeters, estimated machine run time, and per-piece pricing.

TAJIMA .DST BINARY ANATOMY [Bytes 0..511] 512B ASCII Header (LA, ST, CO) [Byte 512+] 3-Byte Balanced Ternary Records 1 unit = 0.1 mm · 3 jumps in a row = 1 Trim BROTHER .PES / PEC ANATOMY [Bytes 0..7] #PES0001..#PES0100 + RGB Chart [Byte 8 Offset] PEC Block: 7-bit / 12-bit coords 0xFE 0xB0 = Color Change · 0xFF 0x00 = End
Inside Your File: How the Local Web Worker Reads Every Stitch, Jump, Trim, and Color Change Without Trusting Header Estimates

Because the file reader runs inside a local Web Worker in your browser, your customer's artwork never uploads to any external server. Files up to 10 MB are decoded on your device in fractions of a second.

How Tajima DST Files Store Stitches, Jumps, and Trims

As documented in the EduTech Wiki DST specification and implemented in the open-source pyembroidery library, every Tajima .dst file consists of two parts:

  1. A fixed 512-byte ASCII header: The first 125 bytes store carriage-return-delimited tags such as LA: (design label), ST: (total record count), CO: (color change count), and +X/-X/+Y/-Y extents, padded with spaces (0x20) out to 512 bytes. Standard DST headers do not store thread colors unless rare extended TC: tags are present.
  2. A body of 3-byte balanced ternary stitch records: Starting at byte offset 512, every command occupies exactly 3 bytes. Each 3-byte record encodes a relative movement (dx, dy) using balanced ternary weights of ±1, ±3, ±9, ±27, and ±81 in units of 0.1 mm (so 10 units equal 1.0 mm and 254 units equal 1.0 inch), giving a maximum single movement of ±121 units (12.1 mm).

The highest bits of the third byte determine what kind of command the 3-byte record represents:

Notably, the DST format does not have a dedicated bit for a thread trim. Instead, digitizing software triggers a machine trim by inserting consecutive jump commands—typically 3 jumps in a row. Our reader follows the same trim-interpolation rule as pyembroidery: when 3 consecutive jump records occur after stitching, a trim is counted, and if a digitizer inserted fake zero-displacement jumps (such as +2,+2, -4,-4, +2,+2) solely to force a trim, those zero-sum jumps are clipped so your jump count stays accurate.

Why You Should Never Trust a File Header Count Alone

Many quick online estimators only read the ST: and CO: text strings in the first 125 bytes of a DST header. That causes two real problems:

To protect your quotes, this tool always computes normal stitches, jumps, trims, color changes, and width × height directly from the stitch records, and displays a warning banner whenever a file's header disagrees with the actual stitch data.

How Brother PES Files Store Stitches and Thread Colors

As documented in the EduTech Wiki PES and PEC specifications, a Brother .pes file contains two sections: a versioned #PES design section (such as #PES0001, #PES0060, or #PES0100) and a hardware PEC block whose 4-byte little-endian byte offset is stored right at byte 8 of the file.

Because Brother and Bernina machines rely on the PEC section for backward compatibility across all PES versions, reading the PEC stitch block lets this calculator support PES v1 through v10 seamlessly:

From Stitch Count to Machine Time and Job Price

Once your file is loaded—for instance, the star.pes sample fixture with 2,550 normal stitches, 1 color change (2 colors), 2 jumps, and dimensions of 59.1 × 62.3 mm (2.33" × 2.45")—the calculator immediately computes machine run time and per-piece pricing:

Frequently Asked Questions

Can I estimate stitch count if I only have an image and not a DST or PES file?

An image file (such as a PNG or JPEG) contains pixels rather than stitch coordinates, so true stitch count depends on how the digitizer sets fill density, underlay, and satin stitch width. If you know the approximate stitch count from your digitizer, click "Enter stitch count instead" to price the job manually.

Why do DST files show default colors in the preview while PES files show exact thread colors?

Standard Tajima DST files only record "color change" stop commands without storing RGB thread colors (unless rare TC header tags are used). Brother PES files store a Brother PEC color palette table and, in PES v5 and newer, RGB thread definitions.

What is the maximum file size the browser reader accepts?

The reader accepts .dst and .pes files up to 10 MB, which is large enough for multi-hundred-thousand-stitch jacket backs while keeping browser memory fast and responsive.

Interactive Calculator — Configured for This Guide

Pre-Loaded: star.pes Sample File Specs — 2,550 Normal Stitches · 2 Colors · 59.1 × 62.3 mm (1 Piece, $5.00 Minimum)

1. Add Your Embroidery Design (.DST or .PES)

Your design file never leaves your computer — read 100% locally in your browser.

Drop a .DST or .PES file here or choose a file

Supports Tajima (.dst) and Brother (.pes) files up to 10 MB · Instant stitch & color preview

Preset: File Inspector Mode (star.pes — 2,550 Stitches, 2 Colors)

2. Design Details & Preview

Every number below can be overridden

3. Job & Garment Details

4. Shop Rate Settings & Machine Speed Starting values: change to yours

Starting values: change to yours. Changes save automatically in this browser for your next visit.

Quantity Break Discounts (% off decoration)
Settings saved locally in browser

Per-Piece Price & Order Summary

Price per Piece $11.70 Decoration $11.70 · Garment $0.00 (10% break)
Order Total $280.80 24 pieces · $0.00 setup fee
Effective Hourly Rate $49.06/hr 14.31 min/pc · 343.38 min order

Quantity Break Price Table

Qty Tier Break Decoration Per Piece Tier Min Total Hourly Rate

Want saved rate profiles ("Caps", "Left Chest"), logo PDF quotes, and quote history? Join the waitlist for the Pro desktop & web unlock ($19.99 one-time, no subscription): Join the Paid Version Waitlist →

Embroidery Job Pricer