Image to DXF and SVG converter
Turn a PNG or JPG into clean cut lines for a laser, CNC router, plasma cutter or vinyl cutter. Drop a logo, silhouette or drawing below. The tracer finds the outlines, fits smooth curves, keeps sharp corners sharp and gives you a DXF or SVG at the size you type.
Trace an image
How to convert an image to DXF
Drop the picture in the box above, or paste it with Ctrl+V. The outlines appear in green over it within a second.
Check the shape is solid. If parts are missing, move Threshold right to take in lighter greys; if the background is creeping in, move it left. For a white logo on black, tick Light shapes on a dark background.
Clean it up. Raise Ignore specks to drop dust and JPEG noise. Raise Smoothness for fewer, rounder curves; lower it to follow small details. Sharp corners decides which bends stay pointed.
Type the width the part should be in millimetres, then download the DXF or SVG. Or press Open in FlatCad to add holes, a border, text or tabs before you cut.
What the settings do
| Setting | Use it when |
|---|---|
| Threshold | Grey areas come out wrong. Everything darker than this counts as the shape. Automatic picks it from the picture (Otsu's method). |
| Detail | Small text or thin lines get lost (raise it), or a big simple shape has too many curves (lower it). |
| Smoothness | Curves look lumpy (raise it) or round off details you need (lower it). It is how far a curve may stray from the pixels. |
| Ignore specks | You see tiny dots or holes from dust, paper texture or JPEG compression. |
| Sharp corners | Corners come out rounded (raise it) or curves get kinks (lower it). |
From a trace to a file a machine can cut
This page exists for the step after tracing: getting outlines that a laser, router or plasma table will cut the way you meant. For help with the picture itself, PNG to SVG covers transparent logos and JPG to SVG covers photos and scans; all three use the same tracer.
- Every outline is closed. The DXF is an R12 file with one closed polyline per outline, which is what CAM software needs before it will offer a pocket or a profile cut, and what laser software uses to tell inside from outside. Nothing has to be joined or repaired after import.
- Holes are separate outlines. The inside of an O or a ring is its own closed polyline. Cut holes before the outside (LightBurn and most CAM do this when asked to cut inner shapes first), or the part shifts once it is free.
- Loose pieces fall out. If the design is cut through, every enclosed light area becomes a separate piece: the centre of an O lands in the scrap tray. For signs and stencils where those parts must stay, add bridges with the stencil maker, or engrave instead of cutting.
- Node count. Polylines that follow curves to 0.05 mm have many short segments. Most controllers handle that fine; if a CAM program gets slow or the router stutters, raise Smoothness, lower Detail, or use Open in FlatCad and export from there, which writes true arcs.
- Kerf. The outlines sit exactly on the traced edge. For parts that must fit something, offset them by half the kerf in FlatCad (see kerf offset) or let the CAM tool apply tool compensation.
Before cutting expensive material, check one dimension you know in the imported file. If it is out by a factor such as 25.4 or 3.78, the program guessed the units: why DXF and SVG files import at the wrong size explains which mistake it was.
Already have vector artwork? Open the SVG, Illustrator file or PDF directly: that keeps the designer's exact curves. Need lettering instead? Use the text to DXF tool. Want to 3D print it? Image to STL.
Questions
What kind of picture makes a good cut file?
Bold, solid shapes with clear gaps between them: logos, silhouettes, signatures in marker, stencil art. Think about the cut, not the picture: every boundary between dark and light becomes a cut line, so shading, gradients and fine texture turn into hundreds of tiny loops a machine would cut one by one.
Will a CNC router cut every detail?
Only details wider than the bit. A 3.175 mm (1/8 in) end mill can't make an inside corner tighter than a 1.6 mm radius, and any gap or stroke narrower than 3.2 mm is skipped or widened. Type the real width before you check, then make the design bigger or use a smaller bit. A laser, with a kerf of a few tenths of a millimetre, keeps far finer detail.
Is the DXF made of curves or tiny lines?
The tracer fits smooth Bézier curves with straight lines where the picture is straight. The SVG keeps those curves exactly. The DXF here uses closed polylines that follow the curves within 0.05 mm, which every laser and CNC program reads. Open in FlatCad turns the curves into true arcs and lines instead, and you can export that as a DXF.
How do I get the right size?
Type the width the shape should have in millimetres; the height follows the picture. In FlatCad you can also click two points of known distance on the picture to set its scale exactly.
Where is the origin, and which layer is it on?
The drawing's bottom-left corner sits at 0,0 with Y pointing up, in millimetres, and every outline is on one red layer called Cut. In LightBurn or CAM, that means the part lands on the machine origin at the size you typed and needs no unit or layer changes.
Which programs open the files?
DXF: LightBurn, LaserGRBL, RDWorks, AutoCAD, Fusion, Inkscape, CAM software and cutting services. SVG: Cricut Design Space, Silhouette Studio, Glowforge, xTool Creative Space, LightBurn, Inkscape and Illustrator.