# G-code Viewer

> See every layer of a .gcode or .gcode.3mf, with grams per filament and time.

- Page: https://3dprintkit.tools/tools/gcode-viewer/
- Category: G-code
- Opens: .gcode, .gcode.3mf
- Cost and privacy: Free. Runs in your browser; files are never uploaded. No account.

## When you need it
Use it to check a sliced file without opening the slicer.

- Someone sent you a .gcode or a Bambu .gcode.3mf and you want to know which printer it's for, how long it takes and how much filament it uses.
- You want to find the layer where a feature starts before adding a pause, or see where filament changes happen.
- You're at a computer without your slicer.

It recognises files from Bambu Studio, OrcaSlicer, PrusaSlicer and Cura. Files from Orca-based slicers such as Creality Print and Snapmaker Orca show as OrcaSlicer.

## How to use it
1. Drop a .gcode or .gcode.3mf on "Drop a sliced file".
2. Read the facts: Sliced with, Printer and nozzle, Plates, Layers and height, Print time, Filament for each slot, Filament changes and Pauses already in it.
3. For a file with several plates, choose the Plate. Each option shows its time and grams.
4. Drag "Show up to layer". Arrow keys move one layer; Page Up and Page Down move ten.
5. Tick "Only this layer" to hide the layers below.
6. In the preview, drag to turn, scroll to zoom and right-drag to pan.

## What you get
A viewer, not a download. For the layer you're on, "This layer" shows its thickness in mm and the grams each filament uses, and lists any filament changes on it, such as 1 → 2. The preview draws the extrusion moves in each filament's colour, on the printer's bed size when the file names it.

## Good to know
- Only extrusion is drawn. Travel moves aren't shown, and lines are coloured by filament, not by feature type, speed or temperature.
- Arcs (G2 and G3) are drawn as short straight lines.
- On very large files, tiny segments are merged to keep the preview smooth. The numbers still come from every line of the file.
- An unsliced project .3mf won't open here. Slice it and export the plate, or open the model in Model Viewer.
- To change the file, use Pause & Colour Swap. To price it, use Print Cost from File. To check a spool, use Spool Check.
- The file is read in your browser and never uploaded.

## Questions

### How do I open a .gcode.3mf file without Bambu Studio?

Drop the .gcode.3mf into 3dprintkit's G-code Viewer. It reads every plate inside the file and shows the toolpaths layer by layer, with the printer, nozzle, print time and grams for each filament, all in the browser.

### How can I preview G-code layer by layer online?

Open the .gcode or .gcode.3mf in 3dprintkit's G-code Viewer and drag the "Show up to layer" slider. Tick "Only this layer" to see one layer on its own, with its thickness, grams per filament and any filament changes on it.

### How much filament does my G-code use?

3dprintkit's G-code Viewer lists grams and metres for each filament in a .gcode or .gcode.3mf, taken from the slicer's own totals when the file has them. When a file lists no grams, as with Cura, the viewer works them out from filament length, diameter and density.

### How do I see the print time at a certain layer?

The layer slider in 3dprintkit's G-code Viewer shows the layer number, its Z height and how far into the print that layer starts. Times come from the slicer's M73 progress lines when the file has them; otherwise they are estimated and marked "about".

### Can I view PrusaSlicer binary .bgcode files?

No. 3dprintkit's G-code Viewer reads plain-text .gcode and .gcode.3mf. In PrusaSlicer, turn off Binary G-code in the printer settings, export again and drop the .gcode.

## More in G-code

- [Pause & Colour Swap](https://3dprintkit.tools/tools/pause-colour-swap.md): Add pauses or colour changes at the layers you pick, for printers without an AMS or to drop in magnets.
- [Print Cost from File](https://3dprintkit.tools/tools/print-cost.md): Drop a sliced file and get grams, time and a quote, for one plate or all of them.
- [Spool Check](https://3dprintkit.tools/tools/spool-check.md): Weigh your spool and see whether this print will finish.
