G-code to STL converter

Convert G-code files to STL in your browser. Preview the model in 3D, check its size, then download. Free, no sign-up, and your file never leaves your device.

Files are processed on your device and never uploaded.

How to use it

  1. Drop your G-code file on the 3D preview or click “Upload your model”.
  2. Check the preview and size. Adjust Scale or Up axis if the model looks wrong.
  3. Click “Convert to STL”, then download the STL file.

About G-code to STL conversion

G-code contains printer moves, not the model you sliced. We rebuild a solid from each extruded line using the detected layer height and a 0.45 mm line width, so you get a close approximation for previews and measurements.

If you still have the original STL or 3MF, use that instead: it will be far cleaner.

What is a G-code file?

G-code is the list of machine moves a slicer sends to the printer: where to move, how fast, how much plastic to push. More about G-code.

What is a STL file?

STL is the most common file for 3D printing. It stores a surface as a list of triangles and nothing else: no colours, no materials, no units. Every slicer can open it.

What each format keeps

G-code

Toolpaths, temperatures, speeds. Not the original model.

Used by: All FDM printers; produced by slicers.

STL

Triangle geometry only. Binary STL is about five times smaller than ASCII STL.

Used by: Every slicer (Bambu Studio, PrusaSlicer, OrcaSlicer, Cura), Thingiverse and Printables downloads, most CAD tools as an export.

Related tools

Questions and answers

Is it free?

Yes. There is no sign-up, no watermark and no file limit set by us. Very large files are limited only by your device’s memory.

Are my files uploaded?

No. The conversion runs in your web browser with JavaScript and WebAssembly. Your file is read from your device and the result is created on your device, so nothing is sent to our server.

What is lost when converting G-code to STL?

STL keeps: Triangle geometry only. Binary STL is about five times smaller than ASCII STL. Anything G-code stores beyond that is dropped. A mesh rebuilt from G-code follows the printed lines, so it is an approximation of the original part.

Why is my model the wrong size?

Formats store units differently: STL has none, glTF uses metres, 3MF and STEP record units. If the result looks 1000 times too small or large, pick a different option in Scale (for example “Metres → mm”) and convert again.

Why is my model lying on its side?

Some formats treat Y as up (glTF, OBJ, FBX), others Z (STL, 3MF, STEP). “Up axis: Automatic” rotates the model for the target format. Choose “Keep as is” if you prefer the original orientation.