PerfectVector
By Irene Kim

SVG vs DXF for Laser Cutting: Choose the Right File

Choose SVG or DXF for your laser workflow. Compare curves, units, color layers, and PerfectVector's direct R12 DXF export, then check the imported geometry.

10 min read
On this page

Use SVG when your laser software imports your vector artwork correctly. Use DXF when the receiving application or fabrication service requests it, including a particular DXF version. If both work, choose the one that preserves your intended dimensions, contours, and operation groups with fewer repairs.

Neither extension makes a file ready to cut. A successful import still needs a size check, geometry inspection, and cutting or engraving settings in the laser application.

Choose by the receiver, then inspect
  • Artwork that already imports correctly: keep that format and preserve the editable master.
  • A shop asks for DXF: ask which version, units, and layer convention it needs.
  • Starting from a PNG or JPG: create vector geometry first, then choose the export format.
  • Both formats are accepted: test one known dimension and the same contour in each, rather than assuming a universal winner.

Compare the properties that affect a laser job

SVG (Scalable Vector Graphics) describes two-dimensional graphics with shapes, paths, and styling. A path describes a contour or line; its curves can use Bézier commands and elliptical arcs. SVG can also contain raster images, so inspect the actual cut geometry rather than trusting the extension. The SVG path standard defines these commands.

DXF (Drawing Exchange Format) exchanges CAD drawing data. It uses geometric entities, such as lines, arcs, polylines, and splines, organized into drawing sections and layers. A polyline joins vertices; a spline represents a curve. Which entities survive depends on the DXF version, exporter, and importer. See Autodesk's DXF format reference.

DecisionSVGDXF
Receiving softwareUseful when its SVG importer handles your artworkUseful when the receiver requests a supported DXF version
CurvesPaths can store Bézier curves and arcsCan store arcs and splines, or segmented geometry, depending on the file
Physical sizeCheck explicit dimensions and how the importer interprets the viewBoxCheck declared units and the receiver's import-unit setting
OrganizationFill/stroke colors and groups may help organize objectsNamed layers and entity/layer colors may help organize objects
AppearanceCan preserve fills, strokes, and graphic effects that a laser importer may not supportA contour export may deliberately omit filled appearance and effects
Laser settingsAssign and verify cut, score, or engrave settings after importAssign and verify cut, score, or engrave settings after import

Colors organize artwork; they do not have a universal machine meaning. In LightBurn, color layers have modes and settings you configure in the Cuts/Layers window. A red object is not automatically a cut instruction.

SVG is convenient when the artwork imports well

SVG is a practical choice for artwork you edit in a vector design tool and import into laser software with documented SVG support. LightBurn imports both SVG and DXF. Glowforge accepts SVG and PDF for cutting and engraving, and DXF for Premium members.

That support does not guarantee that every SVG feature transfers. Convert required text to paths when fonts will not be available, inspect clipped or masked objects, and check the resulting contours. LightBurn's file-management documentation specifically advises having the fonts installed or converting text to paths before import.

For a Glowforge project, the SVG preparation guide for Glowforge covers that workflow. Keep the source SVG so you can repair geometry without repeatedly converting between formats.

DXF is useful when the receiver specifies it

Use DXF for a CAD or fabrication handoff when the receiver requests drawing entities rather than styled artwork. Ask for its supported DXF version, whether it accepts splines, the intended units, and which geometry belongs on each operation layer.

An R12 file and a later-version file are different compatibility targets. PerfectVector's direct exporter writes R12, but acceptance still depends on the receiver's importer. Likewise, a program that opens DXF may handle splines differently from another program. Get a sample import accepted before sending a production batch.

If your design already exists as dimensioned CAD geometry, export from that source when possible. Tracing a picture of the part reconstructs its outline; it does not recover the original dimensional constraints. The DXF vector and raster-to-geometry guide explains that distinction.

Check curves and size after conversion

Conversion can change representation without changing the file extension's promise. A curve may remain a curve or become short straight segments. Both SVG and DXF can carry useful curved geometry; neither guarantees a lossless round trip through every application.

Curves versus segmented contours
Conceptual comparison of a smooth contour with a few control points and a contour made from many short straight segments
Retained illustration of two representations. Its R12 label describes a flattening workflow: R12 can also store arcs, so the version alone does not make every curve faceted.

Inspect a curve at high zoom and compare a known feature at the intended physical size. If a conversion produces too many segments, check the export representation and the receiver's curve support before simplifying. Inspecting a DXF with too many segments gives a more detailed geometry audit.

SVG's viewBox maps internal coordinates to the displayed viewport; it does not by itself declare a width in millimeters. The SVG coordinate-system standard describes that mapping. A viewBox="0 0 100 50" could accompany a 100 mm wide document or a differently sized viewport.

DXF units also need verification. LightBurn exposes DXF unit detection and default-unit settings, plus an SVG import-size setting. If inches are interpreted as millimeters, the physical size differs by a factor of 25.4. Measure the imported width before arranging the job or adjusting kerf.

Export SVG or DXF directly from PerfectVector

PerfectVector fits the branch where you have raster artwork and need vector geometry. For an existing dimensioned CAD part or a usable native SVG, keep working from that vector source.

