G-code converterFree · no account · nothing uploaded

G-code to STL, 3MF & STEP. Nothing uploaded.

Kept the G-code but lost the model? Drop the file in. We read the printer and slicer it was made for, keep only the outer walls of every layer (infill, supports, skirts & purge lines are left out) and rebuild the solid you printed. It all runs on your device, so the file never leaves it.

(01)What comes back

The part you printed. Not the scaffolding around it.

A G-code file is mostly not the model. Infill, supports and purge lines can be more than half of what the nozzle drew. Only the walls trace the shape, so only the walls are read.

Kept

  • The outer walls of every layer: the surface you see and touch
  • Holes, islands, slots & thin walls
  • Every object on the plate, as its own part, by the name your slicer gave it
  • Arc moves (G2/G3), traced as true curves
  • Variable layer heights

Left out

  • Infill & solid fill (the inside comes back solid)
  • Supports, rafts & support interfaces
  • Skirt, brim & the purge line
  • Prime & wipe towers
  • Ironing, travel & wipe moves
(02)Printer-aware

The same moves mean different things on different printers.

A line of G-code only makes sense next to the machine it was written for. So the file's own settings are read first: the printer, the nozzle, the filament, the flow, and what the slicer did to the outline.

Firmware & motion

Absolute or relative extrusion, G2/G3 arcs, inch units and firmware retraction, as Marlin, Klipper, RepRapFirmware & Bambu firmware read them.

Line width

Taken from the slicer's own width notes. Without them, worked out from the extruded volume, the filament diameter and the flow ratio the file was sliced with.

Filament diameter

1.75 or 2.85 mm, from the file's settings, from the printer family (UltiMaker and LulzBot run 2.85 mm), or measured from the extruded volume when the file doesn't say.

Compensation, undone

Elephant-foot and XY compensation the slicer applied are put back, so the model is the size you designed, not the size the slicer squeezed it to.

Packaged & binary files

Prusa binary .bgcode (MK4, MK4S, Core One, XL, MINI), Bambu Studio & OrcaSlicer sliced projects with every plate, and UltiMaker .ufp packages.

Objects on the plate

Object labels from the slicer or the firmware (Prusa, Bambu, Klipper's exclude-object, M486) keep each part separate, copies numbered.

What it can't do (yet)

  • Curves come back smooth, rebuilt between the layers; a sharp detail smaller than a layer height is rounded off.
  • Detail finer than a line width was never printed, so it can't come back.
  • A multi-colour print comes back as one shape per object; its colours aren't separated yet.
  • Belt printers (tilted layers) and resin files aren't supported yet.
(03) Questions, answered

Before you convert.

What people ask when they have the G-code and need the model back.

Yes. G-code is a list of moves, not a model, but the outer walls of each layer trace the model's outline at that height. We rebuild the solid from those outlines and blend one layer into the next, so slopes and curves come back as smooth surfaces, not stair steps. The result is a closed, printable STL (or 3MF, or STEP).