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.
01
Firmware & motion
Absolute or relative extrusion, G2/G3 arcs, inch units and firmware retraction, as Marlin, Klipper, RepRapFirmware & Bambu firmware read them.
02
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.
03
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.
04
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.
05
Packaged & binary files
Prusa binary .bgcode (MK4, MK4S, Core One, XL, MINI), Bambu Studio & OrcaSlicer sliced projects with every plate, and UltiMaker .ufp packages.
06
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).
Close to the original design. Each layer's outline is rebuilt from the wall's centre line plus half its width, and the surface between layers is blended smooth, while flat tops, bottoms and ledges stay flat. On the test parts we sliced to check it, the rebuilt volume lands within 1% of the original model.
It's tested on files from Bambu Studio and PrusaSlicer, and reads the conventions OrcaSlicer, SuperSlicer, UltiMaker Cura and Simplify3D write. The printer can be any FDM machine: the file tells us its firmware, nozzle and filament. Files that don't label what they print still convert, but a skirt or supports may come through. Belt printers and resin files aren't supported yet.
Yes. A sliced Bambu Studio or OrcaSlicer project (.gcode.3mf, from "Export plate sliced file") carries the G-code of each plate. Every plate is read, and each object on it comes back as its own part.
Yes. PrusaSlicer writes binary G-code for the MK4, MK4S, Core One, XL and MINI. It's unpacked on your device and read like any other G-code.
No. Every layer is a flat slice, so read literally a dome or a slope would come back as stairs. Instead, each layer's outline is turned into a distance field and blended into the next, then the surface is drawn through the blend. A curve comes back as a curve, a straight wall stays straight, and a real step in the design (a ledge or a lip) stays a step. Detail finer than one layer height was never printed, so it can't come back.
No. The conversion runs in your browser, on your device. The G-code and the rebuilt model stay there until you download it or choose to get it printed.
Yes, as a solid made of flat faces. The STEP export is a closed solid: you can measure it, cut it and add features to it. We check every export opens as a closed solid in OpenCascade, the geometry kernel behind FreeCAD. It isn't a parametric model, so there's no feature history to edit.
Yes, with no account. If you'd like the part printed, the rebuilt model can go straight into an instant quote.