Lightweight 3-Axis CNC G-Code Simulator

February 28, 2026 ยท View on GitHub

Screenshot Suzanne

CLICK HERE TO TRY NOW!

Origins

This simulator was part of JSCut discontinued CAM package which was developed since 2014 by Todd Fleming.

During 2024-09 it was isolated and modified to be useful in offline/standalone context by Tomas Mudrunka.

Similar project used to be available since 2016-05 at www.cncwebtools.com/Apps/GCode_Simulator/index.html but features were limited and the website is defunct since 2020-08.

Features

  • Load g-code from file
  • Pass settings and G-Code via URL
  • Support for arcs (G02, G03, XY plane only, IJ reccomended, R experimental)
  • Animation
  • Works offline (no webserver needed, copy at archive.org wayback machine also works)
  • V-Carving
  • Visualize origin point
  • Show current coordinates
  • Mouse wheel zooming
  • Non-square viewport supported
  • Limited number of dependencies (jQuery and Bootstrap are no longer needed)

TODO

  • Weird V-Bit behaviour when Surface Z > 0 (perhaps we should just transpose Z when parsing g-code, and fix origin crosshair...)
  • Responsive layout to work better on small screens and mobile devices
  • Shaded milling bit
  • Support for mm/inch (bit settings and G21, G20)
  • Support for ball nose and radiused milling bits
  • Tool library and toolchanges (eg. T1 M6)

See also