Is my G-code file uploaded to a server?
No. Your G-code file is processed directly in your browser. The file is not uploaded to a conversion server. Reading, parsing and drawing all happen on your device.
Which file types can I open?
The picker suggests .gcode, .gco, .gc, .g, .nc, .tap, .cnc, .ngc and .txt. Extensions are only hints: the viewer checks that the file contains recognizable G-code motion commands, whatever it is called.
How to open G-code files
Can I open .nc files?
Yes. .nc is a common extension for CNC programs, and the viewer opens it like any other plain-text G-code file, drawing rapids, feed moves and arcs. Note that .nc is also used for NetCDF scientific data. That is a different, binary format, and this viewer cannot read it.
NC file viewer
Does it work for both 3D printing and CNC files?
Yes, through two inspection profiles. The viewer picks one from clues in the file (extrusion values, heater commands, spindle commands, tool changes) and you can switch it manually. The profile changes how moves are labeled and coloured; it never alters your file.
Which slicers does it work with?
Any slicer or CAM program that exports plain-text G-code. For 3D printing it reads the layer comments written by slicers such as Cura, PrusaSlicer, Orca Slicer and Bambu Studio, and falls back to the Z height of extruding moves when comments are absent.
Is a G-code viewer the same as a G-code reader or visualizer?
In practice, yes. Tools like this are also called a G-code reader, visualizer, previewer, plotter or backplot. They all read the file and draw the path it describes. ViewGcode adds playback, layer controls and a linked source list, but it does not edit your file or simulate the machine.
Can I open .bgcode or .gcode.3mf files?
Not directly. Those are binary or packaged formats, and the viewer reads plain-text G-code. In your slicer, export a standard .gcode file instead.
Why a file will not load
Is this a G-code simulator?
It simulates the toolpath, not the machine. You can play the path back move by move in 2D or 3D at a speed you choose, and step through layers or single moves. It does not simulate material removal, machine limits, collisions, tool offsets or timing, so use your CAM or controller simulation for those.
G-code simulator online
Can it check my G-code for errors?
It is a visual check, not a validator. Looking at the toolpath and its bounds can reveal a wrong unit, a path outside your stock or build volume, or an unexpected rapid, and the parser notes list any commands the viewer skipped. It does not check a file against a specific machine, controller or slicer.
Are the statistics exact?
They are calculated from the commands the viewer understood. Toolpath bounds describe where the tool moves, not necessarily the size of the finished part. The viewer does not estimate print time, machining time or material use.
Why is some of my toolpath missing?
Commands the viewer cannot interpret reliably (for example canned drilling cycles, splines or parameter expressions) are skipped and listed in the warnings panel. The viewer does not guess their geometry.
Troubleshooting guide
Can I edit the G-code or send it to my machine?
No. This is a viewer, not a G-code editor. You can search and inspect source lines, but nothing is edited, saved back or executed, and the tool never connects to a printer or CNC controller. To change a file, edit it in a text editor or your CAM software, then open it here again to see the result.
How large a file can it open?
Files up to about 150 MB are accepted, and parsing runs in a background worker so the page stays responsive. A file is also rejected if it holds more than 2.5 million movements or would produce more than 2.5 million toolpath segments, or if the browser runs out of memory. In each case the viewer shows an error instead of a partial result.
Troubleshooting guide