Laser Cut File Formats Explained: SVG, DXF, EPS, PDF, LBRN2
Laser cut file formats explained in plain English: what SVG, DXF, EPS, PDF and LBRN2 files do, which software opens them, and which one to choose first.
SVG vs DXF for laser cutting: see which format keeps colours, fills and exact sizes, which suits Glowforge, xTool and LightBurn, and how to fix import errors.
Pick up any free laser design and you will usually find two files in the folder: an SVG and a DXF. Both are vector formats, both will cut, and most laser software opens either. So which one should you use? The answer to SVG vs DXF for laser cutting depends on your machine, your software, and whether you care more about colours or exact geometry.
Here is a plain comparison, with the problems each format tends to cause and how to fix them.
If you are not sure, try the SVG first and check the size after import. If the size is wrong and you cannot easily fix it, switch to the DXF.
SVG (Scalable Vector Graphics) is a web standard. It stores shapes, colours, fills and strokes, and can even hold embedded images.
Strengths for laser work:
Weak spots:
DXF (Drawing Exchange Format) was created by Autodesk for swapping CAD drawings. It is plain geometry: lines, arcs, circles, polylines and splines.
Strengths for laser work:
Weak spots:
Here is how they compare on the things that matter at the machine.
Neither format stores laser power or speed. If you want settings saved with the design, use LightBurn's own .lbrn2 format. The wider picture, including EPS and PDF, is in laser cut file formats explained.
The SVG imports at the wrong size. In Inkscape, set document units to mm and save as Plain SVG. In LightBurn, look at the SVG import options in the settings, which control how files without units are scaled. Or simply measure a known edge after import and scale to match.
The DXF imports tiny or huge. The units were lost. Scale by 25.4 (inches to mm) or 1/25.4, depending on which way it went. LightBurn and most CAD tools let you choose the unit when importing.
Colours merged into one layer. The DXF used one colour for everything, or a colour your software does not map. Select the lines by type and reassign them to layers by hand.
Engrave areas show up as outlines. Normal for DXF. In LightBurn, change that layer's mode from Line to Fill. Or use the SVG for engraving and the DXF for cutting.
Curves look jagged or cut slowly. The file stored curves as hundreds of tiny straight segments. Try the other format, or use your software's curve optimisation tool before cutting.
Lines cut twice. Both formats can contain overlapping duplicates. Run a "delete duplicates" or "remove overlapping lines" pass before every job.
The safest approach for anyone sharing or selling designs is to ship both. Different customers run different machines, and having the second format to fall back on solves most import problems. That is why downloads from the Digital Creation laser cut tool include SVG and DXF for every sheet, along with LightBurn, EPS and a 1:1 PDF, using red for cut, blue for engrave and green for score.
When you are trying a new file, do this before cutting good material:
Whichever passes first is the file to use. Mark the result in a note with the design so you do not repeat the test next time.
If the parts need to fit together, also allow for the width of the beam. The format will not fix a loose joint; a kerf test will tell you how much to adjust. And if you would rather start from a design that is already laid out in both formats, generate one from your own measurements and compare them yourself.
SVG. The Glowforge app accepts SVG, PDF and image files, but not DXF. Convert a DXF to SVG in Inkscape first if that is all you have.
Both import well. SVG keeps colours and fills more reliably, while DXF tends to keep exact dimensions. Check the size after import either way.
The program that saved it may have put every line on one colour or layer, or used colours your software does not recognise. Reassign the lines to layers manually.
Yes. Inkscape can open an SVG and save it as a DXF (choose the R14 option). Convert text to paths first, and check the size of the result.