SVG vs DXF for Laser Cutting, CNC and Design

Quick answer

Choose SVG or DXF according to the geometry you need and the receiving software. Neither extension guarantees a usable laser or CNC file. Check actual paths, units, size and unsupported content after import. Converting between formats does not automatically preserve every visual effect, assign machine operations or establish that a job is ready to run.

Published by: Laserlinez

Fast rule

Choose the format the next application expects. If the file already imports cleanly at the right size, keep it and skip the conversion entirely.

Choose a format for the receiving workflow

Check the imported geometry in either format.
SituationSelection rule
Receiver specifies a format and versionfollow that specification.
Browser graphics or illustration workSVG preserves the visual styling.
CAD drawing exchange or CAM handoffDXF is commonly supported; confirm the version and entities accepted.
Both formats import correctlykeep the existing format and avoid an unnecessary conversion.

Use SVG for browsers, illustration software and laser software with a reliable SVG importer. Use DXF when the next application or shop expects CAD data. Neither format is inherently more accurate: the exporter, importer, scale and geometric tolerance determine the result.

This guide covers 2D vector geometry. Raster images need vectorization when you require paths; raster engraving is a separate workflow. Choose Contour Vectorization for closed cutting profiles, Centerline Vectorization for paths along the middle of drawn strokes, or Tonal Line Vectorization for open engraving and plotting linework from photos.

SVG and DXF exports supply geometry. The operator still assigns operations and configures the machine job.

The same 100 mm square with an off-center 20 mm hole, opened as SVG and as DXF, with matching dimensions.
One test part exported as SVG and as DXF, then opened in Inkscape 1.2.2. Both imports measure 100.00 mm with a 20.00 mm hole at the displayed rounding.

What DXF actually is

DXF (Drawing Exchange Format) is Autodesk's exchange format for CAD drawing data. It carries named layers, blocks, dimensions, hatches and entities such as LINE, ARC, CIRCLE, LWPOLYLINE and SPLINE.

A circle can remain a CIRCLE entity with an explicit center and radius. Some CAM tools use circles for hole selection, but a circle could also describe a pocket, an outside profile, or a marking. The operator chooses the operation. SVG also supports native circles.

Named layers help organize geometry for selection or configured mapping rules. A name such as CUT_OUTER suggests a role; it does not configure a cut. Confirm the requested DXF version and SPLINE support before exporting.

  • Parts and profiles from AutoCAD, Fusion 360, SolidWorks, or FreeCAD.
  • CAD drawing exchange that needs dimensions, annotations, or blocks.
  • Fabrication handoff where the shop or CAM application requests DXF.

What SVG actually is

SVG (Scalable Vector Graphics) is a W3C XML format for vector graphics and mixed vector/raster content. It carries paths, text, fills, strokes, clipping and other appearance features. Browser rendering and machine-software import do not necessarily interpret those features alike.

Width and height establish the viewport; viewBox maps drawing coordinates into it. A viewBox alone does not set a physical size. Transforms and aspect-ratio handling also affect the result. Explicit physical dimensions clarify the intended size, but you must still measure the imported geometry.

LightBurn matches imported colors to its layer palette. Use its exact RGB values and verify the assignments: other colors may be remapped. Black maps to layer 00 and has no fixed cut or engrave meaning. Check each layer's mode, output state and machine settings, including any settings already stored in the destination project.

  • Vector files from Illustrator, Inkscape, Affinity Designer, or Figma.
  • Browser assets and illustrations that need visual styling.
  • Laser workflows where the receiving software imports SVG reliably.
An outer square, a circular hole and a letter A in three palette colors are mapped first to layers 00, 01 and 02, then to separately chosen Cut and Engrave operations.
Colors sort imported geometry into layers; the operator then assigns an operation to each layer. Schematic based on LightBurn’s documented palette; the Cut and Engrave roles are example choices.

Common SVG and DXF import failures

Check these six file-preparation and import failures before setting up the machine job.

  • Wrong size: SVG exports may omit physical dimensions; LightBurn also offers 96 and 72 DPI import options for differing export conventions. These control import scale, not engraving resolution. DXF exporters, including Illustrator, have separate scale and unit controls. The $INSUNITS declaration may be missing, incorrect, or ignored. Standard R12 has no $INSUNITS header variable: state what one drawing unit represents and select that unit on import. Measure a known feature even when the file declares millimeters.
  • Appearance differs from geometry: a filled preview does not prove a closed contour. A thick stroke can be rendered around a single center path; expanding it creates boundary geometry. Clipping may hide paths that conversion exposes. Inspect compound-path holes and self-intersections. Expand a stroke only when you need its boundaries.
  • Unsupported text: a missing font or unsupported text entity can change or remove lettering. Convert lettering intended for fabrication to paths and retain editable text in the master. Check the resulting outlines and holes.
  • Curves outside tolerance: coarse approximation can alter a profile; excessive segmentation can increase processing load or affect motion on some systems. Check geometric deviation rather than node count alone. DXF polylines can contain circular arcs through bulge values. Ask about SPLINE support and test the chosen export representation.
  • Duplicate or overlapping paths: these can cause repeated machining unless software removes them. Extra laser exposure can increase charring, melting, or dimensional error. Remove unintended duplicates and inspect the generated toolpath.
  • Unclosed boundaries: open paths are valid for scoring, marking and line-following cuts. Region-based operations, such as LightBurn Fill or a closed pocket, need closed boundaries. Some tools also offset open paths, with the side and end treatment chosen explicitly.
