Open Viewer
3D View 2D View G-Code Analysis Convert About FAQ Privacy G-Code Guide

Frequently Asked Questions

Everything you need to know about using GCodex — the free online G-Code viewer, analyzer, and CNC simulator.

What is a G-Code viewer?

A G-Code viewer is a tool that reads and visualizes CNC machine and 3D printer toolpath files. G-code is a plain text programming language that tells machines — CNC routers, mills, laser cutters, 3D printers — exactly where to move, at what speed, and what to do at each position. A viewer renders these instructions as a visual toolpath so you can see what the machine will do before you run it.

GCodex is a free online G-Code viewer that shows your toolpaths in both interactive 3D (using WebGL) and flat 2D (layer-by-layer). It also analyzes the file, giving you move counts, estimated print time, total travel distance, and a per-layer extrusion chart. Everything runs in your browser — no upload, no signup required.

How do I view a G-code file online for free?

Open gcodex.tech in any modern browser. Then either drag and drop your .gcode, .nc, or .g file onto the drop zone on the left panel, or click "Open File" to browse for it. The file is read locally in your browser — it never leaves your device. You get a full 3D toolpath visualization instantly. No account, no subscription, no upload.

You can also click "Sample" in the toolbar to load a built-in bioprinting scaffold G-code sample and explore all the features without your own file.

Do my G-code files get uploaded to a server?

No. GCodex processes all files entirely within your browser using the FileReader API. When you open a file, JavaScript reads it from your local disk directly into memory — no HTTP request is made, no FormData is sent, no WebSocket transmission happens. Your file data lives only in your browser tab's memory and is discarded when you close or refresh the tab.

This is not just a policy — it is a technical reality baked into how GCodex is built. There is no backend server to receive files. You can verify this by opening your browser's Network tab in DevTools and observing that no file data is transmitted when you load a G-code file.

What G-code file formats does GCodex support?

GCodex accepts the following file extensions: .gcode, .nc, .g, and .gc. These cover all major CNC and 3D printing formats. Any plain text file containing standard G-code commands (G0, G1, M104, etc.) will work regardless of which machine or firmware generated it.

If your file has a different extension but contains valid G-code, you can rename it to .gcode before opening it in GCodex.

How is GCodex different from NCViewer?

NCViewer is the most well-known browser-based G-code viewer and ranks highly in search results. It provides a basic 3D and 2D toolpath view, but its feature set stops there. GCodex was built to go significantly further.

GCodex adds layer filtering with Min/Max sliders that update both the 3D and 2D views in real time. It includes a full analytics dashboard with per-layer extrusion charts and command frequency breakdown. It has an in-browser G-code editor with syntax highlighting, Find & Replace, strip comments, normalize whitespace, and undo. It supports model scaling in X, Y, and Z with a wireframe bounding box overlay. It exports to eight formats: STL, OBJ, SVG, CSV, JSON, NC, plain text, and G-code. It has toolpath animation playback with a nozzle head indicator. It includes Arduino and GRBL guides, a G-code command reference, and bioprinter support. Both tools are browser-based and require no upload or signup.

How do I filter and inspect individual layers?

Use the Layer Filter panel on the left sidebar. The Min slider sets the lowest layer to show, and the Max slider sets the highest. Both the 3D view and 2D view update immediately as you drag. The Layer HUD in the top-right corner of the 3D view shows the current layer range.

To look at a single layer, drag both sliders to the same value, or use the single-layer stepper buttons (‹ ›) below the sliders to step one layer at a time. Click "All Layers" to reset both sliders to show the full model. You can also click the Layer HUD itself to open a layer jump dialog where you can type a specific layer number and see its Z height and segment count before jumping to it.

What export formats does GCodex support?

GCodex can export your loaded G-code to eight formats, all processed locally in your browser:

Note that GCodex cannot convert STL or OBJ files to G-code — that process requires a slicer application such as Ultimaker Cura or PrusaSlicer, which the Convert tab links to.

