SVG to G-code Converter
Convert SVG paths and shapes to CNC or laser G-code locally.
Drop your SVG here, or choose a file
Your file never leaves your device · No signup · No daily limit
Up to 5 MB per file
Convert SVG paths and shapes to CNC or laser G-code locally.
Drop your SVG here, or choose a file
Your file never leaves your device · No signup · No daily limit
Up to 5 MB per file
Last updated:
Four SVG files with known sizes went through this page with the default GRBL laser profile on 22 Nov 2026, and each G-code file was checked in a G-code simulator.
| Test file | Size in the file | Result |
|---|---|---|
| Inkscape document | 80 mm wide | Final width box set to 80 mm; the 76 mm frame is cut 76 mm wide |
| Shape in a 4 inch document | 3.75 in | Cut 95.25 mm wide, exactly 3.75 in |
| Square moved by translate(50,10) scale(2) | x 50 to 70 of 100 | Cut at x 50 to 70 mm, where the file puts it |
| Flag of Turkey (Wikimedia Commons) | 1200 with no unit | Final width box at 100 mm; cut area 100 × 66.7 mm |
In all four files the laser was off on every travel move (no G0 with the laser on), and each file ended with M5 and M2. Where it falls short: the Inkscape frame has rounded corners and they were cut square; its unconverted text was skipped with a warning; and the flag's filled areas came out as outlines only. Convert text to paths before you export.
Not for straightforward jobs: this maps SVG paths directly to GRBL G-code with your speed and power settings, which covers most laser and plotter work.
Choose the pen-plotter profile and set laser power to zero; the toolpath then uses pen-up/pen-down moves instead of laser power.
No, the conversion runs locally in your browser.
No. Drop the SVG, pick a GRBL laser or pen plotter profile and download the G-code in your browser; there is no plugin to install.
Every file starts with G21 (millimetres), G90 (absolute positions) and G94 (feed in mm per minute). On the GRBL laser profile the laser is off (M5) before every travel move, each cut switches on dynamic power with M4 and an S value from 0 to 1000 (450 by default), and arcs and circles are written as G2/G3 rather than many short lines. The pen-plotter profile lowers the pen with M300 S30 and lifts it with M300 S50.
The report under the preview says how many cut paths are open, so you can close them before the job. Open paths are fine for plotting, scoring or engraving; for cutting a part out they usually are not. Paths drawn in red, blue and green are mapped to cut, score and engrave.
Yes, it is written for GRBL boards and the senders that drive them, such as LaserGRBL or Universal Gcode Sender. Other controller families speak related but not identical dialects, so preview the toolpath and check your controller's documentation first.
Use GRBL 1.1f or later with laser mode on ($32=1). The file switches the laser on with M4 dynamic power, so the power drops by itself when the head slows down in corners. Check that the controller's maximum power ($30) matches the 0 to 1000 scale used here, and set the work origin where the job should start. Moves between cuts use G0 at the machine's own rapid speed. Then test on scrap material first.