Convert PNG to DXF

Paste the link, upload, or drag and drop your PNG file into this PNG to DXF Converter, and turn it into a clear DXF drawing that you can open and edit in CAD software.

Start by uploading a file here…

Free on Android

Convert on the go — get our app

100+ tools in your pocket. Faster uploads, batch convert & save files instantly.

5.0
GET IT ON Google Play

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.

FAQs

What happens to a transparent background?
Transparent areas are treated as background, so a logo on a transparent background usually traces very cleanly. DXF cannot store transparency itself, so nothing in the output will be see-through. Partial transparency, such as a soft shadow, is the one thing to remove first.
Why does my traced drawing have thousands of tiny lines?
The source image had soft edges. Photographs and screenshots are the usual culprits, because anti-aliasing surrounds every edge with intermediate greys. Convert the image to solid black and white first, or use your CAD software's simplify command afterwards.
What size will the DXF be when I open it?
Undefined, because a PNG measures in pixels and has no physical dimensions. Set the scale after importing by matching one known measurement, then everything else follows.
Can I convert PNG to DWG instead?
Not in one step, and you rarely need to. Convert PNG to DXF here, then open the result in AutoCAD or any compatible program and save it as DWG. The geometry is identical either way, so nothing is lost in that second step.
Will the DXF work on a laser cutter or CNC router?
Yes, once the paths are closed. Tracing can leave tiny gaps where lines nearly meet, and most cutting software needs closed outlines. Use the join or close-polyline tool in your CAD program before sending the job.
Can I convert a photograph?
You can, but the result is rarely usable for cutting. There are no hard edges in a photograph, so the tracer produces very large numbers of fragments. Reduce the photograph to a two-tone image first and it becomes workable.
Does it matter whether my PNG is 8-bit or 24-bit?
Not much. What matters is edge sharpness, not colour depth. An 8-bit PNG of clean line art traces better than a 24-bit PNG of a blurred photograph.
Is "PNG to DFX" the same thing?
Yes. DFX is a common misspelling of DXF, with the last two letters swapped. There is no separate DFX format in CAD, so if you were looking for that, this is the tool you want.
Is there a file size limit?
Files up to 100 MB are accepted, which covers any PNG you are likely to trace. For this kind of conversion the pixel dimensions matter more than the file size anyway: a very large image produces a very large number of paths, and simplifying it in CAD afterwards is often quicker than tracing every detail.
Do I need to install anything?
No. The converter runs in the browser on Windows, macOS, Linux, Android and iOS. Nothing to download, and no account.
What happens to my file after conversion?
It is uploaded over an encrypted connection, used only for the conversion, and deleted automatically afterwards. Drawings are not shared with anyone.
Can I convert several PNGs at once?
Yes. Add multiple files and convert them together, then download the results individually or as a single zip.