Which 3D printer and CNC firmware does GCodex support?

GCodex works with all firmware that outputs standard G-code. This includes Marlin (the most widely used firmware for FDM 3D printers, found in Creality, Prusa, and most RepRap machines), Klipper (high-speed printing), RepRap firmware, Smoothieware, Duet/RepRap Firmware, GRBL (CNC routers, laser cutters, pen plotters running on Arduino), and LinuxCNC for professional CNC machines.

It also works with G-code generated by slicers including Ultimaker Cura, PrusaSlicer, Bambu Studio, Simplify3D, IdeaMaker, and OrcaSlicer. Any valid G-code file from any of these tools will visualize correctly in GCodex.

Does GCodex support bioprinter G-code?

Yes. GCodex includes specific support for syringe-based extrusion bioprinting. It handles G-code generated for calcium alginate scaffold printing, hydrogel extrusion, and other bioprinting applications. The built-in sample file (click "Sample" in the toolbar) is a bioprinting scaffold that demonstrates alternating 0°/90° layer patterns typical in tissue engineering research.

The parser correctly handles low feed rates and small E values common in bioprinting, and the layer detection works with the small Z increments (0.25mm or less) used in bioprinting layer heights. The 3D view renders extrusion paths in blue, travel moves in light grey, and retract moves in orange, making it easy to verify scaffold geometry before printing.

How do I verify G-code before running it on a CNC machine?

Load your G-code file into GCodex and use the 3D view to visually inspect the toolpath. Orbit around the model to check all angles. Use the Layer Filter to isolate specific cutting passes and verify their depth. Toggle off travel moves using the Visibility panel to see only the cutting or extrusion paths without the rapid moves cluttering the view.

Switch to the Analysis tab to check total move counts and distances. The per-layer extrusion chart helps identify layers with unexpected amounts of material. The command frequency table shows which G and M codes appear most often, which can help catch unsupported commands before running on your specific machine.

For CNC work, pay particular attention to Z-height in the 3D view to confirm your toolpath doesn't plunge below expected depths, and check the X/Y bounding box in the Model Info panel to confirm the program fits within your machine's work envelope.

Can I use GCodex with Arduino G-code (GRBL)?

Yes. GCodex fully supports GRBL G-code generated for Arduino-based CNC machines. GRBL runs on Arduino Uno and Arduino Nano (both use ATmega328P) and interprets a subset of standard G-code. G-code files for GRBL use the same G0, G1, G2, G3, G4, G20, G21, G90, G91, M3, M4, M5 commands that GCodex parses.

For 3D printing with Arduino, the Arduino Mega (ATmega2560) running Marlin firmware is the most common setup, especially with the RAMPS 1.4 shield. GCodex fully supports Marlin G-code including temperature commands (M104, M109, M140, M190), fan control (M106, M107), and bed leveling (G29).

The Help & FAQ tab inside the main viewer application includes detailed guides for Arduino Uno with GRBL, Arduino Nano with GRBL, and Arduino Mega with Marlin, along with G-code examples and firmware settings references.

Can I scale or resize the G-code model in the viewer?

Yes. The Model Scale panel in the left sidebar has sliders for X, Y, and Z scale from 10% to 300%. Adjusting these scales the 3D visualization in real time. Click "Show BBox" to display a wireframe bounding box around the model so you can see its extents as you scale.

Note that this scales the visualization only — it does not modify the actual G-code coordinate values. If you need to scale the actual machine coordinates, use the Find & Replace tool in the G-Code editor tab to multiply all X, Y, or E values by a factor, then click Apply to re-render.

Keywords: gcode viewer faq · g-code viewer questions · how to view gcode online · gcode analyzer · gcode simulator · ncviewer alternative · free gcode viewer · gcode viewer no upload · gcode layer viewer · marlin gcode viewer · klipper gcode viewer · grbl gcode · arduino gcode viewer · cnc gcode viewer · 3d printer gcode viewer · bioprinter gcode · verify gcode online · gcode export stl · gcode to svg