Skip to content

Laser Cutter File Formats by Software

The preview is free, with a watermark, and needs no signup. The SVG, DXF and PNG files are paid: see the pricing page.

Secure checkout by StripeCancel anytime from your account

A laser cuts along the lines of a vector file and engraves the pixels of an image, and each laser program opens its own list of both. LightBurn, xTool Creative Space and the Glowforge app all take SVG; DXF opens in LightBurn and xTool Creative Space, and in the Glowforge app with Premium; LaserGRBL runs G-code. Below, one tag as a real SVG, DXF and G-code file, read line by line.

  • 4 laser programs and the files each one opens, from their own help pages
  • One tag as an SVG, a DXF and a G-code file, read line by line
  • What each format keeps: size, layers, curves, power and speed

Which files your laser software opens

From the help pages of each program, read on November 29, 2026. The last column says which file to import from the converter at the top of this page, whose ZIP holds an SVG, a DXF and a PNG.

LightBurnVector:AI, SVG, DXF, PDF, PLT, HPGLImages:PNG, JPG, BMP, GIF, TIF, WEBPIt also imports G-code, as geometry only: speed and power settings are left out. It saves the file your controller runs: G-code for GRBL, an RD file for Ruida. Text needs its fonts installed, or converted to paths.From this converter:The SVG or the DXF, both in the ZIP
xTool Creative SpaceVector:SVG, DXFImages:PNG, JPG, BMPIts help page lists these five formats and says other formats are not supported. Text inside an SVG is not displayed, and a PNG is processed as a bitmap, for engraving only.From this converter:The SVG or the DXF, both in the ZIP
Glowforge appVector:SVG, PDF, DXFImages:JPG, PNGSVG and PDF are for cutting and engraving, JPG and PNG for engraving only. DXF is for Premium members.From this converter:The SVG; the DXF with Premium
LaserGRBLVector:SVGImages:BMP, JPG, PNG, GIFIt runs G-code files with the .nc and .gcode extensions. Its SVG support is in an early state of development, and the size and offset of an SVG job cannot be set inside LaserGRBL.From this converter:G-code from the image to G-code converter; the SVG, as an early-stage import

Sources, read on November 29, 2026: LightBurn file management, xTool Creative Space import FAQ, Glowforge upload help, LaserGRBL load and send and LaserGRBL FAQ. Compiled by the VectoSolve design team. Programs change between versions: their help pages give the current list.

One tag as an SVG, a DXF and a G-code file

A 60 x 30 mm keychain tag: a rounded outline and a hole to cut, drawn as red lines with no fill, and a black star to engrave. The SVG is drawn by hand. The DXF is what the converter's ZIP code writes from it, with the converter's default DXF settings, and the G-code is what the site's G-code engine writes, with its default settings. Every value below is read from the files.

keychain-tag.svg, its three paths
WhereValueWhat it says
width, height60mm, 30mmThe size, in millimetres. The viewBox, 0 0 60 30, makes one unit 1 mm
Path 1fill="none" stroke="#ff0000"The outline: a red line with no fill, straight sides and four corner arcs (A) of 4 mm radius
Path 2M5.5 15A2.5 2.5The hole, a circle 5 mm across, drawn as two arcs: red, no fill
Path 3fill="#000000"The star: a black fill and no stroke, for engraving, with ten straight sides (L)
File size483 bytes5 lines of text
keychain-tag.dxf, its header, layers and shapes
WhereValueWhat it says
$ACADVERAC1015The DXF version: AutoCAD 2000, the converter default
$INSUNITS4The unit: 4 is millimetres, 1 would be inches
$EXTMIN, $EXTMAX0, 0 and 60, 30The corners of the drawing: 60 x 30 mm, the size of the SVG
LAYEROUTLINE, COLOR_000000One layer per fill color, named after it, and OUTLINE for the lines with no fill, with color numbers 1 and 2
LWPOLYLINE 136 points, closedThe outline, on OUTLINE: its corner arcs are now short straight segments
LWPOLYLINE 216 points, closedThe hole, on OUTLINE too
LWPOLYLINE 310 points, closedThe star, on COLOR_000000. Its top point is at Y 25: a DXF counts Y up from the bottom, an SVG down from the top
File size15,722 bytes3,136 lines. The three shapes take 308 of them; the rest is the AutoCAD 2000 frame: header, tables, blocks and objects
keychain-tag.gcode, 11 of its 112 lines
LineIn the fileWhat it says
2; Machine: laserA comment: after a semicolon, the controller reads nothing. Lines 2 to 5 note the machine, the 3 paths, the feed rate and the power
7G21 ; Units: mmMillimetres. G20 would be inches
8G90 ; Absolute positioningEvery X and Y is measured from 0, 0, the bottom left corner of the tag
11; Path 1 of 3The hole comes first: the engine cuts inner shapes before the outline around them, so the tag does not shift before its last cut
12G0 X5.5 Y15 F3000A rapid move, laser off, to the start of the hole
13M3 S800Laser on, at power S800 on the engine scale of 0 to 1000
14G1 X5.548 Y14.512 F1000The first of 33 cutting moves around the hole, at 1,000 mm per minute. F is written once per path
50G0 X36 Y25 F3000Path 2, the star, from its top point: Y 25, as in the DXF
51M3 S800The same power: a G-code file has no layers, so the star is traced along its outline like a cut, not filled
64; Path 3 of 3The outline comes last, in 37 moves
109M2 ; Program endAfter M5, laser off, and a move back to 0, 0

