PNG/JPG to DXF: Complete Laser Cutter Workflow Guide
Convert any image to a clean DXF file ready for laser cutting. Compatible with LightBurn, RDWorks, T2Laser, Glowforge, xTool, and Snapmaker.

Founder of VectoSolve
Self-taught developer, founder and sole developer of VectoSolve since 2024. He builds the conversion engine and the cutting, embroidery and 3D printing exports.
How this article was made: drafted with AI assistance, then edited and fact-checked before publication. About the author
Try it on your own file, in Laser mode
Free preview, no signup. Drop an image and see the vector before deciding anything.
DXF is the file format every serious laser cutter understands. Unlike SVG, which started as a web format and got adapted for fabrication, DXF was designed for CAD and CNC from day one. Your laser software almost certainly handles DXF natively, with full support for layers, line types, and units.
The catch: DXF doesn't accept raster data. You can't put a PNG into DXF. So if your starting point is an image (a photo of a logo, a downloaded design, a sketch), you need to vectorize it first, then export as DXF.
This guide walks through the full workflow, the most common gotchas, and what to look for in the DXF output.
For the full tool landscape, our best JPG to DXF converters comparison covers every option from free to pro, with verified 2026 prices.
Why DXF and not SVG?
Both work for laser cutting, but DXF has three advantages for fabrication:
1. Reliable units. DXF stores explicit units (mm or inches). SVG technically supports units but most SVG files use unitless pixel coordinates that can be interpreted differently by each software. With DXF you import and your design is the right physical size, period.
2. Better layer handling. DXF layers are first-class citizens. Each layer can have its own color, line type, and the laser software treats each as a separate cutting operation. SVG technically supports groups and colors but the support varies.
3. Native to CAD/CAM. If you're going to need 3D-printed jigs or CNC routing alongside laser cuts, your team probably already has a Fusion 360 / SolidWorks / FreeCAD pipeline that speaks DXF natively. SVG would be a translation step.
That said: many laser tools (Glowforge, xTool, LightBurn) handle SVG just as well. If you only do laser, SVG is fine. If you do mixed fabrication, DXF wins.
The conversion path: image → SVG → DXF
DXF can't be generated directly from a raster image. The conversion happens in two stages:
PNG/JPG → vectorize → SVG → export → DXF
You can do this in one tool (VectoSolve's converter outputs both SVG and DXF in the same download) or split it across tools (vectorize in Inkscape, then File → Save As → DXF).
The single-tool path is faster but make sure the tool actually exports DXF properly. Many cheap converters output a "DXF" that's just an SVG with a renamed extension — your laser software will reject it.
Step-by-step workflow
Step 1: prepare your source image
Quality of your input directly determines quality of the DXF. Aim for:
- Resolution: at least 1000px on the long side
- Contrast: high — black/white or strong colors
- Background: removed if possible (white background = ok, busy background = problems)
- No JPEG compression artifacts if you can avoid them
If your image has artifacts or low contrast, either:
- Re-shoot it cleaner
- Use a background removal tool first (VectoSolve has one built-in)
- Threshold it manually in Photoshop/GIMP to pure black/white
Step 2: vectorize cleanly
The vectorization step is where most quality issues come from. Three options:
AI vectorizers (recommended for speed) — Tools like VectoSolve's image-to-DXF converter handle photos and logos in 5-10 seconds with paths optimized for fabrication. Output is laser-clean by default.
Inkscape's Trace Bitmap — Free, but produces 5-10x more nodes than necessary. You'll want to run "Path → Simplify" multiple times after tracing.
Manual tracing — Best quality if you have the time. Use the Pen tool to redraw the design from scratch.
For DXF specifically, the key quality criteria are:
- Closed paths (DXF distinguishes between open paths/lines and closed shapes — your laser software does too)
- No self-intersections (a path crossing itself confuses both DXF parsers and laser cutters)
- Reasonable node density (one node per 2-5mm of curve is enough — more is wasted)
Step 3: separate cut and engrave layers
DXF layers are how you tell the laser software which lines to cut versus which to engrave. The convention varies by tool:
| Software | Layer convention |
|---|---|
| LightBurn | Color-based: red = cut layer 1, green = cut layer 2, etc. |
| RDWorks | Layer name or color |
| Glowforge web | Color-based: black = cut, red = score, blue = engrave |
| xTool XCS | Per-element selection after import (no layer enforcement) |
If you're using VectoSolve's DXF export, the laser preset puts cut paths on a single black layer by default. You can re-color in Inkscape if you need cut + engrave separation:
- Open the DXF in Inkscape
- Select the paths to engrave
- Change their stroke color to red (or whatever your software expects)
- Export back as DXF (File → Save As → DXF R12)
Step 4: import to your laser software and verify
Before you cut, always check:
Size is correct. DXF stores units, but conversion from SVG can sometimes drop them. Measure a known dimension in your laser software — it should match your design.
No duplicate paths. Some converters produce overlapping paths from a single source line. In LightBurn: Tools → Find Duplicates and remove. The laser will cut a duplicate twice = burn marks.
Path direction is consistent. For some software (especially CNC), path direction matters. LightBurn auto-corrects; LaserGRBL doesn't.
All paths are closed if needed. If you want filled engraving, the paths need to be closed loops. Open paths produce outline-only engraving.
Step 5: dial in power and speed
This is material-specific and laser-specific, but the general rules:
| Operation | Power | Speed | Passes |
|---|---|---|---|
| Vector cut (3mm wood, 40W diode) | 100% | 250 mm/min | 1-2 |
| Vector cut (3mm acrylic, 40W diode) | 100% | 200 mm/min | 2-3 |
| Score (visible line, no through-cut) | 30-50% | 1500-3000 mm/min | 1 |
| Engrave (filled area) | 20-30% | 3000+ mm/min | 1 |
For CO2 lasers (Glowforge 40W, OMTech 60W+), divide power and double speed.
Always test on scrap before final cut. Material quality, focus, and air assist all affect the result.
A Full Year of Conversions for $49
Starter Annual: 25 conversions every month, $49 for the whole year. That is about $4.08 a month · Cancel anytime
Get the Annual DealCommon gotchas
1. Inkscape's "Save As DXF" produces broken files for some lasers. Use a dedicated DXF exporter (VectoSolve, QCAD, LibreCAD) if Inkscape's output doesn't open in your laser software.
2. DXF version compatibility. Your laser software probably wants AutoCAD R12 format. Some old versions of Inkscape export R14 or 2000. If you get parse errors, check the DXF version setting.
3. Stroke widths get ignored. Like SVG, DXF only cares about path centerlines, not stroke width. Don't try to control cut width via stroke width — it doesn't work.
4. Text isn't text in DXF. Text in your source image will be converted to outlined paths (good for laser). But if you wanted editable text in CAD later, you'd need to re-create it natively.
When to use VectoSolve
The VectoSolve image-to-DXF converter is built for the common case: you have an image, you need a DXF, and you want it ready for your laser software in 10 seconds without manual cleanup.
The laser preset specifically:
- Uses single-stroke paths (no overlapping lines)
- Closes paths where possible
- Limits node density to ~1 per 2-3mm of curve
- Outputs both SVG and DXF in one ZIP
If you need cut + engrave layer separation, color the paths in Inkscape after download (5 minutes for a typical design) and re-export.
TL;DR
- Start with a clean, high-contrast PNG or JPG
- Convert to SVG/DXF with VectoSolve (5-10 sec) or Inkscape Trace Bitmap (manual cleanup needed)
- If needed, color paths for cut vs engrave separation
- Import to your laser software (LightBurn, RDWorks, Glowforge, XCS)
- Verify size, check for duplicates
- Test on scrap material first
- Cut your real material
The preview is free on VectoSolve, no signup, and the DXF download is included from the $7.99 Starter plan. Try it on your hardest design and see if the DXF cuts cleanly first time.
Related: