Convert PNG to DXF

Trace a PNG or JPG image to clean outlines and download them as DXF or SVG for a laser cutter or CNC router, at the width you set in millimeters. Runs in your browser.

Good to know

A DXF holds lines, not pixels, so the image is traced: the edge between dark and light becomes closed outlines. Shades, colors and gradients are lost; what is kept is the outline of each dark shape and of the holes in it. A sharp, high-contrast image 500 pixels or more across traces best. Check the width before you cut, since the drawing is as wide as you set it, not as the image was.

How it works

  1. 1Drop a PNG or JPG in the box above. Dark shapes on a light background trace best.
  2. 2Move the threshold until the outlines follow the shape. Turn on Invert for light on dark.
  3. 3Set the width in millimeters. That is the size it will cut at.
  4. 4Download the DXF, or the SVG, and open it in LightBurn or your CAM program.

What tracing keeps

A PNG or JPG is pixels; a laser or a router follows lines. Tracing finds the edge of every dark shape and writes it as a closed outline, with a second outline for each hole, so a letter O is two loops.

Lost: colors, shades, and how soft an edge was. Kept: where the edge is, to a fraction of a pixel when the picture is antialiased.

The outlines are straight segments, short where the edge curves. Smoothing rounds off pixel steps and leaves fewer points, which makes a cleaner cut and a faster job.

On the machine

Laser: the outline is the cut line. The beam removes about 0.1 to 0.2 mm, so parts that must fit each other need that kerf added in your laser software.

CNC: a round bit cannot reach into an inside corner sharper than its own radius. Strong smoothing rounds corners toward what a bit can cut.

Engraving: fill the closed outlines in LightBurn (Fill mode) to burn the shape solid instead of cutting round it.

About DXF

DXF (Drawing Exchange Format). Autodesk's open exchange format for drawings, from 1982, and still what laser cutters, CNC routers, plasma tables and CAD programs agree on.

Units: millimeters here, marked in the file. This one is the R12 dialect: straight-segment polylines, no curves, one layer. Opens in LightBurn, Fusion, FreeCAD, AutoCAD, LibreCAD, VCarve and Inkscape.

Questions

Does it work as a JPG to DXF or image to DXF converter?
Yes. It reads PNG, JPG and WebP. JPG compression leaves speckles round edges, so if small loops show up in the preview, raise the smoothing or start from a cleaner image.
DXF or SVG: which should I download?
Both hold the same outlines at the same size. DXF is the safe pick for CNC software and CAD (Fusion, FreeCAD, AutoCAD, VCarve). LightBurn, Inkscape and xTool Creative Space take either, and Glowforge takes the SVG, which is hairline strokes with no fill: lines to cut.
Why is the outline doubled on my line drawing?
The tracer follows the edge of the ink, so a drawn line has an outline on each side. That is right for cutting a shape out. To engrave along a single line, draw it as a vector path and use SVG to DXF instead.
Is the PNG to DXF converter free?
Yes. You get 3 runs a month without an account. Sign in with your email, free, and there is no limit.
Is my image uploaded?
No. The file is read and converted in your browser. It never reaches our servers.
How do I set the real size?
Type the width in millimeters; the height follows the picture's proportions. The DXF says it is in millimeters, and the SVG carries its size in mm, so both open at that size.
Can I get parts that fit together from a picture?
Not from a trace alone. Upload the image to Voloom in Laser or CNC mode with a sentence about what to build, and it works out panels, joints and cut files.

Related tools

All tools