Black Friday: 40% off every credit pack and the first 2 months of every monthly plan, until December 6. See the deals →
Skip to content
StitchMyPic

Embroidery guides

How to convert a PNG to a DST embroidery file, and what to check before you stitch it

A DST file has no colours, no trim command and a 12.1 mm limit on every move. How to get from a PNG to a clean DST, how to read the file's header to check size and colour stops, and how to set the machine so the trims land where they should.

8 min readBy the StitchMyPic team

Convert your picture – free preview

Can you turn a PNG into a DST file?

Yes, but not by renaming it or saving it from an image editor. A PNG is a grid of pixels; a DST is a list of needle movements. Getting from one to the other means digitizing: reducing the picture to a few flat colours, deciding the stitched size, and turning each shape into stitches. Software can do that for you, or a digitizer can.

DST is the format of Tajima machines, and almost every commercial machine reads it: Ricoma, Happy, Barudan, SWF and ZSK among them. Many home machines open it too, including most Brother and Janome models. That reach comes at a price. DST is a very old, very bare format, and three of its limits explain most of the surprises people get the first time they stitch one:

  • No thread colours. The file only says "change thread here". Which colour is up to you and the machine.
  • No trim command. A trim is written as a short run of jumps, and the machine has to be set to read it that way.
  • No move longer than 0.48 in12.1 mm. Anything longer is split into several records.

The rest of this guide follows the order of the work: prepare the PNG, convert it, then check the DST before the first stitch.

What a DST file actually contains

A DST file has a 512-byte text header followed by the stitches, three bytes each. The header is readable in any text editor (our guide to opening embroidery files shows the Notepad trick), and it is the quickest way to check a file before it goes to the machine. Here is what DST keeps and what it leaves out, compared with Brother's PES:

What a DST file stores, compared with PES
InformationDST (Tajima)PES (Brother)
Thread coloursNone, only colour-change stopsYes, one colour per block
Design nameUp to 16 characters (LA: line)Yes
Stitch countIn the header (ST: line)Yes
Colour changesIn the header (CO: line)Yes
Design sizeExtents in tenths of a millimetre (+X, -X, +Y, -Y)Yes
TrimsNo command: a run of jumps the machine reads as a trimTrim command
Longest single move0.48 in12.1 mmMuch longer
Preview pictureNoYes, a small thumbnail

None of this makes DST a bad format. It is the reason it travels so well: there is so little in it that every machine can read it. But it does mean that the colours and the trims have to be set up outside the file, and that's where a first DST stitch-out usually goes wrong. If you're still choosing a format, our PES vs DST vs JEF vs EXP comparison explains which one suits which machine.

Step 1: Get the PNG ready

PNG is a good starting point, better than JPG, because it keeps sharp edges and can have a transparent background. Transparent areas are simply not stitched, so the fabric shows through. A few things make the conversion much cleaner:

  • Use the largest version you have. About 10 pixels per millimetre of stitched width is a comfortable target: 1,000 pixels for a design 4 in100 mm wide. Enlarging a small PNG only blurs its edges.
  • Keep it to a few flat colours. Three to six is plenty for a logo or badge. Gradients and drop shadows have no thread equivalent.
  • Remove or flatten the background. A white box around a logo becomes a large white fill if nobody removes it.
  • Decide the final size now. A DST is made for one size. Scaling a finished stitch file by more than 10 to 20% spreads or crowds the stitches.

Our guides to choosing a good picture and turning a picture into an embroidery file cover the image work in more detail.

Step 2: Convert the PNG to DST

There are three ways to do the conversion itself:

  • Digitizing software. You trace the shapes and set stitch types by hand, or let the software's auto-digitizing make a first pass and then fix it. Free options exist, such as Ink/Stitch for Inkscape; our comparison of free digitizing software lists what each one can and can't do.
  • A digitizing service. A person digitizes the design for a fee. It's the best choice for very small lettering or a logo with strict brand rules.
  • An automatic converter such as StitchMyPic, which runs in the browser.

With StitchMyPic, the steps for a PNG are:

  1. Upload the PNG on the PNG to DST converter (JPG, WEBP and SVG work too).
  2. Read the "Will it embroider well?" check. It flags a picture that is too small, has too many colours or has a busy background, with a one-click fix for each.
  3. Crop, and remove the background if the PNG isn't transparent.
  4. Choose a placement (left chest, cap front, patch and so on) or set the size and hoop yourself.
  5. Look at the stitch preview, the stitch count and the sewing time, and play the sew-out simulator to see the order the machine will follow.
  6. Download. One credit unlocks the design: you get a ZIP with the DST, PES, JEF and EXP files, a preview picture and a printable production sheet listing every thread colour in order, or just the DST on its own. For seven days you can re-export the same design in another size, colour or format at no extra cost. Prices are on the pricing page.

The production sheet matters more with DST than with any other format, because it holds the colour information the file itself doesn't.

Step 3: Check the DST before you stitch it

