SVG to G-code for pen plotters

Bring a vector drawing into the studio and trace the actual pen path on a millimetre-scale bed.

Open studio
Parallel strokes from the studio terrain sample
Parallel strokes from the studio terrain sample

Prepare vectors at the size you want to draw

Start with an SVG up to 5 MB. Simple paths and basic geometric shapes transfer well. The studio reads a viewBox and transforms, flattens curves into straight segments, and shows the drawing in millimetres. The top of your design points toward the back of the bed. Use a distinct corner or an asymmetric letter to check orientation. A circle alone makes an easy size test but will look identical after a mirror or a quarter turn.

Convert lettering before importing

In Inkscape, keep a copy of the editable design. Select the lettering you want to plot, choose Path → Object to Path, and save the copy as plain SVG. This produces the outlines of the letters. For a greeting drawn with a single pen stroke down the middle of each letter, select a Hershey font in the studio instead. Embedded photographs, live SVG text, masks and filters need separate preparation. Read the list of ignored items after importing and compare the remaining paths with your original artwork.

Read the motion between strokes

A pen plot has two different XY movements. The first writes while the pen touches paper. The second repositions a raised pen so a new line can start without leaving a connecting mark. The planner can reverse an open path and reorder disconnected strokes to reduce empty travel. The preview uses these final paths. Follow the playhead through letters with gaps or closely spaced strokes to see where each lift occurs. For parallel hatching, use a closed boundary and adjust spacing for your pen width. A tightly spaced fill introduces more pen travel and changes the estimated duration.

Check the edges and run the calibration pattern

Choose the paper and printer before resizing the art. The page can physically extend beyond the bed, and an offset holder may lose reach along another edge. The working rectangle combines those limits and your margin. Center the artwork or fit it into that rectangle, then inspect any clipped segment before exporting. Begin a hardware trial with a spring-loaded holder and a supervised dry run. The calibration pattern includes a 50 mm square, a cross for placement and an F that reveals orientation. Save your original SVG separately from the working project kept by this browser.

Frequently asked questions

Which SVG elements can I bring in?

The importer handles paths, lines, polylines, polygons, rectangles, circles and ellipses, with transforms and a viewBox. Convert live lettering to paths first.

How do pen-up and pen-down moves work?

The toolhead travels to each stroke at Z-Up. It lowers to your measured Z-Down to draw, then rises before moving to the next disconnected stroke.

Can I fill a shape?

Parallel hatching adds pen strokes across a closed shape. Preview the angle and spacing to judge whether the result suits the nib and paper.

Why does the preview mark part of my drawing in red?

That part extends beyond the drawable region. Reposition the paper, scale the artwork or revisit the measured pen offset.

Can I enter a custom bed?

Generic Marlin and Generic Klipper profiles let you specify bed dimensions and nozzle travel limits. Check the commands supported by your installed firmware.