Laser MTS
File preparation

Laser cutter file formats: SVG, DXF, PDF, AI or .lbrn2?

· 12 min read

A customer sends “logo.svg” — it imports at three-quarters of the size. Another sends a DXF that measures 100 mm in one program and 4 mm in another. A third sends a PDF with a name on it that the laser simply doesn’t see. Each format carries a drawing differently: one remembers millimeters, one stores bare numbers with no unit, one counts in printer’s points. Here’s what each format carries, what LightBurn and xTool import, and which file to send to whom.

Four cards with the same pendant to be laser cut: SVG labeled “mm or px”, DXF “lines and arcs, units?”, PDF “points: 72 per inch” and .lbrn2 “layers + settings”
The same drawing in four files. What differs is everything beyond the shape: units, layers, text, laser settings.

In short

  • SVG is the most convenient exchange format — as long as it has a unit in millimeters (or inches). Bare “pixels” mean 96 per inch in Inkscape and 72 in Illustrator, which is why files import at 75% or 133%.
  • DXF carries lines, arcs and polylines, but often no units — the laser software has to guess millimeters or inches (a 25.4× error). Splines get turned into straight segments.
  • PDF and AI always count in points (72 per inch), so the size is reliable; text without its font has to be converted to outlines. LightBurn reads AI, xTool doesn’t.
  • .lbrn2 is a LightBurn project: shapes plus layers with power, speed and passes. You open it rather than import it — importing keeps only the graphics.
  • Send a laser shop an SVG in mm (text outlined, one color per operation) plus a PDF for reference; send .lbrn2 only when both sides run the same laser and material.

What a laser file carries

Laser software needs five things from a file: geometry (lines, arcs, curves), units (how many millimeters or inches that is), a split into operations (colors or layers: what to cut, what to engrave), possibly text and an image to engrave — and, in a project file, the settings (power, speed, passes). No format carries all of it, and most trouble comes from what the file leaves out.

FormatUnitsGeometryOperationsTextImageLaser settings
SVGmm, cm, in, pt or “px” (counted differently)Bézier curvesstroke and fill colors, Inkscape layersyes, as textyes, embeddedno
DXFin the header, often emptylines, arcs, circles, polylines, splinesnamed layers and an indexed coloryes, as textreference onlyno
PDF / AIpoints, 72 per inch — alwaysBézier curvescolors; usually no layersyes, with embedded fontsyesno
PLT / HPGL0.025 mm (1/1016″)straight segments onlypen numbernonono
PNG / JPGDPI, if savednone — pixels——it is an imageno
.lbrn2mmcurveslayers C00–C29yesyesyes: mode, power, speed, passes

SVG — the best exchange format, if it has a unit

SVG is a text file of curves that almost every graphics and laser program opens. Its one trap is units. A size in millimeters (width="100mm") or inches (width="4in") is unambiguous. But many programs write only numbers “in pixels” — and how many pixels make an inch is something each program decides for itself:

LightBurn has a switch for this: Settings → Import/Export → SVG Import — 96 DPI (Inkscape) or 72 DPI (Illustrator). xTool has a similar field. Simpler still: save the file with real units. In Inkscape, set the document units to mm or inches (File → Document Properties); from Illustrator, export PDF or AI instead of SVG. The “what came out → scale by” table is in our post on laser cutting file mistakes.

Beyond units, SVG behaves predictably: curves stay curves (the laser software flattens them to segments at its own tolerance), the stroke color lands on a layer, and the program snaps it to the nearest palette color. Two things SVG won’t do for you: text is stored as a string plus a font name, so without that font on the computer the laser substitutes another or drops the text — convert to outlines before saving; and an image embedded in an SVG is still an image, not a cut line — it needs vectorizing.

DXF — numbers without units

DXF is the exchange format of CAD programs (AutoCAD, Fusion, FreeCAD, SolidWorks). It stores geometry as a list of entities — LINE, ARC, CIRCLE, polylines and splines — each on a named layer with a color from a numbered palette. Three things to know:

Three 20 mm circles: a true arc with 0 mm deviation, a 12-sided polygon deviating up to 0.34 mm from the circle, and a 48-segment polygon deviating up to 0.021 mm
A 20 mm (about 3/4″) circle as an arc and as a polygon. Deviation computed from the chord sagitta: r·(1 − cos(π/N)). At 12 segments you can see it; at 48 it’s smaller than the kerf.

Text in DXF (TEXT, MTEXT) and dimensions need a font and are sometimes dropped or scaled wrong — convert lettering to outlines. Blocks (INSERT) are references to definitions elsewhere in the file; explode them before exporting so nothing goes missing. The most widely read variant is DXF R12 in ASCII — when the save dialog offers a version, pick that one and the laser gets plain entities every program understands.

PDF and AI — reliable size, text to check

In a PDF the unit is always the point, 1/72 of an inch — the format standard says so. That’s why a PDF from Illustrator, CorelDRAW, Affinity or a print shop loads at the right size, no guessing. The file carries curves, images and text together with embedded fonts — but LightBurn doesn’t read embedded fonts: for lettering to come in as shapes, convert it to outlines before saving or install the same font. PDFs usually have no layers but keep colors, so splitting into operations works as in SVG. Send a single page: a multi-page PDF is an invitation to import the wrong one.

A modern AI file is a PDF inside — provided Illustrator saved it with “Create PDF Compatible File” checked. Without it, other programs see only a page saying the file was saved without PDF content. LightBurn imports AI; xTool Creative Space and xTool Studio don’t (Studio does read PDF). If you design in Illustrator, save AI with that option or export PDF — both sidestep the 72/96 DPI problem that breaks SVG.

PLT and images