Open the .dst in a text editor and look at the first few lines. They answer the three questions that matter before you hoop anything:

  • Does it fit the hoop? +X and -X are the distances from the centre to the right and left edges, in tenths of a millimetre. Add them and divide by 10 to get the width in millimetres; do the same with +Y and -Y for the height. A file showing +X: 512 and -X: 498 is 4 in101 mm wide, too wide for a 4 in100 mm sewing field. Leave a margin of 0.2–0.39 in5–10 mm inside the hoop; our hoop size chart gives the real sewing field of each hoop.
  • How many colour stops are there? CO: counts the colour changes, so it is one less than the number of colours. A four-colour badge shows CO: 3. If that doesn't match the production sheet, the file isn't the one you think it is.
  • How many stitches? ST: is the total, jumps included. Compare it with the stitch count you saw before downloading, and with the limit of your machine.

Then check the two things the header can't tell you: which thread goes on which needle (from the production sheet), and how your machine handles trims.

Why a DST trims too much, or not at all

Since DST has no trim command, a trim is written as a few jumps in a row, and the machine decides how many consecutive jumps mean "cut the thread". StitchMyPic writes each trim as three jumps. Brother's commercial PR machines, for example, have a setting for "DST jump codes for trimming": how many jumps in a row count as a cut. If the machine's number doesn't match the file's, you get trims where you don't want them, or long connecting threads where you expected a cut.

There is a side effect worth knowing. A jump longer than 0.48 in12.1 mm has to be split into several records, so a move of more than 0.95 in24.2 mm becomes three or more jumps in a row. A machine set to trim on three jumps will usually cut the thread there too, which on a long move is generally what you want.

Home machines work differently. On Brother's current wireless home models, "jump stitch trim" is switched on from the start, and you choose the jump length that is *not* trimmed, from 0.2 in5 mm to 2 in50 mm in steps of 0.2 in5 mm. If a DST leaves lots of little tails on the front, raising that setting reduces the number of cuts; if it leaves long loops, lower it.

Why the colours look wrong on the machine screen

Because there are none in the file. When a machine opens a DST, it fills in the colour blocks with colours of its own choosing, or with a default palette, so a navy and gold crest can show up as red, green and blue. The stitching order is still right: only the colours on screen are invented.

On a single-needle home machine, just follow the production sheet and change the spool at each stop. On a multi-needle machine, enter the needle order for each colour block before you start; the production sheet gives you the sequence. If your machine reads its own format, it is often easier to use that one instead: PES on a Brother or Baby Lock and JEF on a Janome keep the thread colours inside the file. Our guides to transferring designs to a Brother and to a Janome list which formats each family opens.

DST problems and their fixes

Most first DST stitch-outs that go wrong do so in one of a handful of ways:

Common problems with a DST converted from a PNG
What you seeLikely causeWhat to do
Wrong colours on the screenDST holds no thread coloursFollow the production sheet; set the needle for each colour block
Long loose threads between letters or shapesThe machine doesn't read the jumps as trimsMatch the machine's DST jump-trim setting to the file (3 for StitchMyPic files), or trim by hand
Cuts in places you didn't expectThe machine's jump count is lower than the file'sRaise the jump count, or on a home machine raise the jump length not to trim
The machine says the design is too largeThe design is bigger than the hoop's sewing fieldCheck +X/-X and +Y/-Y in the header; re-export at a smaller size or choose a larger hoop
The file isn't listed on the machineWrong folder, stick format or file typeSee our guide to putting a file on a USB stick
The design name is cut offDST keeps only 16 characters of the nameRename the file itself; the name inside doesn't affect stitching
Gaps or puckering in the fillsFabric, stabilizer or density, not the formatSee our guides to puckering and stitch density

Whatever the file, sew a test on a scrap of the same fabric with the same stabilizer first. It costs a few minutes and a little thread, and it's the only check that tells you how the design really looks.

Questions about this topic

Is a DST file the same as a PNG?

No. A PNG stores pixels; a DST stores the stitch-by-stitch movements of an embroidery machine. A PNG has to be digitized before it can be stitched, and you can't open a DST as an image.

Why does my DST stitch in the wrong colours?

It doesn't really: DST files hold no thread colours, only the places where the thread changes. The machine shows invented colours, and you choose the real ones. Use the production sheet or colour list that came with the file.

Can a Brother machine use a DST file?

Most Brother embroidery machines read DST, but they don't get colours from it. On a Brother or Baby Lock, PES keeps the thread colours, so use PES when you have the choice.

What is the maximum stitch length in a DST?

One record can move the needle by at most 0.48 in12.1 mm in each direction. Longer stitches and jumps are split into several records by the software that writes the file.

How do I see the size of a DST file without software?

Open it in a text editor. Add the +X and -X values and divide by 10 for the width in millimetres, then do the same with +Y and -Y for the height.

Sources

Manufacturer pages and documentation we checked the facts in this guide against:

  1. pyembroidery (EmbroidePy): DST has no thread colours; 12.1 mm maximum stitch length
  2. Brother operation manual (888-P5X): Using the Thread Trimming Function (Jump Stitch Trim)
  3. Brother support (PR1050X): Specifying jumpstitch trimming or DST jump codes for trimming
All guides