G-code Viewer
Inspect G-code toolpaths locally in your browser. Visualize extrusion and travel moves, analyze statistics, and diagnose issues.
File
Drop .gcode file
Display
Statistics
Diagnostics
3D toolpath preview
Upload a model to see its 3D preview
☝ Tap to interactEnable 3D rotation, zoom and pan
3D PreviewDrag: rotateScroll: zoomRight-drag: pan
Toolpath previewScroll to zoom · Drag to pan
Source G-code
No file loaded.
How to use it
About G-code Viewer: The viewer parses your program locally and draws extrusion and travel moves so you can inspect the toolpath before running it.
- Prepare your file. Export a .gcode, .g, .gc or .txt file from your slicer or CAM app. The viewer reads text G-code; compressed binary programs are not supported. Accepted inputs: G-code.
- Load the file.Drop a G-code file onto the upload area or click it to browse. The file name, parsed move count and any diagnostics appear beside the dropzone.
- Inspect the toolpath.Scroll to zoom and drag to pan the preview. Toggle extrusion and travel moves, or switch fromAll layersto a single layer to inspect one slice at a time. UseFitto recentre the view.
- Read the statistics.The panel reports movement, extrusion and travel counts, layer count, extrusion distance and the X/Y/Z bounds. Diagnostics list commands the parser could not classify.
- Check the source and work safely.ExpandSource G-codeto review the parsed text. Use the preview to verify bounds and travel moves before sending the program to a machine; dry-run above the material and never leave the machine unattended.
Please note: Files over 25 MB are rejected. Commands the parser does not recognize appear in the diagnostics panel instead of being drawn.
Frequently asked questions
- Is G-code Viewer free to use?
- Yes. G-code Viewer is free, needs no account and runs entirely in your browser.
- Are my files uploaded when I use G-code Viewer?
- No. G-code Viewer processes files locally in your browser; nothing is uploaded to a server.
- What can I do with the output from G-code Viewer?
- Download the Preview result and check it before using it with your printer, router or laser.