UltraNC Tools

Free Online G-code Viewer & Real-Time Simulator

The internet’s first free real time G-code simulator. It plans each move the same way a real CNC controller does, using your machine’s own rapid, acceleration and jerk settings, so the estimated machining time is normally within a few seconds of the actual run on supported G-code. It runs in your browser and is completely free.

M06 Tool Change

UltraNC.comFree G-code Viewer

No file open

View

Follow tool

Display

Feed moves
Rapid moves
Color by depth
Bed grid
Origin axes
Tool
Cutting Effects
3D Stock removal
T—tool
X—
Y—
Z—
CUT DIST—
RAPID DIST—
MOVES—
ARCS—
EST RUN TIME—
UNITSmm

DRO · mm

SIMULATE TOOLPATH · 1× = REAL TIME0:00 / —

Open a G-code file

Drop a file anywhere on the window, or choose one to visualise its toolpath in 3D.

.nc  ·  .gcode  ·  .gco  ·  .g  ·  .tap  ·  .ngc  ·  .cnc
Your G-code is read and rendered in your browser; your files are never uploaded.

Done

Drop G-code file

.nc · .gcode · .tap · .ngc

Parsing toolpath…
Launch the interactive viewer →

Drag and drop a .nc, .gcode, .ngc or .tap file onto the viewer. The file is read and rendered in your browser and is never uploaded.

The UltraNC difference

Playback that moves like a real machine

UltraNC runs a full trapezoidal motion profile for every move, or a jerk-limited S-curve if you set your machine’s jerk. The tool accelerates up to the programmed feed, cruises, decelerates, and slows through corners, the same way a real CNC controller plans the move. This is the reason the estimate behaves like your actual machine. Most online viewers just jump the tool from point to point, and their “cycle time” is little more than path length ÷ feed rate.

programmed feed rate slope = accel limit decel limit ACCELERATE CRUISE DECELERATE VELOCITY TIME EASE IN STEADY EASE OUT POSITION TIME
Velocity ramps up, holds at the feed rate, then ramps down (left), so the tool’s position follows a smooth curve (right) instead of jumping instantly.

True cycle time

Enter your machine’s rapid and acceleration limits and the estimate is calculated for your machine. The result is the time you will actually wait, not a best case that assumes instant speed.

Per-axis acceleration

XY and Z rapids and accelerations are set independently, with jerk limiting if required. Every block is resolved with the same velocity planning a real CNC controller performs.

Real cornering

The tool slows through corners based on the path’s curvature (junction speed), so sharp direction changes cost time, the same as they do in the real cut.

Watch it in real time

At 1× the playback runs in real time. You can speed up to 10×, 100× or 1000× to scan a long job, then scrub to any point in the program.

missed cycle time UltraNC: real motion others: instant speed TIME →
UltraNC runs the real velocity profile, so the clock matches the machine. The dashed line is the same move timed at instant speed, which finishes early.

Try it with your own file →

If you are new to cycle time estimating, read how to estimate CNC machining time from G-code. It covers why feed rate math runs low and what actually determines the run time.

Embed it free

Put this motion simulator on your own site

The embedded viewer is the same full simulator that runs on this page, including the motion planning and the cycle time estimate. It drops into any page with one line of HTML. There is no key, no sign up and no cost.

One line of HTML

Paste a single <iframe> snippet into your blog, docs, marketplace listing or product page. That’s the entire install.

The full engine

Visitors get the complete playback and the same cycle time estimate. The embed is the full viewer, not a cut down version.

Private & self-updating

Files stay in the visitor’s browser, and the embed updates itself automatically, so there is nothing to host and nothing to maintain.

Get the embed code →

Viewer features

True 3D toolpath

Orbit, pan and zoom a real 3D view of the path. Feed moves and rapids are colour-coded, with an optional depth gradient.

Real machining time simulation

Play the program back at actual feed rates, so 1× equals real cutting time, or speed up to 10×, 100× or 1000× with the scrubber.

Private by design

Your G-code is read and rendered in your browser and your files are never uploaded. There is no account to create.

Broad format support

Reads the G-code that hobby and professional CNC systems actually produce, including linear and arc moves, I/J and R arc formats, plane selection and canned drilling cycles.

Smart defaults

If the file does not specify units or a tool size, the viewer infers inch or millimetre from the part and picks a sensible tool diameter, so the preview still makes sense.

Honest preview

If a file uses something it can't fully reproduce, it tells you, so you can trust what you see on screen.

How to view a G-code file

  1. Open the viewer above (it loads ready to accept a file).
  2. Drag & drop your G-code file onto the window, or click Load and choose it.
  3. Inspect the path: rotate the view, switch to top/front/side, toggle rapids or depth colour.
  4. Simulate the cut with the play controls to estimate run time and spot problem moves.

Supported G-code

The viewer reads common 3-axis milling, routing, laser and plasma programs, including:

  • Rapid & linear moves (G0 / G1)
  • Circular arcs (G2 / G3) with I/J or R
  • Plane selection (G17 / G18 / G19)
  • Canned drilling & boring cycles (G81 to G86, G89) with L repeats, bottom dwells & feed retracts
  • Rigid tapping (G84 / G74) with reversal time
  • Reference return (G28 / G30) to your machine’s home
  • Feed per minute & per revolution (G94 / G95)
  • Exact stop & blend tolerance (G61 / G09 / G64 P)
  • Subprograms expanded inline (M98 / M97 / o-call)
  • Dwells & tool changes on the clock (G04 / M06)
  • Inch & millimetre units (G20 / G21)
  • Absolute & incremental (G90 / G91)
  • Upper- and lower-case g-code
  • Automatic laser/plasma vs mill detection

See the complete G/M-code list →

If a feature you need is missing, suggest it on the feedback board →

Frequently asked questions

Is the G-code viewer really free?

Yes. It's a free online G-code viewer with no sign up and no limits. Open a file and view the toolpath right away.

Are my files uploaded anywhere?

No. Your G-code is read and rendered in your browser and your files are never uploaded, so your designs stay private.

What file types can I open?

Common CNC G-code extensions including .nc, .gcode, .ngc, .tap and .cnc. If a program uses features the viewer can't fully reproduce, it shows a notice.

Does it work on a phone or tablet?

Yes, the viewer is fully responsive. Touch to orbit, pinch the page to zoom text, and drag to pan the model.

How accurate is the machining time estimate?

Far more accurate than dividing path length by feed rate. UltraNC runs a full motion profile for every move, with acceleration, cruise, deceleration and corner slow downs, using either a trapezoidal profile or a jerk-limited S-curve. This is the same planning a real CNC controller performs. Set your machine's rapid, acceleration and (if required) jerk limits in the viewer and the estimate is calculated for your actual machine.

Can I embed the viewer on my own website?

Yes. It is free and takes one line of HTML, with no sign up or key required. The embed is the full viewer, including the real time playback and the cycle time estimate, and your visitors' files stay in their browser. Get the embed code.

Made for the CNC community

UltraNC builds free, no fuss tools for the CNC community, and this online G-code viewer is the first. Your G-code is read and rendered in your browser and your files are never uploaded. If you find our free software useful, you can buy us a coffee ☕.

About UltraNC