A thick circular stroke as it looks, the single center path underneath it, and the stroke expanded into separate inner and outer boundaries.
A stroke has one underlying path, and the machine follows that path, not the visible thickness. Expanding the stroke creates inner and outer boundaries. Samples from Inkscape 1.2.2.
A square that shows a hole through a mask, its underlying paths without that hole, the DXF export without the hole, and resolved geometry that keeps it.
A hole created by a mask is only appearance: in this controlled Inkscape export, the DXF contains no hole. Converting the design into real outer and hole paths keeps the feature.
Before you run the job

Verify dimensions, geometry and layer assignments after import. Then review operations and the generated toolpath or laser preview; a clean import alone does not establish a runnable job.

When you need SVG to DXF conversion

The Laserlinez converter provides a preflight check and a JSON conversion report. Review dimensions, layer assignments, warnings and cleanup against the intended design: small features and gaps may be intentional. Prefer an existing preset DXF when it already meets the receiver's requirements.

What conversion does and does not carry

SVG appearance does not transfer reliably through geometry-focused DXF conversion. CAD equivalents exist for some features, but support depends on the converter and importer. Resolve clipping into the intended vector geometry; simply removing a mask can expose unwanted paths. Rasterizing an effect does not create cutting geometry. CSS may also carry colors used for layer assignment.

DXF-to-SVG conversion can preserve appearance while losing editable CAD structure. Check blocks, hatches, dimensions, fonts and linetypes. Any 3D content needs a defined 2D view or projection.

For fabrication, export the geometry needed for cutting, scoring, or engraving. Remove construction objects and keep reference dimensions and notes separate from machining geometry.

An R50 mm quarter arc as a bulged DXF polyline, as 4 straight chords and as 32 chords, each with its measured maximum deviation.
A bulged LWPOLYLINE keeps the true arc; 4 and 32 straight chords deviate by about 0.961 mm and 0.015 mm. Check the exported entity types and the tolerance the job requires.
Two identical paths overlap invisibly, are shown offset for clarity, and are reduced to one retained path.
Exactly overlapping duplicates are invisible but can be cut or engraved twice. The offset view is for explanation only; Inkscape counts two selected objects before cleanup and one after.

A reliable file handoff

  1. Keep the editable master

    Retain the native CAD or design document, including editable text. Export a delivery copy for each revision. Test a representative export in the receiving application before committing to production.

  2. Prepare the intended geometry

    Convert fabrication lettering to paths, resolve clipping and remove construction objects. Check boundaries, holes and intentional openings. For print-driver lasers, follow the specific driver's stroke-width convention; there is no universal SVG hairline setting.

  3. Inspect the import

    Measure a known feature and check overall extents, an asymmetric feature for orientation and the intended 2D plane. Investigate distant objects and unexpected Z values. Preserve an agreed registration origin. Review closure, layers and curve deviation.

  4. Verify operations and record the handoff

    Assign operations and inspect the toolpath or laser preview. Save the verified export with its revision, units and tested software version. Send the shop dimensions and intended operation roles; agree who applies compensation. Machine and material setup remain the operator's responsibility.

Preflight checklist

  • Format, DXF version, units and supported entity types are confirmed.
  • A known feature and overall dimensions measure correctly after import.
  • Orientation, drawing extents, registration origin and the 2D plane are correct.
  • Fabrication lettering is converted to paths; holes and boundaries are intact.
  • Underlying paths match the intended geometry, including clipping and stroke boundaries.
  • Required contours are closed; intentional openings remain open.
  • Unintended duplicates, stray points and construction objects are removed; small features are reviewed.
  • Curves meet the required tolerance without missing sections or unacceptable faceting.
  • Operation assignments, output state and the generated toolpath or laser preview are reviewed.

FAQ

Neither format is inherently more accurate. Export precision, geometric approximation, scale and importer support determine whether the geometry meets your tolerance. Finished-part accuracy also depends on machine setup and the cutting or engraving process.

A 0.75 or roughly 1.333 scale factor can indicate a 72/96 pixel-to-length mismatch. Check the export dimensions and LightBurn SVG import DPI option. Correct the export or import convention and measure again; the ratio is a diagnostic clue, not an instruction to rescale every file.

A factor of 25.4 suggests an inch/millimeter mismatch in export scaling, unit declarations, or import settings. Confirm what one drawing unit represents and select matching units. Correct the cause and measure again before using the file.

Some importers show path outlines regardless of the SVG fill. Check the assigned operation and its preview before changing geometry. If a region will not fill, inspect closure, holes and clipping: SVG can display a fill across an open subpath without actually closing its geometry.

The file may contain the boundary of a thick stroke or a traced shape. If you intended one line, inspect the paths and use Centerline Vectorization to trace a single path along the middle of each stroke. Expanding strokes creates boundaries; it does not create a single line along their middle. Also check for unintended duplicate paths.

Only where the operation requires a closed boundary. Open paths work for scoring, marking and line-following cuts. LightBurn Fill needs closed shapes; CAM requirements depend on the selected operation. Do not close intentional gaps automatically.

No. Geometry and layer names do not select approved operations or settings. The operator configures power, speed, passes, frequency, depth, compensation, lead-ins, tabs and workholding as applicable, then reviews the job. A successful import is a geometry checkpoint.

Follow the shop's format and version specification. Confirm compatibility before sending SVG or DXF and include revision, dimensions, units and intended cut, score, or engrave roles. Agree who applies compensation; keep reference annotations separate from machining geometry.

Convert your SVG to DXF

Upload a path-based SVG and download a validated DXF in millimeters.

Open SVG to DXF workspace

Comments

Please login or create an account to write a comment.

Loading comments...