About this tool
A G-code file is the finished set of instructions for your printer: line by line moves, temperatures and extrusion. Before starting a long print you often want to know how long it takes, how much filament it needs and whether it fits on the bed, especially when the file came from someone else or you no longer have it open in the slicer.
The tool reads the file in your browser, recalculates every move and shows print time, filament in metres and grams, number and height of the layers, print size, temperatures and retractions. The layer preview lets you step through the paths layer by layer. Laser and CNC files without extrusion are analysed too; then the feed moves count.
How it works
- Drop a G-code file into the field or load the example.
- Pick the filament diameter and material so the weight is right.
- Read off print time, filament and size and check the individual layers with the slider.
Frequently asked questions
Why does the own time estimate differ from the slicer?
The tool divides every distance by its feed rate and adds pauses. It leaves out acceleration, jerk and cornering speed, so the value is a lower bound. If the slicer wrote a time into the file, the tool shows it as well.
How is the filament usage calculated?
From all E values, with absolute and relative extrusion (M82/M83) and resets via G92. Retractions and the following unretract cancel out. The weight follows from length, diameter and density, as in the Filament Calculator.
Which files are supported?
Text G-code for Marlin, Klipper, RepRap and GRBL, with G0 to G3 including arcs, G20/G21, G90/G91 and G92. Prusa binary G-code (.bgcode) is not read; export it as plain G-code from the slicer.
What does the print cost?
Take print time and filament weight to the 3D Print Cost Calculator, which adds electricity, wear and failed prints.