Free G-code viewer · works on Mac, Windows, phones

G-code viewer online: read G-code as a picture, one line at a time

Open any G-code file and see each line become a move: the listing scrolls with the tool, the current line lights up on the 3D toolpath, and you can tap a line to see exactly what it does. Arcs, units and feeds are checked as you go.

G-code viewer

More NC and G-code tools

About this viewer

What a G-code viewer shows

G-code is the language most CNC machines speak: G0 moves fast, G1 cuts in a straight line, G2 and G3 cut arcs, X, Y and Z are the target, F the feed. A G-code viewer turns those lines into the path the tool follows, so you can see the shape and understand each line in context, instead of picturing coordinates in your head.

Who it's for

Anyone learning or debugging G-code: apprentices and students, CNC router and mill hobbyists using Grbl, Mach3 or LinuxCNC, people writing G-code by hand or with scripts, and programmers checking what a post-processor did to one tricky line.

In short

Line by line
Listing and toolpath linked both ways: tap a line or a point of the path
Understands
G0-G3, G17/18/19, G20/21, G90/91, G90.1/91.1, G4, G28/G53, G41/42, G43, G54-59, G81-89, G92-95, M3-M9, M6, M98/M99
Checks
Arc end points on the circle, R arcs too short, missing feeds, missing units, unknown words
Downloads
PNG, plan-view SVG at 1:1, summary JSON

How to use it

  1. Open the file

    Drop a .gcode, .nc, .ngc or .tap file, pick it, or paste a link. Nothing is uploaded.

  2. Step through it

    Use the ◀ ▶ buttons or the arrow keys to go one line at a time; the line is shown above the slider and highlighted in orange on the path. Press play to run it at a speed that fits about 30 seconds.

  3. Find the problem lines

    Warnings name each issue in plain words with a line number: tap it to jump there. The listing marks those lines in yellow or red.

Good to know

G-code is modal: a G1 or G2 stays active until another motion code replaces it, so a line with only X and Y continues the last motion. If a G2 is still active when the next line has no centre, a real control stops; the viewer flags it as an arc without a centre and draws it straight. A G-code file without G20 or G21 is read as millimetres, with a switch to inches.

What this tool doesn't do

  • Doesn't evaluate macro variables (#100) or expressions in brackets
  • Doesn't draw polar coordinates (G16), rotation (G68) or scaling (G51) yet: they are listed
  • Doesn't edit G-code (open it in a text editor for that)

What happens to your file

Opens in your browser; your file stays on your device unless you share it. Shared files are kept 30 days.

Opens in your browser; your file stays on your device unless you share it. Shared files are kept 30 days.

  • Opened on your device

    The viewer is a program that runs inside this web page. Your NC program goes from your disk into it, and nowhere else.

  • Nothing kept

    Close the tab and it's gone. We have no copy, so there's nothing to delete.

  • Works with files by link

    Paste a public link and your browser downloads the file straight from where it's stored.

The details: NC viewer

Questions

What's the difference between G2 and G3?

G2 cuts an arc clockwise, G3 counter-clockwise, looking down on the plane (from +Z in G17). The centre is given by I, J, K (by default as an offset from the start point) or the radius by R (negative R for arcs over 180°). The viewer draws both forms and checks that the end point lies on the circle.

Why does my G-code look tiny or huge?

Usually units: G20 means inches, G21 millimetres. If the file has neither, the viewer reads millimetres and offers inches with one tap. Old Fanuc controls also read numbers without a decimal point as thousandths (X10 = 0.010 mm); CAM software always writes the point, so this rarely matters.