Skip to content

See every layer of a G-code or Bambu 3MF file in 3D, with print time, filament per colour and slicer settings.

Open a G-code, 3MF or STL fileSee every layer in 3D with print time, filament per colour, size and slicer settings. The file is read on your device and never uploaded.
.gcode
Cura, PrusaSlicer, OrcaSlicer, Bambu Studio, Simplify3D, ideaMaker
.bgcode
Prusa binary G-code (MK4, Core One, XL, MINI)
.gcode.3mf
Bambu Studio and OrcaSlicer sliced plates, with every colour
.3mf / .stl
Models: volume, surface area and weight from infill
Found it useful? or .

What is G-code Viewer?

G-code Viewer is a free online G-code viewer and analyzer for 3D printing. Open a sliced file and it draws the toolpath in 3D, layer by layer, the way your slicer’s preview does: walls, infill, top and bottom surfaces, supports and the prime tower each in their own colour. Next to the preview it lists what the file says about the print: the time, the filament used for every colour in metres and grams, the size of the print, the number of layers, the nozzle, temperatures, infill and the slicer and printer it was made for.

It reads plain .gcode from PrusaSlicer, OrcaSlicer, Bambu Studio, Cura, Simplify3D and ideaMaker, Prusa’s binary .bgcode, and the .gcode.3mf files that Bambu Studio and OrcaSlicer send to a Bambu Lab printer, with every plate and its picture. It also opens STL and 3MF models to measure them. Files are read by your browser and never uploaded, and the viewer has no size limit beyond your computer’s memory.

G-code viewer 3D preview of a two-colour twisted planter: sage green walls with ivory bands, the prime tower behind it and the skirt on the bed, drawn layer by layer from the G-code
G-code viewer 3D preview of a two-colour twisted planter: sage green walls with ivory bands, the prime tower behind it and the skirt on the bed, drawn layer by layer from the G-code

How to view a G-code file

  1. Open the file. Drop a .gcode, .bgcode or .gcode.3mf anywhere on the page, or choose it. Press Try the sample to open a two-colour planter.
  2. Turn the model. Drag to orbit, right-drag or drag with two fingers to pan, and scroll or pinch to zoom. Reset the view with the arrow button.
  3. Go through the layers with the layer slider or the arrow keys (Shift moves ten layers). Layer view looks straight down at one layer with the layer below it faint, which is the clearest way to check infill and seams.
  4. Step through the moves of a layer with the second slider, or press Play to watch the print being built, move by move and layer by layer. A small nozzle shows where the printer is.
  5. Change the colours to show the print by feature, by filament or by speed, and turn on travel moves (T) to see where the nozzle moves without printing.

What the viewer reads from the file

InformationWhere it comes from
Print timeThe slicer’s estimate in the file; estimated from the moves when there is none
Filament per colourLength and grams for every extruder or AMS slot, with the colour and filament name
LayersLayer count, layer height, and for each layer its height, time and filament
SizeWidth, depth and height of the model, without skirt, purge lines and prime tower
SettingsSlicer and version, printer, nozzle, infill, nozzle and bed temperature, average and top speed
ThumbnailThe picture the slicer embedded (PNG, JPG or QOI), or the plate image in a 3MF
FeaturesShare of filament spent on walls, infill, supports, bridges and other features

Bambu Studio and OrcaSlicer .gcode.3mf viewer

A .gcode.3mf is a zip that holds the G-code of each plate together with the slicer’s numbers and pictures. Most G-code viewers cannot open it, and you would have to unzip it and find Metadata/plate_1.gcode yourself. This viewer opens it directly: pick a plate, see its toolpath with the real AMS colours, its thumbnail, its time and the grams of each filament as Bambu Studio counted them, purge included. A project 3MF that holds the numbers but no G-code shows its stats, and you can export the sliced plate from Bambu Studio or OrcaSlicer with File › Export › Export plate sliced file to see the layers.

G-code analyzer: checking a print before you start it

A G-code analyzer helps you catch problems before a long print. Scrub to the first layer to check the skirt and the first layer lines, look at the layer where supports end, colour the print by speed to see where the printer slows down for overhangs and small layers, and check the size against your bed. The time-per-layer strip above the slider shows where the print spends its hours at a glance: tall bars are slow layers, often the bottom, a colour change or a wide top surface, and a click on a bar jumps to that layer. Sizes and weights switch between mm and grams or inches and ounces. When the numbers look right, press Price this print to open the file in the 3D Print Cost Calculator and get its cost per colour and a price to charge.

STL and 3MF model viewer

Open an STL or an unsliced 3MF and the viewer shows the model in 3D with its volume in cm³, surface area, size and triangle count, and an estimate of its printed weight for a material, infill and number of walls. A model has no layers or print time until it is sliced.

Colour the toolpath by feature, filament or speed

The toolbar has three ways to colour the print. Feature paints each kind of line the slicer wrote in its own colour: outer wall, inner wall, sparse and solid infill, top and bottom surfaces, bridges, supports, the skirt or brim and the prime tower. The legend under the preview gives the share of filament each one takes, so you can see at once when supports or a purge tower use more plastic than the part. Filament uses the colours set in the slicer, which is the quickest way to check that a multi-colour print from an AMS or MMU changes colour on the right layers. Speed runs from blue for the slowest moves to red for the fastest, and shows where the printer slows down for small layers, overhangs and the first layer.

Turn on travel moves to see where the nozzle moves without printing. Many long travels across the part are a common cause of stringing; if you see them, try the slicer's avoid-crossing-walls option or more retraction. Layer view shows one layer from above with the layer below in grey, which is the clearest way to compare the wall order and the infill pattern from one layer to the next.

Prusa binary G-code (.bgcode) viewer

PrusaSlicer writes binary G-code by default for the MK4, Core One, XL and MINI. A .bgcode file is compressed, so a text editor cannot open it and most online G-code viewers reject it. This viewer unpacks it in the browser, shows the thumbnails stored in it, and reads the print time, the filament used and the printer settings from its metadata blocks, just as it does for a plain .gcode file.

Frequently asked questions

How do I open a G-code file online?

Drop the .gcode file on this page or press Choose a file. It opens in a few seconds with a 3D preview of every layer and the print time and filament used. Nothing is installed and the file is not uploaded.

Can I view Bambu Lab G-code?

Yes. Open the .gcode.3mf that Bambu Studio exports or sends to the printer, or a plain .gcode exported from it. The viewer shows each plate with its AMS colours, its picture, its time and the grams of every filament.

Does it show the print time and filament weight?

Yes. It shows the slicer’s time estimate and the filament used in metres and grams for each colour, and says when a number was estimated from the moves because the file had none.

Is there a file size limit?

No fixed limit. The file is read in the background on your device, so files of 100 MB and more open; for very large files the preview may stop partway while the numbers still cover the whole file.

Why does the time differ from my printer’s?

The time shown is the slicer’s estimate. Printers add heating, bed levelling and filament changes, and real acceleration differs a little from the slicer’s model, so the print can finish a few minutes earlier or later.

Which slicers are supported?

PrusaSlicer, SuperSlicer, OrcaSlicer, Bambu Studio, Cura, Simplify3D, ideaMaker, Creality Print, Elegoo Slicer and Anycubic Slicer. Any other G-code for a filament printer opens too, with the numbers measured from its moves.