Download the three files to open them in your own laser software:

What each format keeps

Size and units

All three files read 60 x 30 mm: the SVG in its width and height, the DXF in $INSUNITS, 4 for millimetres, and the G-code with G21. A file read in the wrong unit comes in 25.4 times too big or too small.

Cut and engrave

In the SVG, cut lines and engraved shapes differ by stroke and fill; in the DXF, by layer, one per fill color. The G-code has neither: only moves and a power value, so the star is traced like the outline.

Curves

The SVG keeps its arcs. The DXF writes them as polylines, 36 points for the outline and 16 for the hole, and the G-code as straight moves, 33 around the hole.

Power and speed

Only the G-code holds them: S800 and 1,000 mm per minute. An SVG or a DXF carries none, and LightBurn leaves them out when it imports a G-code file. You set them in your laser software.

Getting the right file

From a picture: SVG, DXF and PNG

The converter at the top of this page traces a PNG, JPG or WebP and gives an SVG, a DXF and a PNG in one ZIP. By default its DXF is in millimetres, with each fill color on its own layer.

Go to the converter

For LaserGRBL: G-code

LaserGRBL runs G-code, and its SVG import is at an early stage. The image to G-code converter writes the file, like the one above: millimetres, S800 and 1,000 mm per minute by default, or a material preset.

Image to G-code converter

Text: turn it into paths

xTool Creative Space does not display text inside an SVG, and LightBurn cannot import embedded fonts. Convert text to paths in your design program before you export.

Laser file format questions

What file format does a laser cutter use?

A vector file for the lines it cuts or engraves, most often SVG or DXF, and an image such as a PNG or a JPG for pictures it engraves. The laser program turns them into the moves the machine runs, and a GRBL laser can also run a G-code file from LaserGRBL. The table on this page lists what LightBurn, xTool Creative Space, the Glowforge app and LaserGRBL open.

What is the best file type for laser engraving?

For lines, text and logos, a vector file: SVG opens in all four programs on this page and keeps fills and strokes apart. For a photo, an image: PNG and JPG open in all four too. The Glowforge app engraves them only, and xTool Creative Space processes a PNG as a bitmap, for engraving only. Convert text to paths first.

Should I send an SVG or a DXF?

Both open in LightBurn and xTool Creative Space. The Glowforge app takes DXF only for Premium members, and LaserGRBL does not list DXF, so SVG is the one vector file all four programs on this page open. A DXF states its unit in its header and, from the converter, puts each fill color on its own layer.

Can a laser open a G-code file?

A GRBL laser runs G-code: LaserGRBL loads .nc and .gcode files and sends them to the machine. LightBurn imports a G-code file as lines only, without its speed and power settings, and writes its own G-code for GRBL controllers. xTool Creative Space and the Glowforge app do not list G-code.

Why does my file come in at the wrong size?

Usually a unit mismatch. Inches read as millimetres make a part 25.4 times too small, and millimetres read as inches 25.4 times too big. Check the unit the file declares: the tag on this page says 60mm in its SVG, 4 for millimetres in its DXF header, and G21 in its G-code.

Does the converter make G-code?

Not the one at the top of this page: it gives an SVG, a DXF and a PNG in one ZIP, for LightBurn, xTool Creative Space and the Glowforge app. The image to G-code converter writes G-code, like the file on this page, for LaserGRBL.

Can I use these files on a CNC router?

The SVG and the DXF, yes: a CAM program turns them into the router G-code, with depths and tool moves. A laser G-code has no depth. Set to a CNC router, the G-code engine of the site writes a safe height, plunges and a spindle speed instead.

How do I get a laser file from a picture?

Drop a PNG, JPG or WebP into the converter at the top of this page. The preview is free, with a watermark, and needs no signup. The download opens the payment options, and you get one ZIP with the SVG, the DXF and a PNG.

More: SVG for LightBurn, SVG for xTool, SVG for Glowforge, SVG for LaserGRBL and SVG for laser cutting.