DXF polylines

Image to DXF

The laser cut preset is selected: two colors, tight paths, background removal on. The DXF is one polyline layer per color, in millimetres, with curves flattened so machine software can open it.

Image converter

Drop a PNG, JPG, or WebP

You can also paste an image, or pick a file.

Nothing is uploaded. The picture stays in this browser tab.

Maker preset

Two colors and simple closed paths. Use the DXF or SVG as a cut, then set power in your laser software.

Drops islands smaller than this many pixels on a side. 0 keeps every speck.

Clears the color that dominates the edge, including a near-white edge. Spots of that color inside the design are cleared too.

Your layered preview shows up here. Hide a layer to leave it out of the download.

SVG keeps the curves. DXF writes polylines in millimetres at 96 pixels per inch, with curves flattened and Y flipped upright. PDF is one page, 1 pixel = 1 point. The zip is one SVG file per visible layer.

A Pro plan is planned for people who want unlimited layered files. It is not for sale, and there is no price yet. What that means

What is in the file

The DXF is plain ASCII, the kind of file a text editor can open and a laser program can import. Each color from the trace becomes a DXF layer. The layer name matches the SVG group, for example Layer 1 - #1C1915. On that layer, every outline is a POLYLINE. Closed shapes are marked closed. Open shapes, if the trace produced any, stay open. There is no spline entity, no hatch, and no raster image embedded in the DXF. If you need the curves, download the SVG. If you need to look at the fills on paper, download the PDF.

Curves are flattened on purpose. A cubic from the tracer becomes a run of short line segments. The tolerance is under half a pixel, which at this scale is a small fraction of a millimetre. Laser and CNC programs handle polylines more consistently than they handle DXF splines. You give up a little smoothness and gain a file that opens. If a contour looks faceted, the source was jagged or the smoothing slider was low. Raise smoothing, convert again, and export DXF once the SVG preview looks right. The DXF is always a flattened copy of that same preview.

Units and which way is up

Units are millimetres. The scale treats the image as 96 pixels per inch, so one pixel is 25.4 divided by 96 millimetres, about 0.265 mm. An image 1000 pixels wide becomes about 265 mm wide. That is a reasonable starting size for a sign or a panel, and it is the wrong size if you meant a 40 mm charm. The header sets INSUNITS to millimetres. Even so, some programs ignore the header and assume inches, or they apply their own scale on import. Measure one known edge after import. If the part is 25.4 times too big or too small, the program treated millimetres as inches or the reverse. Scale it once. Do not re-trace to fix a unit mismatch.

SVG Y points down. DXF Y points up. The exporter flips Y by the image height, so a shape that sits at the top of the picture sits at the top of the CAD view. If your program also flips on import, the part will be upside down. Mirror it in the laser software. The geometry is the same.

Layers, holes, and double cuts

The laser cut preset asks for two colors. That is usually the part and the scrap, or a cut and a waste background. Background removal is on, so a white or other edge color is cleared before the trace and often never becomes a layer. If both colors remain, put one layer on a cut setting and delete the other, or set the other to a no-output layer. Engrave work wants more colors. Switch to the laser engrave preset, which targets four, and read the engraving notes before you fire the tube. A DXF of a photograph is still flat regions, not a dithered raster engrave.

Holes are inner closed polylines on the same layer as the outer path. LightBurn and similar tools can treat a closed shape inside another closed shape as a hole, so the inside is not engraved or is cut as a window. If your program fills both, select the inner polyline and mark it as a hole, or delete it when you want a solid region. Do not expect the DXF to carry an even-odd fill flag. DXF polylines do not work that way. The nesting is the information.

Because each color is only its visible region, two layers should not cover the same pixels. A cut on layer 1 and a cut on layer 2 should not trace the same line twice unless the shapes share an edge. Shared edges can still sit a fraction of a millimetre apart after curve flattening. If your laser cuts both, you may see a double line on a shared border. For a one-off part, delete the duplicate edge. For a stack of parts, prefer the SVG in a program that can boolean the shapes, then export a fresh DXF from that program if you need one.

Opening it

In LightBurn, import the DXF and check that each color landed on its own layer. Assign cut or engrave per layer there. In xTool Creative Space, import and confirm the size in millimetres before you set power. Inkscape opens DXF too, if you would rather edit nodes and write a new SVG. Glowforge users should prefer the SVG download. Glowforge's DXF support is not the path this file is aimed at.

Cricut Design Space is the wrong destination for this DXF. Upload the SVG instead. The Cricut guide covers weld, attach, and flatten. Silhouette Studio can take SVG or DXF depending on the edition. If the edition you own imports SVG cleanly, use that. You avoid the flattened curves.

What you still set yourself

The file has no power, no speed, no number of passes, no kerf offset, and no lead-in. Those depend on wattage, material, thickness, and how clean you want the edge. A 3 mm birch plywood cut and a paper stencil cut are not the same DXF with different hopes. They might be the same geometry. The machine settings are yours. Speckle filtering matters more for DXF than it looks, because every island becomes a polyline the laser will visit. Raise the speckle size until the preview is only the shapes you intend to cut. Then download.

Questions

Why are the curves polylines?

DXF consumers in laser and CNC software disagree about splines. This file flattens every curve to a polyline so LightBurn, xTool software, and most CAM importers can read it. The SVG download keeps the original curves if you need them.

What units is the DXF in?

Millimetres. The scale is 96 pixels per inch, which is 25.4/96 millimetres per pixel. A 960 pixel wide image is about 254 mm wide. Set the size again in your laser software if that is not the part size you want. Y is flipped so the image is upright.

Will Cricut Design Space open the DXF?

Do not count on it. Design Space wants SVG for this kind of artwork. Use the SVG download for Cricut. Use DXF for laser, plasma, or CNC software that asks for it.

How are holes represented?

A hole is a separate closed polyline on the same layer as the outer shape. Many laser programs treat an inner closed shape as a hole. If yours does not, select the inner path and set it as a hole, or delete it if you want a solid engrave.

Does the DXF include power or speed?

No. It has layers and geometry only. Power, speed, passes, and kerf are settings in the machine software, and they depend on the material. This file cannot know them.