CutViewer Documentation

CutViewer is a browser-based G-code visualization tool designed for CNC operators, programmers, and hobbyists.

Getting Started

1. Launch the App

Click the "Launch Viewer" button or navigate to /app/

2. Load G-code

Drag and drop your .nc or .gcode file onto the viewer, or click to browse.

3. Navigate

Use mouse to rotate/zoom the 3D view. Click line numbers to jump to specific code.

4. Analyze

Review toolpaths, check coordinates, and validate your G-code before running.

Supported G-codes

CutViewer draws 3-axis milling and routing programs: rapids, feeds, arcs (I/J/K or R, any plane, helical) and drilling, boring and tapping cycles (G73, G74, G76, G81–G89), with G98/G99, repeats and incremental mode. It reads units, distance modes, feed modes (G93/G94/G95), work offsets, cutter compensation, tool changes, spindle and coolant codes.

Rotary axes, lathe programs, subprograms and macros aren't supported yet.

See the full list of supported G-codes and M-codes →

Keyboard Shortcuts

Space Play / pause
← / → Previous / next line of code
Shift + ← / → Previous / next tool change, rapid, dwell or problem (pick which in the playback bar)
↑ / ↓ Move through lines (in the editor)
T Show / hide the tool
F Fit the toolpath to the window
Ctrl + O Open a file
Ctrl + S Save the G-code, including edits