PNG to DXF Converter

Trace a PNG into a DXF for cutting, CNC or CAD, and check the outline over your image before you download. It runs in your browser, with no signup.

Drop a PNG here

Paste works too, and so does . PNG, WebP, BMP, GIF up to 50 MiB.

Converted in this browser. Your file is not uploaded.

Options

Threshold
Which pixels count as dark. Auto finds the level that best separates the drawing from its background. A transparent image uses its transparency instead.
Detail
High keeps smaller dots and shapes. Low drops them for a simpler outline.
Traces the light part of the image instead of the dark part.
mm
The width of the whole image, margins included. From the file, it follows the pixels per inch the image states, otherwise 100 mm. The height follows.
Units
The drawing unit of the DXF. Set the same unit when you import it.
DXF type
Compatible writes curves as short straight lines, the plainest DXF. Curves keeps arcs, circles and splines.
Advanced
Smoothing
High turns more corners into smooth curves. Low keeps more sharp corners and straight lines.
Drops dots too small to cut. Turn it off to keep marks only a few pixels across.

Preflight

Runs when you add a file

  • Not checked yet: Image size

    The image's size in pixels and the resolution that gives it a real-world size.

  • Not checked yet: Open paths

    Outlines that do not close.

  • Not checked yet: Duplicate lines

    Lines drawn twice in the same place.

  • Not checked yet: Strokes and fills

    How many filled shapes the trace made. A trace makes filled areas only, never a line.

  • Not checked yet: Nodes

    How many points the outlines have.

Next step

PNG, WebP, BMP, GIF up to 50 MiB. Up to 200 files or 500 MiB at once. A job stops after 60 seconds.

How to convert PNG to DXF

  1. Add your image. Press Choose file or drop PNG, WebP, BMP or GIF images on the mat, or press Try a sample for a mountain badge with a grey sun and stars.

  2. Check the outline over the image. The outline is drawn over a faint copy of your image. Set the Threshold until the right parts are dark, then the Width and Units your machine works in. The Preflight report checks size, open paths and double lines.

  3. Download the DXF. Press Download DXF; the traced SVG is offered too. Several images come as one ZIP with a DXF for each.

What the options do

Threshold
Which pixels count as dark. Auto finds the level that best splits the drawing from its background. A transparent image uses its transparency.
Level
Pixels darker than this level become shapes. Raise it to take in lighter greys, lower it to leave them out.
Detail
High keeps smaller dots and shapes. Low drops them for a simpler outline.
Smoothing
High turns more corners into smooth curves. Low keeps sharp corners and straight lines.
Remove specks
Drops dots too small to cut. Turn it off to keep marks only a few pixels across.
Invert
Traces the light part of the image instead of the dark part, for a stencil or a cut-out.
Width
The width of the whole image, margins included. "From the file" uses the image's pixels per inch, or 100 mm if it states none.
Units
The drawing unit of the DXF. A Compatible file cannot record it, so choose the same unit again when you import.
DXF type
Compatible (R12) writes every curve as short straight lines. Curves (R2000) keeps splines and records the unit.

Questions

How do I turn a PNG into a DXF file?

A PNG is a grid of pixels and a DXF holds lines, so the image has to be traced. This tool splits it into dark and light at the Threshold and outlines every dark shape as a closed path, shown over your image before you download.

What size will my DXF be?

If the PNG states its resolution, the size follows from it, so 600 pixels at 300 pixels per inch is 50.8 mm. If it states none, the image is made 100 mm wide and the page says so. Type a Width to change it.

Why are the edges jagged, or the file full of nodes?

A small or blurred image gives the tracer few pixels to follow, so curves come out as steps. Raise Smoothing to turn steps into curves, and lower Detail to drop small marks and their nodes; the Preflight report counts them. A larger, sharper image traces best.

Can it trace a colour image?

It traces in black and white, because a cutter follows one set of lines. Pixels lighter than the threshold are background, so set the level until the shapes you want are dark, or use Invert for the light parts.

Will the DXF open in my cutting or CAD program?

In our tests every DXF written here passes an independent DXF audit at the expected size, with every outline closed. We have not yet checked the files in a cutting or CAD program. Import with the same unit you chose in Units.

Does my image leave my computer?

No. Your browser traces the image and writes the DXF itself, so the picture is never sent anywhere. After the first conversion it keeps working without a connection.

Related tools

Limits

PNG, WebP, BMP, and GIF file50 MiB. A larger file is not converted and you are told why. A picture over 40 megapixels is shrunk first, and only if you agree.
Several files200 files or 500 MiB at once. Files beyond that are listed as skipped.
TimeA single job is stopped after 60 seconds.
BrowserNeeds Web Workers, WebAssembly, OffscreenCanvas, and createImageBitmap. Current Chrome, Edge, Firefox and Safari have them.