Free G-code Viewer Online
Drop a G-code file here
Choose a G-code file.gcode, .nc, .ngc, .tap up to 50 MB · read in your browser, never uploaded
No G-code at hand?
Drop a G-code file into the viewer to see its toolpath from above: the cutting moves, the travel moves and, for a laser, how strong each line burns. The panel gives the size of the job, the cutting distance and the time at the programmed feed rates. Your file is read by your browser and never uploaded.
- Draws G0, G1, G2 and G3 moves, absolute or relative, in millimeters or inches
- Shades laser lines by power (S) and shows the travel moves dashed
- No signup and no install, and your file never leaves your browser
What the G-code viewer shows
The toolpath
Cutting moves in blue, travel moves dashed, and a cross on the file origin (X0 Y0), so you can see where the job sits on the bed.
Laser power
When the power (S) changes in the file, lines that burn stronger are drawn darker, with the lowest and highest S in the legend.
Size of the job
The width and height of the cut, in the file units (G20 or G21), with millimeters next to inches.
Distance and time
The cutting and travel distances, and the time the cuts take at the programmed feed rates.
What was skipped
Commands read but not drawn, such as a dwell (G4), a homing move (G28) or a tool change (M6), are listed by code.
How to view a G-code file online
- 1
Drop your G-code
Drag the .gcode, .nc or .tap file onto the viewer at the top of this page, or click the viewer to choose the file.
- 2
Move around the toolpath
Drag to move. Zoom with the mouse wheel, a pinch or the plus and minus buttons; the fit button shows the whole job again.
- 3
Read the panel
Under the toolpath: the units, the size of the cut, the cutting and travel distances, the time at the programmed feed and the skipped commands.
What the viewer does not show
- A view from above: depths (Z) are not drawn, and arcs outside the XY plane (G18, G19) are drawn as straight lines.
- The time counts the cutting moves at their programmed feed rates: travel moves and acceleration make the real job longer.
- Macros, variables, loops, subprograms and tool radius compensation (G41, G42) are not run.
- Up to 50 MB and 3,000,000 points per file, so the browser keeps up.
Need G-code from a picture?
Turn a PNG or JPG of a logo or a drawing into G-code for a laser engraver or a CNC router. The picture is traced into shapes, and the preview shows the result with a watermark.
- G-code in millimeters and absolute coordinates (G21, G90)
- The laser turns on with its power (M3 S) for each shape and off (M5) between shapes
- After the preview, a material setting picks the speed and power, from plywood and acrylic to leather, or a CNC engraving depth
Compatible with GRBL, LightBurn, LaserGRBL, UGS and Candle.
Upload your image to convert to G-code
Drag & drop or click — PNG, JPG, WebP up to 25MB
One free preview a day, no signup, with a watermark. Just this G-code file · $6.99 · No subscription, pay once. Any plan, from $7.99/mo: GCODE + DXF + SVG + PNG in one ZIP.
G-code viewer FAQ
How do I view a G-code file online?
Drop it into the viewer at the top of this page, or click the viewer to choose it. The toolpath appears on the page: drag to move, zoom with the mouse wheel or a pinch, and read the size, distances and time under it.
Is this G-code viewer free?
Yes. Viewing G-code here is free, with no signup, and the file never leaves your browser. The converter lower on this page, which makes G-code from a picture, gives one free preview a day; its files are paid.
Is my G-code uploaded?
No. Your browser reads the file and draws it on the page; it is not sent to VectoSolve. Close the tab and it is gone.
Which G-code does it read?
The moves most laser and CNC files use: G0, G1, G2 and G3, absolute or relative (G90, G91), millimeters or inches (G21, G20), G92 offsets, feed rates (F), power or spindle speed (S), and the tool on or off (M3, M4, M5, M106, M107). Files written for GRBL machines and by most CAM programs open.
Why do I only see dashed lines?
Dashed lines are travel moves. A move is drawn as a cut when the tool is on (M3 or M4) and its power S is above 0. If your file never turns the tool on, or every S is 0, the panel says so: check the laser settings in the program that wrote it.
Can it show the laser power?
Yes. When the power S changes along the file, stronger lines are drawn darker, and the legend gives the lowest and highest S. That shows engraved and cut areas apart before the job runs.
How long will my job take?
The panel gives the time of the cutting moves at their programmed feed rates. The real job takes longer: travel moves, acceleration and the machine settings add to it.
Does it show the depth of a CNC job?
No. It is a view from above: every move is drawn flat, whatever its Z. The outline of each pass still shows where the tool goes.
How do I make G-code from a JPG or PNG?
Drop the picture into the converter lower on this page and press Convert to G-code. The preview shows the traced shapes with a watermark, and Download G-code File opens the payment options for the clean file.
More: DXF viewer, image to G-code converter, SVG for laser cutting and all VectoSolve tools.