PLT / HPGL is the language of old pen plotters: straight segments only, in a unit of 0.025 mm (1/1016″), with a pen number instead of a color. Arcs are already broken into segments; text and images don’t exist. LightBurn imports it, xTool doesn’t. It only makes sense when an old program can’t save anything else.

PNG, JPG, BMP are images — a laser can only engrave them. The size comes from the saved DPI, and if there is none, the program assumes its own. To cut an outline you have to vectorize it — see our post on vectorizing an image for laser cutting.

.lbrn2 — a project, not a drawing

LightBurn saves projects as .lbrn2 (the older .lbrn is human-readable but bigger). Besides shapes in millimeters, it holds layers with a mode (cut, line, fill, image), power, speed, number of passes, and the cut-order optimization settings. The documentation is explicit: opening the file (Open) loads the settings, importing loads only the graphics. If someone sends you an .lbrn2 “with the settings in it,” open it — don’t import it.

On the left an SVG file with a pendant in three colors and the label “color = layer”, on the right an .lbrn2 project with the same pendant and a layer table: C02 cut 12 mm/s 70%, C01 line 150 mm/s 20%, C00 fill 300 mm/s 15%
Schematic. SVG carries shapes and colors; an .lbrn2 project adds a mode, speed and power to every layer (the values in the table are examples).

Two caveats. The settings in a project fit one specific laser, lens and batch of material — someone else’s .lbrn2 on your machine is a starting point to test on a scrap, not a recipe. And only LightBurn reads .lbrn2. xTool has its own project format (.xcs); Trotec, Epilog and Universal have their own drivers. For exchanging files between shops, SVG remains the better choice.

What LightBurn imports, and what xTool does

According to both vendors’ documentation (as of October 2026; check the import dialog in your version):

SoftwareVectorsImagesProject
LightBurnSVG, DXF, AI, PDF, PLT/HPGLPNG, JPG, BMP, GIF, TIFF.lbrn2, .lbrn (import = graphics only); G-code as geometry only
xTool Creative SpaceSVG, DXFJPG, PNG, GIF, BMP, WEBP.xcs
xTool StudioSVG, DXF, PDF, PSDPNG, JPG, BMP, WEBP, TIF, GIF.xcs

The practical takeaway: everyone opens SVG and DXF; PDF works in LightBurn and xTool Studio; AI and PLT only in LightBurn. If you don’t know what the other side cuts with, send SVG.

What to send a laser shop, what to accept from a customer

Sending to a shop

  • SVG with units in mm or inches (or a PDF) — one file, one page.
  • Text converted to outlines, clones unlinked, hidden objects deleted.
  • One color per operation and a legend in the email: “red — cut, black — engrave.”
  • The overall size in the file name or the message, e.g. pendant-50x70mm.svg — the shop checks the scale right away.
  • .lbrn2 only when both sides run LightBurn, the same laser and the same material.

Receiving from a customer

  • Measure one known dimension right after importing. 75%, 133%, 93.75% or 25.4× means mixed-up units, not a bad drawing.
  • Count the layers — as many operations, as many colors. Two almost identical reds will split into two layers.
  • Check that contours are closed and nothing is doubled (DXF from CAD, parts butted together).
  • A “logo.svg” with an image inside, a PDF with a photo, lettering as text in a DXF — send it back for fixing, or vectorize it yourself and charge for it.

If you make your cut files in the Laser MTS generators — boxes, keychains, puzzles, maps — each of them saves three files at once: SVG, DXF and a LightBurn .lbrn2 project with the layers set up, so the format takes care of itself. Customer files go through Auto-Preflight (Pro plan): it shows the detected units and the real size in millimeters, open contours, text, double lines, clones, hidden objects and images — and fixes what can be fixed with one button.

Which format when

SituationFormatWhy
Exchanging with another shopSVG in mmevery program reads it, the unit is in the file, colors = operations
From a CAD programDXF R12 (polylines), SVG as backupexact arcs; join contours and explode blocks before saving, set units to mm or inches
From IllustratorPDF or AI (PDF Compatible)points at 1/72″ — none of the 72/96 DPI trouble that breaks SVG
A project for someone with the same laser.lbrn2layers with power and speed; the recipient opens it, not imports it
A preview for a customerPDF or PNGopens on a phone, scale can’t drift
Photo engravingPNG with DPI (lossless)JPG adds compression artifacts to gradients
Old software that doesn’t know SVGPLTlast resort: straight segments only, no text or images

Frequently asked questions

What is the best file format for a laser cutter?

For exchange — SVG with units in millimeters or inches, text converted to outlines and one color per operation. From CAD, DXF works well; from Illustrator, PDF. A project with cut settings (.lbrn2) only makes sense between LightBurn users with the same laser.

Can a laser cutter use PDF files?

Laser software can import the vectors from a PDF — LightBurn and xTool Studio do, xTool Creative Space doesn’t. The size is reliable (a point is 1/72″), but text with an embedded font has to be converted to outlines first, and an image inside the PDF stays an image for engraving.

Why does my SVG import at the wrong size?

Because the file has no unit, and programs count “pixels” differently: Inkscape and LightBurn use 96 per inch, Illustrator 72, Inkscape before 0.92 used 90. Save the file in mm or inches, or switch the SVG import DPI in the laser software (96 or 72 in LightBurn).

What is the difference between .lbrn2 and SVG?

SVG carries shapes and colors. An .lbrn2 file is the whole LightBurn project: the same shapes plus layers with mode, power, speed and passes, and the optimization settings. Only LightBurn reads it, and the settings fit one particular machine.

DXF or SVG for LightBurn?

Both work. SVG is safer when it has a unit; DXF gives exact arcs from CAD but often lacks units and comes with contours in pieces. After importing a DXF, measure a dimension and check that contours are closed.