For your own image conversion:

  1. Upload the original PNG or JPG and compare the free preview with the source. Check small details and the contours you intend to cut.
  2. Unlock the result before editing and export. The current unlock policy charges one credit per unique result; re-downloads after unlocking are free.
  3. Inspect and edit the available geometry. Choose SVG if the receiving workflow handles it, or select DXF directly if it needs drawing contours.
  4. For DXF, choose millimeters or inches and enter the intended physical width. The exporter preserves the source viewBox aspect ratio for height. Blank margins in the source coordinate area affect this scale, so also measure a known feature after import.
  5. Import the file into your laser application, verify dimensions and contour count, and assign each intended operation before running the machine.

The direct DXF exporter writes R12 (AC1009), with each contour as one closed polyline, and organizes contours into source-color layers. A name such as COLOR_01_336699 retains the source hex color in the layer name. The displayed DXF color uses an indexed palette and may differ from that source color. These layers are organizational information; they do not carry your laser's speed, power, or operation settings.

The DXF export is a bounded contour conversion. Each solid fill becomes a closed boundary rather than a filled engraving area, and curves are exported as arcs and straight segments inside the closed polylines, staying within 0.05 mm of the source. Shapes drawn only as unfilled strokes are not exported: the export stops rather than silently closing an open line. It does not remove hidden overlapping contours or apply kerf compensation. Unsupported visible features, such as transparency, gradients, clipping, masks, and live text, can block export. Repair those features in the source or use a compatible export workflow rather than assuming the result contains everything you saw on screen.

What the file contains: the header declares AC1009 and records the drawing unit in both $INSUNITS and $MEASUREMENT, millimeters by default or inches if you choose them, and the file name ends in _mm.dxf or _in.dxf. If your software asks for import units, choose millimeters, or inches if you exported inches. Each source color gets its own layer name, and every contour, curved or straight, is written as a closed POLYLINE rather than as SPLINE, ARC, or ELLIPSE entities. Inside that polyline, circles and circular arcs are stored as exact arc segments, and Bézier curves and ellipses are fitted with arcs and straight lines. The file holds geometry only, with no toolpaths, kerf, speeds, or operations. These are file-level properties; they do not demonstrate a laser-application import or an actual cut.

Inspect the imported job before cutting

Check these properties in whichever format you chose:

  • Dimensions: measure one known width or hole spacing. Correct the unit interpretation before changing geometry.
  • Closed cutouts: inspect the endpoints of each intended closed contour. An open scoring line may be intentional; a gap in a cutout may not be.
  • Duplicates and overlaps: inspect whether multiple contours describe the same intended pass. A filled outline can have inner and outer boundaries; changing the format will not decide which you want.
  • Small features: compare gaps, bridges, and holes with the material and machine's capabilities.
  • Operation assignments: confirm which objects cut, score, or engrave, along with the corresponding settings and preview.

If those checks fail, return to the vector source and repair the specific issue. Use the broader image-to-SVG laser workflow when the starting image itself needs preparation. Keep the final machine setup in the laser application's project format: SVG and DXF artwork are not substitutes for that job configuration.

Starting from raster artwork? Try the laser artwork conversion workflow, or the image-to-DXF converter when your receiver has requested DXF. Compare the preview, unlock before editing and export, then verify geometry at the requested size in the receiver.

FAQ

Is SVG or DXF better for laser cutting? Choose the format your receiver supports reliably. SVG can be convenient for design artwork; DXF is useful when the receiver requests a CAD drawing format or version. In either case, verify dimensions, contours, and operation assignments after import.

Does DXF always turn curves into straight segments? No. DXF can contain arcs and splines as well as polylines. The exporter, DXF version, and importer determine the representation you receive. Inspect the imported curve instead of judging by the extension.

Can PerfectVector export DXF directly? Yes. After unlocking your own result, select DXF, choose millimeters or inches, and set the physical width. The direct exporter writes R12 (AC1009) with each contour as a closed polyline, curves as arcs and straight segments within 0.05 mm of the source curve, the unit recorded in the file header and the file name, and source-color layer names. If your software asks for import units, choose the unit you exported, then confirm the import.

Do DXF color layers preserve my laser settings? No. PerfectVector's source-color layers organize contours, and its indexed display colors may differ from the original hex colors. Assign and verify cut, score, or engrave settings in the laser application.

Why does my DXF import at the wrong size? The receiver may use a different unit assumption from the exporter. Select the intended units and measure a known feature. Inches interpreted as millimeters cause a 25.4-times physical size difference.

Sources

  1. W3C — SVG paths — path commands and curved geometry.
  2. W3C — Coordinate systems, transformations and units — dimensions and viewBox mapping.
  3. Autodesk — About the DXF format — drawing data, group codes, entities, and sections.
  4. LightBurn — File management — SVG/DXF import, fonts, and project-file distinctions.
  5. LightBurn — Cuts/Layers window — operation modes and layer settings.
  6. LightBurn — Settings and preferences — SVG size interpretation and DXF import units.
  7. Glowforge — Upload your own design file — SVG/PDF support and Premium DXF import.
  8. PerfectVector — Current unlock policy — preview, result unlock, and re-download policy.

More from the blog

PerfectVector

Turn an image into SVG paths for laser cutting

Vectorize and inspect previews for free, with no daily limit.