G-code viewer

Open a G-code file to plot its toolpath, extrusion moves in blue, travel moves in orange, and read the print statistics.

Drop a file here or click to choose

The file is opened locally in your browser and is never uploaded.

No file loaded yet. Drag to rotate, scroll to zoom.

About this tool

This viewer parses G0 and G1 linear moves, tracking X, Y, Z and E through absolute and relative modes (G90/G91, M82/M83 and G92 resets). G2 and G3 arc moves are treated as line segments to their endpoints, so arcs appear as chords rather than curves. Segments where E increases while the head moves are drawn as extrusion; other moves are drawn as travel and can be hidden with the toggle. Statistics include total move counts, the extrusion path length, total filament extruded as the sum of positive E deltas, the bounding box of the extrusion moves, and a layer count based on distinct Z heights at which extrusion happens. Files from printers, CNC mills and laser cutters all use dialects of G-code, so figures are an inspection aid rather than a slicer-grade simulation.

Common questions

Why do arcs look like straight lines? G2 and G3 arc moves are simplified to a straight segment from the start point to the arc endpoint. That keeps the viewer fast and the overall toolpath shape correct, but individual arcs appear as chords.

How is the layer count worked out? The viewer counts the distinct Z heights at which extrusion moves occur. Z-hop moves can add extra heights, so treat the figure as a close estimate rather than an exact slicer layer count.

Can I check a file without showing travel moves? Yes. Clear the Show travel moves checkbox and only extrusion segments are drawn, which makes the printed shape much easier to read.

Private by design: Files are opened locally in your browser and never uploaded, stored, or tracked. Everything on this page runs entirely on your device.