PNG to DXF Converter
Trace a PNG into vector outlines at the width you set in mm and download a DXF in R12 or R2000.
Free · runs in your browser · nothing is uploaded
Recent
Your last 10 settings, saved only in this browser. Nothing is uploaded.

How to convert a PNG to DXF
- Choose your PNG, drop one on the tool or paste one from the clipboard. Try a sample loads a test picture if you only want to see the result first.
- Set Width (5 to 600 mm, default 100). The height follows the aspect ratio of the picture. Width is the width of the whole picture, empty margin included; the shapes keep their place inside it, so a logo with a white border comes out narrower than this figure (crop the picture tight if the shapes must be exactly this wide).
- Leave Black and white threshold on automatic (0), which uses Otsu’s method. If the trace misses detail or fills in too much, move it between 1 and 255.
- Raise Remove specks up to (0 to 40, default 8) to clear stray dots.
- Adjust Smoothing (0 to 100, default 50). Higher values give smoother outlines.
- Tick Invert if the shapes you need are the light areas rather than the dark ones.
- Set Smallest feature (0 to 5 mm, default 0.5) to drop details too small to cut.
- Choose a DXF version: R12 (AC1009, widest support) or R2000 (AC1015).
- Compare the Original, Result and Overlay views, then click Download DXF. Download SVG and Download PDF are there too.
The preview updates after each change, so alter one setting at a time. The line under the preview shows the size in millimetres, the paths, the nodes and the file size, which helps you spot a trace that is far too heavy for a simple shape.
Which DXF version should I choose?
Choose R12 (AC1009) unless your software asks for the newer format. It is the default and the oldest widely read DXF version, so it opens in the widest range of CAD and cutting programs. R2000 (AC1015) stores each shape as a lightweight polyline and adds handles and tables.
| Version | How shapes are stored | Pick it when |
|---|---|---|
| R12 (AC1009) | POLYLINE, VERTEX and SEQEND entities | You are unsure, or the software is old or strict |
| R2000 (AC1015) | LWPOLYLINE entities with handles and tables | Your CAD program asks for the newer format |
What units does the DXF use?
Millimetres. The header sets $INSUNITS to mm, so the width you type becomes the real width of the drawing in CAD. The Y axis is flipped so the drawing is upright, and layers are named after the fill colour, which gives a black and white trace one layer named COLOR_000000.
Is PNG to DXF conversion accurate?
The size is exact: the drawing is as wide as the Width you typed. The outline is as accurate as the trace. Curves are flattened into short straight segments, and the outline is simplified with a tolerance of half a pixel of the traced copy, which is at most 1,600 pixels on its long side. The table shows what that means in millimetres for a picture that large.
| Width | Millimetres per pixel | Half-pixel tolerance |
|---|---|---|
| 100 mm | 0.0625 | about 0.03 mm |
| 300 mm | 0.1875 | about 0.09 mm |
| 600 mm | 0.375 | about 0.19 mm |
A smaller source picture has bigger pixels and a looser fit. Use the Overlay view to check the outline against the original before you cut.
What if the trace fills in or misses detail?
Most problems come from one control. Find the symptom in the table and change only that setting.
| What you see | Control to change |
|---|---|
| Dust or tiny dots | Raise Remove specks up to |
| Jagged outlines | Raise Smoothing |
| Tiny fragments next to real shapes | Raise Smallest feature |
| Shapes filled in or merged | Lower Black and white threshold |
| Thin lines missing | Raise Black and white threshold |
Does a transparent PNG work?
Yes, but transparent areas are treated as white. The tool flattens the picture onto a white background and then traces the dark parts, so black artwork on a transparent background works as expected. White artwork on transparency merges with that white backdrop and is lost, so put it on a dark background before you load it.
Answers to common questions
Can you convert a PNG file to DXF?
Yes. The PNG is traced into black and white shapes, and those shapes are written as closed polylines. Open the DXF in your CAD or cutting software.
Can I use the DXF for laser cutting?
If your laser software imports DXF, yes. LightBurn and xTool Creative Space list DXF import in their documentation, while Glowforge needs a premium plan for DXF. For red hairline cut paths, use the SVG for laser cutting page instead.
Which PNG works best?
Pictures where dark shapes sit on a plain light ground: logos, silhouettes, line art, lettering and stencils. Soft shading and gradients do not separate into clean cut paths.
Can I import the DXF into AutoCAD, Inkscape or SolidWorks?
Those programs read DXF, and the file is in millimetres. Trace here first, then import the DXF and set the unit to millimetres if the import dialog asks. We have not tested each program.
How large can the PNG be?
Your input is not uploaded anywhere, so there is no upload cap. Pictures over 3,000 pixels on the long side are scaled down when loaded, and the trace works at up to 1,600 pixels.
Does the DXF keep colours?
It keeps them as layers. A black and white trace gives one layer, named after its fill colour.
Related tools
- JPG to DXF Converter: use it when your source is a JPG, with brightness and contrast sliders for photos.
- Image to DXF Converter: use it when the source is a photo, scan or another picture type.
- SVG to EPS Converter: use it when you need EPS from vector artwork.
- DXF and EPS Converters: use it to see every DXF and EPS tool on this site.
- SVG for Laser Cutting: use it when a laser needs red hairline cut paths or black engrave fills.
- Stencil Maker: use it when the shapes need bridges so inner parts stay attached.
- Silhouette Maker: use it when you want one solid shape from a photo.
- Convert Image to Cut File: use it when the cut needs several colour layers.