DST · PES · EXP · JEF · stitch-out

Embroidery File Viewer

Open a machine embroidery file to see every stitch, replay the sewing order, and read the counts and size before it reaches the machine.

Design

DST, PES, EXP or JEF up to 10.00 MB

Drop an embroidery file here or click to choose

Stitch data only; thread brands are not stored in these formats.

Stitch-out

Open a file to see the stitches.

Embroidery File Viewer

Operator: Abdulla Al Fahad. How tools are built and checked

Machine embroidery files are not pictures. They are lists of needle moves: small steps in a fixed order, with commands to jump, trim or change thread. Opening one tells you little until something draws the sewing order back.

This viewer reads Tajima DST, Melco EXP, Janome JEF and Brother PES, draws every stitch, replays the stitch-out at the speed you choose, and reports the counts and the size in millimetres so you can decide whether a file suits your hoop.

Key features

  • Reads DST (with its 512-byte header), EXP, JEF and the PEC stitch block that Brother PES files carry; the newer PES-only sections are not read
  • Stitch-out animation with play, pause, replay, a progress slider and speeds from 50 to 20,000 moves per second
  • Stitch, jump, trim and colour-change counts, colour blocks with their own stitch counts and thread length
  • PNG at 5, 10 or 20 pixels per millimetre and a millimetre-scaled SVG with one path per colour block
  • Convert DST to EXP or EXP to DST, keeping every stitch, jump and colour change

What each machine format stores

All four formats count in tenths of a millimetre. A DST record is three bytes, and each axis is a sum of balanced-ternary weights: bits stand for steps of 1, 3, 9, 27 and 81 units, positive or negative, so one record moves at most 121 units, which is 12.1 mm. The third byte always has its two low bits set; bit 7 marks a jump, bits 7 and 6 together a colour change, and the value 0xF3 ends the design.

An EXP stitch is two signed bytes (dx, dy), up to 127 units. A 0x80 prefix introduces a command, such as 0x80 0x01 for a colour change, 0x80 0x04 for a jump and 0x80 0x02 for a trim, followed by two more bytes. JEF works the same way with a header that names the offset of the stitch data and ends the design with 0x80 0x10.

A PES file wraps a PEC block whose offset sits at byte 8. Its stitch bytes use a short form (one byte per axis, 7-bit signed) and a long form (12 bits per axis, with flags for jump and trim) and end with 0xFF 0x00. PEC counts y downwards where DST, EXP and JEF count it upwards, which the viewer corrects so every format is drawn the right way up. The viewer also flags a design larger than 400 mm on its longest side, and one beyond 1,000 mm as probably damaged.

How it works

A file is read in full (up to 10 MB, 1 million stitch records) and turned into a list of segments, one per needle move, each tagged with its colour block and whether it was a jump.

Jumps are not drawn unless you ask for them, because the needle does not sew during a jump.

The animation draws new segments each frame on top of what is already there and redraws from the start only when you drag the slider backwards or resize the view. The canvas fills its box exactly, so the picture is never stretched.

The conversion splits any move longer than 121 units (DST) or 127 units (EXP) into several steps, with the early steps as jumps, so the file stays valid. DST has no trim record, so a trim becomes the jump that follows it.

When this helps

  • A friend sends a PES file and your machine takes only DST. The viewer shows that the design is 78 mm wide, comfortably inside your 100 mm hoop, before you ask for a conversion elsewhere.
  • A digitised logo stops mid-sew. Scrubbing the slider to the stitch count where it stopped, in the PES version of the file, shows a single 17 mm stitch bridging two letters; the long-form PES record allows it where DST would have split it, and the loose thread explains the loop.
  • A designer sells a DST labelled 4 inches wide. The viewer reports 98.4 mm, which is 3.87 in, so it fits a 4 in hoop only with almost no margin.

Opening a file

  1. Drop the embroidery file and wait for the drawing.
  2. Read the numbers: size, stitch count, colour changes, long stitches.
  3. Press Play to watch the sewing order, or drag the slider to a colour change.
  4. Save a PNG or SVG, or convert a DST to EXP or the reverse.

Example

A small DST lettering strip with two colour blocks: twelve stitches, a colour change, a 30 mm jump, then eight stitches

strip.dst, 587 bytes

Numbers shown

Size 37.0 × 4.0 mm (1.46 × 0.16 in)
Stitches 20, colour changes 1 (2 blocks), jumps 3
Thread run about 0.03 m, longest stitch 5.0 mm
The 30 mm jump needs three records of at most 12.1 mm, so the file holds 24 records plus the end mark; converted to EXP it is 56 bytes with the same counts

Tips for best results

  • Scrub to each colour change to check that the order of the blocks matches the order you plan to load threads.
  • Switch on Show jumps to see how far the needle travels between letters; long dashed lines mean extra trims.
  • Convert DST to EXP, then open the EXP in the viewer: the same counts and size confirm that the conversion kept everything.

Limits

Size is the extent of stitch and jump points, not of the fabric the design needs; add the hoop margin your machine requires.

Converting does not recolour or translate to PES or JEF. Only DST and EXP are written, because the other two need palette and header data the viewer does not have.

A PES file made with applique or embedded stitch types can carry extra objects around the PEC block, which are ignored; only needle moves are shown.

Common errors and how to fix them

"This does not look like a DST file: the header should start with LA:"
The file is not Tajima DST, or its header was stripped. Re-export it from the digitising software.
"The PES file's embroidery block lies outside the file"
The file is cut short or damaged. Download it again.

Best practices

  • Before converting a PES or JEF to DST, compare the size line with the original design sheet; the converted file is only as good as the stitch points the viewer read.
  • When a file reports more colour blocks than your design has colours, look for stray colour-change records at the start, which some digitising programs write before the first stitch.

What the files do not store

None of these formats stores the thread brand or an exact colour. A DST has colour-change commands and nothing else; PES carries palette numbers from a vendor chart. The viewer therefore shows colour blocks in an arbitrary set of twelve hues, and the numbers per block, but cannot tell you the thread to load.

Frequently asked questions

Why is a stitch over 12.1 mm a problem?

A DST record cannot move further than 12.1 mm in either direction, so a longer stitch must have been split by the software. Where it was not, or in a format that allows longer moves, a very long stitch lies loose on the fabric and tends to snag.

Why does the viewer warn that my design is hundreds of millimetres wide?

The size is the extent of every stitch and jump point. A stray record far from the artwork, or a file whose offsets were written in a different format, stretches that extent. A design over 400 mm is larger than most single-needle hoops, and over 1,000 mm it is almost certainly damaged, so check the file in your digitising software before sending it to a machine.