SVG vs DXF for Laser Cutting: Which File Format to Use
Use SVG for most laser work: it carries units, colors and strokes and opens in nearly every laser app, including Glowforge. Use DXF when you work in CAD or need named layers and exact millimetre geometry, for LightBurn, xTool and RDWorks. Glowforge does not open DXF directly, so convert it to SVG first.
You downloaded a design, dragged it into your software, and the reindeer is now the size of a postage stamp. Or a house. Or the lines are the wrong color and it all cut as one layer. Nine times out of ten, the culprit is the file format, or more exactly how the format stores size and color.
SVG vs DXF for laser cutting is not a fight with a winner, because each was built for a different job. SVG comes from the web and graphic design world; DXF comes from CAD and engineering. Once you know what each one remembers and what it forgets, picking is easy.
SVG vs DXF for laser cutting: the real differences
| Feature | SVG | DXF |
|---|---|---|
| Origin | Web and graphics (Inkscape, Illustrator) | CAD (AutoCAD, Fusion, QCAD) |
| Stores size | Yes, width/height with units (mm, in, px) plus a viewBox | Often unit-less; a header value may declare units |
| Stores colors | Yes, stroke and fill per object | Per layer or object color index |
| Stores layers | Groups and layer names (app-dependent) | Named layers, a core feature |
| Text and fills | Supports both | Mainly lines, arcs, polylines |
| Typical use | Design, Glowforge, Cricut-like apps, art | Precise parts, boxes, CAD output |
| Risk | Pixels vs millimetres confusion | Wrong units (inch vs mm) |
An SVG is basically a drawing with colors. A DXF is basically a technical drawing with layers. Both are vectors, meaning lines and curves that cut cleanly at any size, unlike a JPG or PNG.
Which software opens which
Here is what the common programs accept. Always confirm against the app's current documentation, because support changes between versions.
| Software | SVG | DXF |
|---|---|---|
| LightBurn | Yes | Yes |
| xTool Creative Space | Yes | Yes |
| Glowforge | Yes | No (convert first) |
| LaserGRBL | Yes (as a vector import) | Check your version |
| RDWorks | Via other formats, varies | Yes |
| Inkscape | Native | Yes (import/export) |
See the dedicated answers in Can Glowforge Open DXF Files? and What File Formats Does LightBurn Support?.
How sizes go wrong
This is the part that trips everyone.
- SVG can declare its size in millimetres, inches or pixels. Pixels depend on a resolution assumption (commonly 96 DPI in browsers and Inkscape, 72 in older Illustrator exports). If the app assumes a different one, your design scales by about 25 percent or more.
- DXF usually has no on-screen unit. Software must decide whether a "90" means 90 mm or 90 inches. Most laser software asks, or lets you set a default.
Both of those problems are covered in Why Is My SVG the Wrong Size in LightBurn? and What Units Should a DXF File Use?.
Common mistake: Trusting the size on screen. Always measure a distance in your software against the real dimensions on the product page. For the reindeer ornament it should read 90 × 124 mm, and your preview should match.
Colors, layers and what they do on the laser
Laser software decides what to do with a line mainly by its color (LightBurn, RDWorks) or its layer (some CAD workflows). That is the whole reason files are organised the way they are.
| Job | In SVG | In DXF |
|---|---|---|
| Cut through | Thin red stroke (hairline) | Layer named CUT |
| Engrave a filled area | Black fill | Layer named ENGRAVE |
| Score (shallow line) | Another stroke color, e.g. blue | Layer named SCORE |
DXF World files follow exactly this convention: SVG with a red CUT hairline and black ENGRAVE fill; DXF with layers CUT and ENGRAVE. Read more about the hairline in What Is a Hairline Stroke in a Laser File? and about layer logic in Cut, Engrave and Score Layers Explained.
Pro tip: If you pick DXF and your engrave areas come in as outlines instead of filled shapes, that is normal. DXF has no real fill concept in most laser apps. Set the layer to fill in the software.
When to choose SVG
- You use Glowforge, or your design has artwork and colors
- You are drawing in Inkscape or Illustrator
- You want shapes with engraved fills
- The file might be shared with people who do not own CAD software
When to choose DXF
- Your workflow starts in CAD or box generators
- You need millimetre precision for joints and tabs, such as our finger joint box generator, which exports both SVG and DXF
- You use RDWorks or older CO2 controllers that love DXF
- The part is purely lines and arcs
Problems you will actually meet
| Symptom | Cause | Fix |
|---|---|---|
| Design 25 percent too small or large | 72 vs 96 DPI assumption in SVG | Rescale to a measured dimension; export with mm units |
| 25.4 times too large or small | DXF read as inches instead of mm (or the reverse) | Set import units to mm |
| Everything cuts on one layer | Colors lost or all black | Reassign by color in software, or re-export |
| Double lines cut twice | Overlapping duplicate paths | See fix open contours and double lines |
| Fills missing on engrave | Outline-only DXF | Fill the shape in software |
Practical rule of thumb
If you do not know which to use, download both when the site offers them. We do, for every file. Open the SVG first, measure the dimensions, and keep the DXF for when something needs a CAD edit. Then test a cut on scrap.
A quick test to run on any file
Before you trust a file, spend 60 seconds on this checklist. It catches nearly every format problem before the laser ever fires.
- Import it into your software without scaling.
- Measure one known dimension (for example the 90 mm width of the reindeer).
- Look at the layers or colors and confirm cut and engrave are separate.
- Zoom way in on corners to see whether lines are closed or leave gaps.
- Run Frame or a preview to see the toolpath order and the time estimate.
If the preview time looks absurd (say 40 minutes for a tiny ornament), you probably have duplicate lines stacked on top of each other, which cut twice. Our time estimates, for example 1 min 48 s on a 10 W diode for the reindeer, give you a handy reality check.
Converting between the two
You can move between formats, but be careful what you lose.
| Conversion | Tool | What can go wrong |
|---|---|---|
| DXF to SVG | Inkscape, LightBurn export | Units guessed wrong, layers merged into one |
| SVG to DXF | Inkscape, LightBurn export | Fills lost, curves turned into many short lines |
| Image to either | Trace in Inkscape | Messy paths, see convert an image to a laser file |
Pro tip: After any conversion, measure again and check for duplicates. Conversion is where file size bugs are born.
What about AI, PDF and PNG?
You will meet other formats too. AI and PDF files can contain real vectors and often open fine in LightBurn, but they carry baggage such as artboard sizes, embedded fonts and effects that do not translate to laser paths. PNG and JPG are pictures made of pixels: great for engraving a photo, useless for clean cutting lines until you trace them into vectors (see How to Turn an Image into a Laser Cut File). If you have a choice, a plain SVG or DXF with simple closed shapes will behave better than anything fancier.
Another small thing: fonts. If a design includes text, convert it to outlines or paths before you export. Otherwise the file may open on another computer with a different font, or the laser software may not understand it at all. Nothing is sadder than a wedding sign that comes out in a default typeface.
Next step
Open any file in the free library in both formats and compare them in your own software. Check the size, check the layers, and note which version behaves best for your machine. After that, read How to Prepare an SVG for Laser Cutting to avoid the usual traps.
Questions and answers
Is SVG or DXF better for laser cutting?
Neither is universally better. SVG is easier for colors and artwork and works in Glowforge. DXF suits CAD work and layer-based precision.
Can LightBurn open both SVG and DXF?
Yes. LightBurn imports both formats, plus AI, PDF and common image types.
Why is my DXF the wrong size?
DXF often does not carry a clear unit, so the software may read millimetres as inches. Set the import units correctly and verify against a known dimension.
Does Glowforge accept DXF?
Not directly. Convert DXF to SVG in a program like Inkscape first, then upload the SVG.
Which format should I use for engraving fills?
SVG, because it stores filled shapes. DXF is mostly lines and outlines, so fills must be added in your laser software.