Free calculator
Online G-Code Viewer and Simulator — Backplot Your CNC Program
Paste a program or open an .nc / .tap / .gcode file. The viewer plots G00 rapids, G01 feeds and G02/G03 arcs, animates the cut, and reports estimated run time and extents. Everything runs locally in your browser.
Est. run time–
Feed distance–mm
Rapid distance–mm
Blocks / moves–
Rapid (G00) Feed (G01) Arc (G02/G03) Drill cycle
How it works
Paste a program or open an .nc / .tap / .gcode file. The viewer plots G00 rapids, G01 feeds and G02/G03 arcs, animates the cut, and reports estimated run time and extents. Everything runs locally in your browser.
Time ≈ Σ(feed distance ÷ F) + Σ(rapid distance ÷ rapid rate). Acceleration is ignored, so real time is usually somewhat longer.
Embed this calculator on your site
Free for workshops, schools and forums — copy this snippet:
<iframe src="https://cnccode.com/embed/gcode-viewer/" width="100%" height="720" style="border:0" loading="lazy" title="G-Code Viewer & Simulator"></iframe>More CNC calculators
- Feeds & Speeds Calculator
- Drilling Speed & Feed Calculator
- Surface Finish Calculator
- Thread & Tap Drill Calculator
- Bolt Circle Calculator
- Chip Thinning Calculator
- Machining Cost & Cycle Time Calculator
- Inch / mm / Fraction Converter
- Lathe Turning Calculator
- ISO Fit & Tolerance Calculator
- Thread Milling Calculator
- Chamfer & Countersink Calculator
- Right Triangle (Trig) Calculator
- Material Weight Calculator
- Taper Calculator
Frequently asked questions
Is my G-code uploaded anywhere?
No. The file is read and plotted entirely in your browser; nothing is sent to a server.
Which codes are supported?
G00/G01/G02/G03 with I/J/K or R, G17/G18/G19, G20/G21, G90/G91 and canned drilling cycles G81–G83 (shown as points). Macros and subprograms are not expanded.