🖊️

SVG to G-code Converter

Convert SVG files to G-code for pen plotters and 3D printers. Handles paths, shapes, and groups. 100% in-browser — no upload.

Pen plotter mode: Generates pen up/down G-code. Set your bed size, speeds, and pen commands, then click Generate.
📐
Drop SVG here or click to browse
.svg files only
Machine Type
Physical Bed Size
220 × 220 mm
Design Canvas — actual print/draw size (resize to scale G-code)
Pen Commands
Pen Offset (Calibration)
When to use: Fine-tune pen position relative to nozzle. Z offset adds to the Z value in Pen Down/Up commands — use it when drawing on raised surfaces (wood, foam, cardboard) or for Z calibration. Example: material is 10mm thick → set Z offset to +10.
Flip Y Axis
SVG Y is top-down; plotters vary — enable if drawing is upside-down
Fit to Canvas
Scale drawing to fill the canvas size; disable to use original SVG dimensions (1 px = 1 mm)
Return to Origin
Add G0 X0 Y0 at the end to home the plotter
Print Origin — where on bed to place the design
Bottom Left — design placed at home (0,0), default for all 3D printers
—
Paths
—
Draw Dist
—
G-code Lines
—
Est. Time