SVG and DXF to G-code
Drop an SVG or DXF and get G-code for LaserGRBL and other GRBL lasers. Your file is checked and fixed first, and it keeps the size it was saved at.
Drop an SVG or DXF here
A JPG or PNG works too: it is traced first.
No file handy? Try one:
How it works
Add your file
An SVG from Inkscape, Illustrator or Canva, or a DXF from your CAD program. It is repaired when it opens, and the checklist shows every fix and anything left out, such as text that is not yet a path.
LaserGRBL is picked for you
You get G-code for LaserGRBL. To get the repaired file as a DXF instead, pick LightBurn, Carbide Create or Silhouette Studio.
Keep the size or change it
Your file’s own size is used. Type a new width or height if you need one.
Check the repair, set the laser, download
The cut preview shows the repaired lines. Choose cut or engrave, then set the power, your machine’s maximum power value ($30) and the speed.
What gets fixed before the G-code is written
You can turn this off with Fix the file in step 4.
- Loose lines that meet are joined into closed shapes.
- Gaps of up to 0.5 mm are closed.
- Lines drawn twice are removed, so nothing is cut twice.
- Specks and white page backgrounds are left out.
- Overlapping shapes of the same color are merged into one outline.
- Hidden shapes, pictures, dimensions and shapes outside the visible area are left out, and the checklist says so.
Questions
Will the G-code keep the size of my SVG?
Yes. An SVG sized in millimeters, centimeters, inches or points keeps that size. An SVG sized in pixels is read at 96 pixels per inch, the way browsers and Inkscape read it, or at 72 for files from Illustrator, and the checklist tells you so you can check the width.
Which DXF files can it read?
ASCII DXF files with lines, polylines, circles, arcs, ellipses, splines, hatch boundaries and blocks. A DXF with no unit is read in millimeters. Binary DXF and DWG files cannot be opened: save them again as an ASCII DXF, R12 or 2000.
Why is my text missing?
Text is a font, not a shape, so it cannot be cut. Turn the text into paths in your design program (in Inkscape: Path > Object to Path), then add the file again.
Can I convert an SVG to DXF here?
Yes. In Tracejig, pick a program that reads DXF, such as LightBurn, Carbide Create or Silhouette Studio, and download the DXF. The same fixes are made.
What happens to open lines?
Lines that do not close are cut as lines, and gaps of up to 0.5 mm are closed first. For engraving, an open line has no area to fill, so it is left out and the checklist says how many.
More converters
- Image to DXF
JPG, PNG or photo to a DXF or SVG at the size you type.
- Image to G-code
A picture to laser G-code for LaserGRBL and other GRBL lasers.