PNG to DXF Converter
Turn a PNG image into a DXF vector drawing you can open in AutoCAD, LibreCAD, QCAD or Fusion 360, or send to a CNC router, plasma table or laser cutter. Upload the file, convert, and download the DXF. No account, no watermark, and the upload is deleted after processing.
PNG is a good starting point for this. Because it stores pixels without lossy compression, edges stay crisp, and crisp edges are exactly what a tracer needs. There are still a few things worth knowing before you send the result to a machine.
What happens when you convert PNG to DXF
A PNG holds a grid of pixels. A DXF holds geometry: lines, arcs and polylines described by coordinates. One is a picture, the other is a set of instructions. There is no direct equivalent between them.
The converter reads your image, finds the boundaries where light meets dark, and draws paths along those boundaries. This is called tracing, or raster-to-vector conversion. The output is a drawing that follows the shapes in your image, which a CAD program can then measure, scale and cut.
Two consequences follow from that, and both catch people out. The drawing has no real-world size until you give it one, and the tracer will follow every edge it finds, including ones you were not thinking about.
How to convert PNG to DXF
Add your PNG
Drag the file into the upload box, click to browse, or paste an image address. Both 8-bit and 24-bit PNGs work, with or without transparency.
Run the conversion
Press Convert. The image is traced and the resulting paths are written to a DXF. A simple logo finishes in a second or two; a detailed scan takes longer.
Download the drawing
Save the DXF. It is written in the standard Autodesk exchange format, which opens in essentially every CAD package and in the software that drives most cutting machines.
Set the scale before you cut
Open the file in your CAD program, set the size against a known dimension, and check the outlines. Two minutes here saves a ruined sheet of material later.
What happens to transparency
This is the part that surprises people most, and it is specific to PNG.
PNG supports an alpha channel, so a logo exported from Illustrator or a product cut-out can have a genuinely transparent background. DXF has no concept of transparency at all. A DXF stores outlines; there is nothing in the format that can express "this area is see-through".
When the image is traced, transparent pixels are treated as background. In practice that works in your favour: a logo on a transparent background usually traces very cleanly, because the boundary between the artwork and nothing at all is about as sharp as an edge can be.
Where it goes wrong is partial transparency. Soft or feathered edges, drop shadows and glows are semi-transparent, and the tracer has to decide where the shape stops. It often decides somewhere you did not intend, and you get a slightly bloated outline or a halo of stray paths. If your PNG has a soft shadow behind the artwork, delete the shadow layer before converting.
Which PNGs trace well
Well: logos, icons, line art, stencils, technical drawings, scanned plans, signatures, monograms, silhouettes, and anything exported from vector software. If the raster image already looks like a drawing, the trace will follow it faithfully, and the vector paths it produces are ready for laser cutting or CNC routing.
Poorly: photographs saved as PNG, screenshots containing anti-aliased text, images with gradients, and artwork with soft shadows. A photograph has no defined edges, only gradual changes in tone, so the tracer generates thousands of tiny fragments trying to follow them.
Screenshots deserve a note of their own, because they are so often what people have. Screen text is anti-aliased on purpose: every letter is surrounded by grey pixels that soften its edge. Traced at full detail, each letter becomes a fuzzy outline with a ragged border. Increasing the contrast until the text is pure black on pure white fixes it almost completely.
One shortcut is worth knowing before you start. Tracing exists because a PNG has no geometry to read; if the same artwork also exists as a vector file, skip tracing altogether. SVG to DXF and PDF to DXF convert paths that are already paths, so the result is exact rather than approximate. Only trace when a raster image is genuinely all you have.
Preparing a PNG for a clean trace
- Raise the contrast until the shapes you want are solid black and everything else is solid white. The tracer follows that boundary.
- Start from the largest version you have. A logo 200 pixels wide has visibly stepped edges, and the trace will faithfully reproduce every step.
- Remove drop shadows, glows and feathered edges. These are the main cause of doubled or bloated outlines.
- Clean specks off scanned drawings. Every speck becomes its own closed shape, and on a laser cutter every closed shape becomes a cut.
- If the PNG was saved from a JPEG at some point, the compression damage is baked in. Find the original if you can.
Using the DXF in CAD and on machines
Once imported, the drawing behaves like any other CAD geometry. A few things are worth checking before it goes near a machine.
Scale. A PNG records pixels, not millimetres. The DXF therefore arrives with no meaningful size. Draw a line of a length you know, then scale the imported geometry until one of its dimensions matches.
Closed paths. Cutting machines generally need outlines that close. A trace can leave hairline gaps where two paths almost meet. Most CAD software has a join or close-polyline command that will find and fix these.
Node count. Tracing a detailed image can produce a very large number of very short segments, which makes the file heavy and can make a cutter stutter. A simplify or reduce-nodes command usually removes most of them without any visible change.
PNG to DWG, and when you need it instead
Plenty of people looking to get artwork into AutoCAD search for PNG to DWG rather than PNG to DXF, so the difference is worth stating plainly.
DWG is Autodesk's own working format. DXF is the interchange format Autodesk publishes so that other programs can read the same drawings. In terms of the geometry inside them the two are equivalent for this kind of work.
Almost every CAD program, including AutoCAD, opens DXF directly, so for a traced image DXF is usually all you need. If your workflow specifically requires DWG, open the DXF in your CAD software and save it as DWG. Nothing is lost in that step, because the tracing has already happened. The same applies if you were searching for a way to get PNG to CAD in general: DXF is the format that gets you there.
Two neighbouring tools cover what this one does not. If your source is a photograph rather than a PNG, JPEG to DWG produces a DWG in a single step. If someone has sent you a DWG you cannot open, DWG to DXF goes the other way.
Common problems and what causes them
The drawing is a mass of tiny segments. The source had soft or noisy edges, most often a photograph or a screenshot. Raise the contrast, or simplify the paths after import.
Everything came out inverted. The tracer followed the background instead of the subject. Invert the image and convert again.
The outline is doubled. Usually a drop shadow or a glow behind the artwork, traced as a second shape. Remove the effect at the image stage.
The laser cutter refuses the file. Almost always open paths. Close them in CAD before exporting to the machine.
Text is no longer editable. Expected. Tracing produces outlines, never fonts. Add live text in your CAD program if you need to edit it later.
PNG and DXF side by side
PNG (Portable Network Graphics) was published in 1996 as a patent-free replacement for GIF. It compresses without losing data, supports transparency, and is the usual choice for logos, screenshots and web graphics.
DXF (Drawing Exchange Format) was created by Autodesk in 1982 so CAD programs could exchange drawings. It stores coordinates rather than pixels, which is why a DXF can be scaled to any size without losing sharpness and why a machine can cut directly from it.