About this G-code viewer A slicer such as Cura, PrusaSlicer, OrcaSlicer or Bambu Studio turns a 3D model into G-code: thousands of short moves telling the printer where to go and how much filament to push. Before you spend hours printing it, it helps to see exactly what it will do - whether the supports are where you want them, whether a thin wall came out, how the first layer sits - and to check the time and filament it needs.
This page reads the G-code and draws every line of the print in 3D, coloured by what the slicer says it is: outer and inner walls, infill, top and bottom layers, bridges, support, skirt and brim. Move the slider to step through it layer by layer, or show one layer on its own. It also reads the slicer's own estimates, its preview picture and every setting it saved. CNC router, laser and plotter toolpaths open too. The file is read on your computer and never uploaded. To look at the model before slicing, open the STL or 3MF in the 3D Model Viewer .
What you can do Open .gcode files from Cura, PrusaSlicer, SuperSlicer, OrcaSlicer, Bambu Studio, Simplify3D and other slicers Step through the print layer by layer, or show a single layer, with its height See walls, infill, top and bottom, bridges, support and skirt in their own colours, and switch each on and off Show the travel moves between printed lines See the print time, filament length and weight, size, layer height, temperatures and material See the slicer's preview picture and every setting it saved Open Bambu Studio and OrcaSlicer .gcode.3mf plate files, choosing between plates, and Ultimaker .ufp print files Open CNC router, laser and plotter G-code (.nc, .ngc, .tap) to check the toolpath and cutting depths Save the view as a PNG What the analysis shows Beside the 3D view, the page lists what a G-code analyzer is usually wanted for: the print time (the slicer's estimate, or one worked out from distances and speeds), filament length and weight, the size of the print, the number of layers and the layer height, nozzle size, nozzle and bed temperatures, material, infill and printer, and how many extruders a multi-colour print uses. Arcs (G2 and G3), absolute and relative extrusion, and inch and millimetre units are all followed, so the toolpath matches what the printer will do. Files from Marlin, Klipper and RepRap printers read the same way, since the moves are standard G-code.
How to view a G-code file Drop the .gcode file on the box above, or click to choose it. Big files show their progress as they are read. Drag to turn the view, scroll to zoom and right-drag to pan. Top view looks straight down at the bed. Move the layer slider to see the print build up, and tick Only this layer to see one layer alone. Untick a kind of line in the list to hide it, or tick Travel move to see where the nozzle moves without printing. Press Save .png to keep a picture of the view, for a forum post or to compare slicer settings. It runs in Chrome, Edge, Firefox and Safari on Windows, Mac, Linux and Chromebooks, and on a phone or tablet for smaller files: open a .gcode from the printer's SD card or the slicer's export folder, with nothing to install.
Questions
Why is the print time different from my printer's? The page shows the slicer's own estimate when the file has one, which is usually close. Without it, the page adds up distances and speeds, which ignores acceleration and so comes out shorter than the real print. Printers also slow down for small layers and cooling, which no estimate fully knows.
Can it open .bgcode files from PrusaSlicer? Not yet. Binary G-code (.bgcode) is a compressed format for Prusa's MK4, MINI and XL. In PrusaSlicer, untick Printer Settings, General, Supports binary G-code, and export again to get a plain .gcode that opens here.
Can I open a Bambu Lab print file? Yes. Bambu Studio and OrcaSlicer export sliced plates as .gcode.3mf files, which hold the G-code inside; this page reads it and lets you choose the plate. A .3mf project that has not been sliced holds only the model: open it in the 3D Model Viewer instead.
How big a G-code file can it open? Files of hundreds of megabytes open: the file is read as a stream, with its progress shown, rather than all at once. A print with more than about 12 million moves is more than a browser tab can draw, so only the first part is drawn and the page says so; the time, filament and size are still worked out for the whole file.