svg vs dxf

SVG vs DXF for Laser, CNC and Vinyl Cutting

By Sven Borden · · Updated

TL;DR. SVG and DXF both store vector paths. SVG is a web format that design apps, craft cutters, and desktop lasers read natively, using colour to assign cut, score, or engrave. DXF is a CAD format with explicit real-world units that industrial CNC and CAM software expect. Most tools import both, so pick the one your machine's software lists first.

Convert your file now →

If your design opens fine on screen but your cutting machine refuses it, the problem is usually the format, not the artwork. SVG and DXF are both vector formats, yet they come from different worlds — the web and CAD — and machines tend to want one or the other. Here's how they differ and which to reach for.

What is the difference between SVG and DXF?

Both formats describe shapes as paths — lines, arcs, and curves defined by coordinates rather than pixels — so both scale to any size without blurring. The difference is their origin and what they carry alongside the geometry.

SVG (Scalable Vector Graphics) is a web standard. It is XML you can open in a text editor, and it stores Bézier curves plus fills, gradients, strokes, opacity, and text styling — everything a browser needs to paint the image. Design apps (Illustrator, Inkscape, Figma) and craft-cutting software (Cricut Design Space, Silhouette Studio) read it natively.

DXF (Drawing Exchange Format) is Autodesk's CAD interchange format. It stores lines, arcs, and polylines on named layers, in explicit real-world units, with line colours that CAM software maps to machining operations. It has no fills, no gradients, and no rendered appearance — a DXF is a technical drawing, not a picture. Industrial CNC routers, waterjets, plasma cutters, and many laser controllers expect it.

SVG vs DXF: which format for which machine?

SVGDXF
Comes fromWeb / graphic designCAD / engineering
Stores curves asBézier curvesLines, arcs, polylines
Stores fills & colourYesNo — layers + line colour only
UnitsAmbiguous (often px, can drift on import)Explicit (mm / inches)
Craft and vinyl cutters (Cricut, Silhouette)NativeRarely
Desktop lasers (Glowforge, xTool)NativeSometimes
Industrial CNC / waterjet / CAMSometimesNative
Best forCutting on craft/desktop machines, web, printShop CNC and engineering workflows

The rule of thumb: if your machine's software is a design tool, it wants SVG; if it is a CAD or CAM tool, it wants DXF. When in doubt, check which format the software lists first under File → Import.

Which should I use for laser cutting?

Desktop lasers aimed at makers — Glowforge, xTool, most diode lasers running LightBurn — import SVG happily and use colour (stroke or fill) to assign cut, score, or engrave, so a file coloured by operation maps itself on import. A DXF drops that colour and leaves you re-assigning every path by hand. That makes SVG the easiest path for hobby and small-shop work; see our SVG for Glowforge guide for the colour-mapping details.

Larger or older industrial lasers driven by dedicated controllers often only accept DXF, because their toolchain grew out of CAD. If that's your setup, design in vector as usual, then export to DXF as the last step.

Why does DXF sometimes cut more precisely?

Two reasons. Units: a DXF stores real-world dimensions, so a 100 mm circle imports as a 100 mm circle, while an SVG sized in pixels can land at the wrong scale — check the dimensions after import. Curves: some CAM tools approximate SVG Bézier curves with many short line segments, which can leave faceted edges, whereas DXF arcs stay smooth in CAD-native software. On a desktop laser this rarely matters; on a precision CNC job it's why engineers still favour DXF.

How do I get a clean file in either format?

Whichever format your machine needs, the cut is only as good as the paths. A PNG, JPG, or screenshot has none — it's pixels — so vectorize it first:

  1. Vectorize the raster. Drop your PNG or JPG on swiss-vector-svg.com. It traces the image into layered, filled vector shapes in a few seconds and shows a free watermarked preview. Our PNG to SVG converter is the direct route, and a PNG with a transparent background traces cleanest for cutting.
  2. Download the SVG. Sign in and spend one credit for the unwatermarked file. This is your master: every traced region as a filled path, with no strokes, groups, or layers. Its width and height are in pixels, so set the real-world size after import.
  3. Prep it for cutting. Shapes are stacked, not cut out. From an opaque source, delete the full-size background shape, then subtract the inner shapes (the inside of an O, say) from the shapes beneath with Path → Difference in Inkscape or Pathfinder → Minus Front in Illustrator — see how to clean up a traced SVG.
  4. Use it, or convert to DXF. If your machine takes SVG, you're done. If it needs DXF, open the SVG in Inkscape and choose Save As → DXF, export DXF from Illustrator, or round-trip through a CAD tool like LibreCAD. The geometry carries over cleanly because both formats store the same paths.

There's no reliable one-click "PNG to DXF" — DXF is a downstream export once the paths exist. Two things keep it clean: high-contrast source art, and any text converted to paths first, since DXF handles fonts inconsistently.

Can one file cover both?

Practically, keep the SVG as your source of truth and generate DXF on demand. Exporting SVG → DXF loses only fills and styling a cutter ignores anyway — just confirm the units when you export. DXF → SVG works too, but you start with a bare technical drawing. Vectorize once, keep the SVG, and export whatever the machine in front of you asks for.

Frequently asked questions

Is SVG or DXF better for laser cutting?
It depends on the software. Hobby and desktop lasers like Glowforge and xTool, or diode lasers running LightBurn, import SVG directly and use colour to separate cut, score, and engrave. DXF drops that colour, so you'd re-assign operations by hand. Industrial and older laser controllers often expect DXF. Both are vector, so the cut quality is the same once the file is clean.
Can I convert an image to DXF directly?
Not in one step from a raster like a PNG or JPG. First vectorize the image to SVG, then open that SVG in Inkscape or Illustrator and export it as DXF, or round-trip it through a CAD tool like LibreCAD. Swiss Vector SVG produces the clean SVG; your vector editor handles the DXF export.
Why does my SVG import at the wrong size?
SVG units are ambiguous — a file sized in pixels can import at different physical sizes depending on the DPI the software assumes. Check the dimensions after import and scale to your intended size before cutting. DXF avoids this because it stores explicit real-world units.
Does DXF support colour and fills like SVG?
Not the way SVG does. DXF stores geometry on named layers with line colours, which CAM software maps to cutting operations, but it has no fills, gradients, or rendered appearance. If your workflow relies on colour to assign cut versus engrave, keep the file as SVG, or map operations to DXF layers manually in your CAM software.

Ready to convert?

Drop your file, preview the trace free, and download a clean SVG.

Open the converter →