Skip to main content
Vecaria

G-code to SVG Converter

Local

Convert G-code to SVG in your browser — free, no upload, no sign-up. Cutting paths render solid, rapid moves dashed, and the preview matches the download.

Sample data loaded — click "Convert to SVG" to try it.

What is it? G-code to SVG renders G-code toolpaths as SVG vectors, with rapid moves drawn dashed so travel and cutting paths are easy to distinguish. Solid strokes mark cutting moves, dashed strokes mark rapids, and the inline preview is identical to the downloaded file.

TL;DR: Convert G-code toolpaths to SVG in your browser — free, no upload, with rapids shown dashed.

How to use

  1. Paste your G-code program into the input box (a sample is pre-filled) — or choose/drop a .gcode/.nc/.tap program file.
  2. Click "Convert to SVG".
  3. The SVG renders inline (identical to the download) — then copy the source or download toolpath.svg.
  4. Open toolpath.svg in any browser, Inkscape or Illustrator to check the path layout before archiving or sharing.

FAQ

Are rapids included?

Yes — rapid moves (G0) are shown as dashed lines; you can hide them or change the stroke width in the options.

Is it local?

Yes, rendering is local.

Does it show Z depth?

No — the SVG is a 2D projection onto X/Y, so Z heights are not visualized. Arcs are drawn between their endpoints.

Does it handle G91 relative or G20 inch programs?

Yes — G91 deltas accumulate incrementally, G20 inch values convert at 1 in = 25.4 mm, and lines without a G word continue the previous motion mode.

Why convert G-code to SVG?

An SVG toolpath drawing is the easiest way to archive, email, print or review a program without CAM software — cutting moves render solid and rapids dashed so the path reads at a glance. Many shops attach it to the job sheet for documentation and quoting.

Does it work for 3D-printing G-code?

It renders, but as a 2D projection onto X/Y — Z heights are ignored, so a printed part shows as its flat footprint outline. Use it to check the footprint and travel layout, not to inspect layer heights.

Can I feed the SVG back into a laser or plotter?

You can, with care. The SVG is a 2D projection and G2/G3 arcs are drawn between their endpoints, so treat it as a review and tracing aid rather than a certified cutting path — re-generate G-code in CAM if the path will drive a machine.

Is it free, and do I need an account?

No account is needed — the tool runs locally in your browser with a free daily allowance, and your G-code never leaves your device.

Examples

  • Paste G-code → get the toolpath as SVG
  • G-code program → toolpath.svg attached to the job sheet

Supported formats

G-codeSVG

Limitations

  • 2D projection only (X/Y); Z heights are not visualized.
  • G2/G3 arcs are approximated by their endpoints.
  • Parsed modally: G91 relative moves accumulate incrementally, G20 inch programs convert at 1 in = 25.4 mm, and lines without an explicit G0–G3 word continue the previous motion mode; tool compensation and macros are not parsed.
  • Runs locally in your browser, nothing is uploaded.

Privacy

Privacy first: this tool runs entirely in your browser — your input and files never leave your device, and everything is cleared when you close the page.