Pro Calculators and Guides

How to Check G-code Before a Long 3D Print

Preview G-code layer by layer, colour toolpaths by speed, read print time, filament and cost, and spot problems before you start a long 3D print.

Saizul Amin
Saizul Amin2 Nov 2026 · 3 min read
How to Check G-code Before a Long 3D Print

Starting a twelve-hour print and discovering a problem at hour six is painful. A quick look at the G-code before printing catches many mistakes: a missing layer, supports where you did not want them, the wrong speed profile or a file meant for another printer. The free G-code Viewer and Analyzer shows the toolpaths and the numbers in your browser.

What G-code is

Your slicer turns a 3D model into G-code: thousands of lines such as G1 X120 Y85 E2.3 F1800, each telling the printer where to move, how fast and how much filament to push. The printer follows them literally, so what you see in the G-code is exactly what you will get.

Step 1: open the file

Choose the .gcode file. The tool reads every move, works out the layers, and identifies the slicer that produced it. Large files of 50 MB or more take a few seconds.

Step 2: step through the layers

Drag the layer slider or use the buttons. The view shows the print built up to that layer. Tick Only this layer to see a single slice: perimeters, infill pattern, top surfaces and the seam position.

Things to look for:

  • The first layer covering the whole footprint.
  • Supports only where you expect them.
  • Thin features that disappear in some layers.
  • Gaps between perimeters and infill.

Step 3: colour by speed

Speed colouring runs from blue (slow) to red (fast). Outer walls, bridges and the first layer should be slower than infill. If an outer wall is red, your profile may be too aggressive for good surface quality.

Step 4: check travel moves

Switch on travel moves. Long travels across open space cause stringing, especially with PETG and TPU. If you see many, enable "avoid crossing perimeters" or combing in your slicer.

Step 5: read the summary

The summary shows estimated print time, the slicer's own estimate if stored, layer count, layer height, print size and speed range. Choose the material, filament diameter and price per kilogram to see weight and material cost. Set your printer's acceleration for a more realistic time estimate; a Bambu or Prusa MK4 typically runs much higher accelerations than an older Ender.

Step 6: layer times and settings

The layer times tab shows a bar per layer. Layers that take only a few seconds can overheat on small parts; consider minimum layer time or printing two copies. The settings tab lists the slicer settings stored in the file, so you can confirm the right printer profile, temperatures and nozzle size were used.

Practical example

A user receives a G-code file from a friend for a tall vase. The viewer shows 412 layers, 46 m of PLA and an estimated 4 h 52 min. The settings tab reveals a 0.6 mm nozzle profile, while their printer has a 0.4 mm nozzle. They re-slice before printing and save a failed job.

Limitations to keep in mind

Time estimates assume one acceleration value, so expect 10-20 % difference from reality; the slicer's estimate is usually closer. Binary G-code (.bgcode) is not supported; export plain G-code from the slicer.

Using it for a print farm

When several printers run different jobs, open each file to confirm the printer model in the settings tab, note the estimated time and filament, and plan when to swap spools. Comparing layer times between profiles also shows which settings genuinely save time and which only look faster on paper.

Privacy

Files are processed in your browser and never uploaded.

Summary

Open the G-code, step through layers, check speeds and travel moves, read time, filament and cost, and confirm the settings. Five minutes of checking can save hours of printing.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages