A DXF your laser will actually cut
Closed contours on colour layers that LightBurn and xTool Creative Space import.
Convert and preview without an account. Downloading is free too — it just needs a Google sign-in. No card, no subscription.
01 · 5 colours · 193 nodes
How it works
- Upload the artwork as PNG, JPEG, WEBP, BMP, GIF or AVIF — one image per conversion, and flat colour traces far cleaner than a photograph.
- Set Colours to 2 for a straight cut-out, or 3 to 4 when the job needs an engrave layer alongside the cut layer.
- Tick DXF, leave Shape stacking on Cut-outs, and type the finished width and height into the millimetre fields.
- Read the preview, then sign in with Google (free) to download the DXF.
- Import it — the header already says millimetres — then point each FILL_ layer at a cut or an engrave operation and add your kerf offset there.
A laser does not cut pictures. It drives a head along a path and switches the beam on, so two things must be true of that path: it has to close, and it has to be at the size the material was bought for. A raster image promises neither.
What comes back from here is a DXF R2010 (AC1024) drawing of closed contours — LWPOLYLINE for the straight runs, degree-3 SPLINE for the curves — opened directly by AutoCAD 2010 and later, Fusion 360, LightBurn, Inkscape and FreeCAD.
Colour is the lever that matters most here: it is how cutting is kept apart from burning. Every colour the tracer keeps becomes a layer of its own, named FILL_ followed by that colour's hex digits — and layers are what laser software hangs its operations off. In LightBurn each arrives as a separate entry you point at a line cut or a fill; RDWorks assigns speed and power per layer.
Scale is the other half, and where first attempts used to end up in the offcuts bin. The header now declares the unit itself — $INSUNITS = 4, millimetres — and the geometry inside is written at that scale, so an importer that reads the header stops falling back on its own habit and landing the part 25.4 times too large. Type the finished width and height into the millimetre fields as well: they reach the DXF writer, so a 120 mm badge is written 120 mm across.
What actually happens
- Raster 6×6 · 8 px · PNG 77 B
- 6 nodes · 1 path
- SVG 91 B · vector, not pixels
Which laser software opens this DXF, and which wants the SVG instead
LightBurn imports DXF, SVG, PDF and HPGL alike
LightBurn's import list runs to Illustrator, SVG, DXF, PDF and PLT/HPGL, with PNG and JPG as images. The DXF from here arrives as closed shapes with each FILL_ layer kept apart, ready to be pointed at a line cut or a fill. LightBurn's guide asks that text in an imported vector already be paths — never an issue here, since the tracer writes outlines and embeds no font.
xTool D1, S1 and P2: XCS reads DXF directly
xTool Creative Space lists SVG, DXF, PNG and JPG among its import formats, so the DXF loads into XCS as it is. If you drive the laser cutter from LightBurn instead, LightBurn has native support for the D1, D1 Pro and S1; the P2 can be run from LightBurn too, though xTool notes that its camera, auto-focus and framing are not supported there.
LaserGRBL takes raster or SVG, so tick SVG as well
LaserGRBL's documentation lists G-code and raster images as what it opens, with SVG support described as early-stage and tuned to Inkscape's output; DXF is not on its list. For a GRBL diode machine, tick SVG beside DXF and set Draw style to Stroke shapes: LaserGRBL's FAQ says shape filling is not supported — only borders are traced — so an outline SVG is the file it reads as intended.
Glowforge: SVG or PDF cuts, and DXF sits behind Premium
Glowforge's file-type page is specific: the App supports JPG, PNG, SVG and PDF, with DXF for Premium members, and only SVG or PDF carry cutting as well as engraving. So a Glowforge owner should tick SVG or PDF alongside the DXF — same contours, same millimetre size, since the width and height you type reach all four vector formats, and no subscription stands between the file and the bed.
Choosing the colour count
The person who needs this is at a diode or CO2 machine with 3 mm acrylic already on the bed and artwork that turned up as a bitmap: a customer's logo, a badge exported flat from a drawing app, a photographed paper template.
Three things account for most of the wasted sheet. The part comes out at the wrong scale, because no finished size was ever typed and the drawing was left to follow the traced pixel grid. The same edge gets cut twice a fraction of a millimetre apart, because a soft anti-aliased boundary was traced as a band with two sides. Or something meant to be shaded lands on the cutting layer and the head goes straight through it.
Worth saying flatly: these contours are measured off pixels by geometric tracing combined with machine learning (AI) — colour segmentation, an explicit anti-aliasing model, then curve fitting — and beam width is compensated nowhere in them. Kerf belongs in your laser software, where it changes with material and focus.
Settings we suggest
Colours: 2 for a plain cut-out, 3 or 4 when a cut and an engrave have to come back separated. One colour in, one layer out. The slider goes to 64, but any colour beyond what the artwork genuinely contains gets spent on the soft rim of a shape, splitting it into a thin band with two edges: the doubled cut line.
Shape stacking: Cut-outs. Holes arrive as their own closed loops inside the boundary around them, so the middle of a letter O drops away and the letter survives. Stacked overlaps shapes along shared edges, and a laser will cheerfully follow a shared edge twice. Grouping never reaches the DXF writer, but draw style does: Filled and Outlines give the same closed contours, while Edges gives each shared boundary once as an open path on EDGE_ layers.
Fill in both millimetre boxes. What you type is applied to the DXF and is the most dependable way to fix physical dimensions, since images above 1.5 megapixels are reduced before tracing: left empty, the drawing is scaled from that reduced grid at 96 px = 25.4 mm. Either way the header goes out saying millimetres, so the import dialog is not left guessing. Uploads go up to 25 MB and 40 megapixels.
Questions
How do I keep cutting and engraving on separate layers?
Decide it in the artwork, with colour. Everything to be cut goes in one flat colour and everything to be burned in another, then trace with a matching colour count. Each colour becomes a layer named FILL_ plus the hex value, and layers survive the import, so you assign a line cut to one and a fill to the other.
The drawing came in at the wrong size. What do I change?
Start with the millimetre fields here: type the finished width and height and the geometry is built to them. Left empty, they hand the drawing the pixel grid instead, at 96 px = 25.4 mm. The file states its unit as well — $INSUNITS = 4, millimetres — so an importer that reads the header lands the part at size. If yours has been told to ignore the header and assume inches it will still multiply everything by 25.4, and that setting is where you fix it.
Is the kerf already compensated?
No. You get the boundary exactly as traced, so a part cut on that line finishes smaller by half a beam width all round, and a hole larger. Put the offset in your laser software, where it can be measured and re-measured, because the figure moves with material, thickness, focus and power.
Why is nothing filled in the file?
The writer emits boundaries only: LWPOLYLINE runs, degree-3 SPLINE curves, no HATCH anywhere and no embedded bitmap. For a laser that is the right shape of file, since fill engraving is generated by the machine software out of a closed outline — hand it the loop and switch that layer to fill.
The head traced my outline but the part never dropped out.
Every contour written is a closed loop, so suspect the layer assignment before the geometry — a layer set to score or engrave follows the same path without going through. The other usual cause is artwork drawn as thin strokes, which trace as narrow two-edged ribbons.
What are the limits, and what does it cost?
One image per conversion, as PNG, JPEG, WEBP, BMP, GIF or AVIF, up to 25 MB and 40 megapixels. Simple logos usually finish quickly; detailed drawings and photos can take several minutes. Each conversion has a 300-second limit; if it is not going to finish in time, the converter tells you and suggests a smaller image. Free and watermark-free; a free Google sign-in releases the download. Before signing in you get 10 conversions per hour, signed in 60 per hour and 300 per day. Download links expire after 1 hour, and files are removed by an automatic 1-day deletion rule.