# How to preview a G-code toolpath in a browser

Source: https://0xr.space/m/how/preview-gcode-toolpath-in-browser  
Published 2026-10-09, updated 2026-10-20, by ZeroXR, the maker of Model Explorer (https://0xr.space/).

Open 0xr.space, press Open and choose the .gcode, .gco, .nc, .tap or .g. A print is drawn as the lines the nozzle lays down, at their real width and layer height, coloured by feature: outer and inner walls, infill, support, top and bottom, bridges, skirt and more, read from the comments Cura, PrusaSlicer, OrcaSlicer and Bambu Studio write. A CNC or laser job with no extrusion is drawn as its cuts, arcs included.

It shows the finished toolpath, not the print in progress: there is no layer slider and travel moves are not drawn. Very long files are simplified to within half a millimetre to fit. It does not slice, and it does not talk to a printer.

## Steps

1. Slice the model and save the .gcode, or take the .nc from your CAM tool.
2. Open 0xr.space on the computer, phone or Quest browser.
3. Press Open and choose the file.
4. Turn the toolpath, cut through it with a section plane to see infill, or press View in your space to stand it on the print bed at size.

## Questions

### Can I step through it layer by layer?

Not yet. The whole toolpath is shown; a section plane cuts it at any height.

### Does it show travel moves and retractions?

No. Only extruding moves, or cutting moves for CNC, are drawn.

### Does it work for .bgcode from Prusa printers?

No. Binary G-code is not read; save plain .gcode from the slicer.

### Does it open a .tap or .g file from Mach3 or LinuxCNC?

Yes, when the file is G-code text. A .tap that is something else, such as a ZX Spectrum tape, is refused with a message.

### Is my file uploaded?

No. It is read on the device, and nothing is sent to a server unless you create a share link yourself.

## Related guides

- [How to open a STEP or IGES file without CAD software](https://0xr.space/m/how/open-step-file-without-cad-software)
- [How to open a SOLIDWORKS .sldprt file without SOLIDWORKS](https://0xr.space/m/how/open-sldprt-file-without-solidworks)
- [How to open a SketchUp .skp file without SketchUp](https://0xr.space/m/how/open-skp-file-without-sketchup)
- [How to open a Rhino .3dm file without Rhino](https://0xr.space/m/how/open-3dm-file-without-rhino)
- [How to view an IFC model in VR](https://0xr.space/m/how/view-ifc-bim-model-in-vr)
- [How to view a dotbim .bim file](https://0xr.space/m/how/view-dotbim-bim-file)

