GCODE to OBJ Converter - Mesh From Toolpath | MiConvert

Convert GCODE to OBJ Online

Upload a sliced G-code file and get back a single Wavefront OBJ mesh rebuilt from the printer's extrusion moves. It is an approximation of the toolpath at a fixed 0.2 mm radius, not a recovery of the STL or CAD model the slicer started from.

📁

Drop your file here

or click to browse

Select File

Max 10 files, 50MB each

SSL Encrypted Auto-deleted No Sign Up 100% Free
GCODE → OBJ

What a GCODE to OBJ Conversion Actually Gives You

A .gcode file is not a 3D model. It is a text list of machine instructions: G0 rapid moves, G1/G2/G3 feed moves, extruder amounts, temperatures and fan speeds, written by a slicer after the mesh has already been discarded. That is why Blender, MeshLab, Maya and online model viewers refuse to open it, since there is no mesh inside to read. People searching for a way to turn G-code into a 3D object are usually holding the print file and no longer holding the STL.

Our converter runs on our servers, not in your browser. A Python parser walks the program line by line, tracking G90/G91 positioning, M82/M83 extruder modes and G92 resets. If any E word appears outside a comment, the file is treated as FDM and only moves where cumulative extrusion increases are kept, so travels and retractions end the current path instead of drawing a line through the air. The surviving path samples are marked into a voxel grid, and a distance transform plus marching cubes wraps a surface around them. The mesh is then written out as a Wavefront OBJ.

What survives is the shape of everything the nozzle actually extruded, as a closed triangle surface with corrected normals, in the coordinates written in the file. What does not survive is anything the parser never reads: arc centers, unit commands, tool changes and temperature data. The result is one merged mesh with no colors, no materials, no per-extruder split and no layer structure, the infill lattice sits inside the shell, and the OBJ ships on its own with no .mtl sidecar.

This is useful when you want to see or share the shape of a print you have the G-code for, drop it into Blender for a render or a size check, or compare two sliced versions of the same job. It is not a route back to an editable CAD part.

How to Convert GCODE to OBJ

  1. Start from the sliced program itself. We accept .gcode plus the aliases .g and .gco, FlashForge .gx files from FlashPrint (the binary header and thumbnail are skipped automatically), and PrusaSlicer binary .bgcode, which is decoded to text G-code first. Controller extensions such as .tap, .ngc and .mpf are not in our table; rename a copy to .nc or .gcode.
  2. Check the size: 50 MB as a guest, 100 MB with a free account, 200 MB on Plus and 1 GB on Pro, with 10 files per request on the free tiers, 25 on Plus and 50 on Pro.
  3. Drop the file on this page. It is uploaded over HTTPS and converted on our servers; nothing is processed on your device.
  4. Wait for the job. Most files on this pair come back in well under a minute, though a long print with hundreds of thousands of moves takes longer. Each engine step is cut off at 10 minutes, and binary G-code decoding has its own 5-minute ceiling.
  5. Download the .obj within about 4 hours of completion. Open it in Blender, MeshLab, Windows 3D Viewer or any OBJ-capable tool: you will see a single untextured object at the coordinates the slicer wrote.

What This Converter Handles

  • Reads .gcode, .g, .gco, FlashForge .gx and PrusaSlicer binary .bgcode (deflate, heatshrink and MeatPack variants, with CRC32 checked) through the same pipeline.
  • Separates FDM files from CNC-style programs automatically: with an E word present only extruding moves are drawn, without one the program is traced along the tool center line with G0 rapids skipped.
  • Removes the purge or intro line when the file carries layer markers such as ;LAYER_CHANGE, ;CHANGE_LAYER or ;LAYER:n, by dropping paths before the first marker and inside ;TYPE:Custom.
  • Writes a single .obj with triangle faces and repaired normals, keeping the original coordinates with no re-centering and no axis flip.
  • Refuses to deliver an empty result: if nothing was traced, the job fails with a message instead of handing you a zero-geometry OBJ.
  • Free to use without an account up to the guest size limit, with no download gate on the result.

Video Tutorial

Convert GCODE to OBJ online. Reconstruct 3D mesh from G-Code toolpaths for 3D modeling and visualization. Free, fast, no installation required. 📌 Convert GCODE to OBJ free: https://miconvert.com/en/

GCODE to OBJ: Common Questions

Can I get my original model back from G-code?

No. The slicer discarded the mesh when it wrote the G-code, and nothing here can recover it. What you get is a surface wrapped around the paths the machine was told to follow, built at a fixed 0.2 mm radius on a voxel grid of max(0.3 mm, longest side divided by 250), so a bed-filling job comes out blocky and positions are quantized to that grid. Overall dimensions stay close to the printed object, but there are no editable features. If you need an editable part, remodel it in CAD.

Why do the curves in my OBJ look faceted, and where did a circular hole go?

G2 and G3 arcs are read for their end point only; the I, J and R parameters are ignored. A quadrant arc becomes a straight chord, and an arc that starts and ends at the same point, such as a full circle, collapses to nothing. If your slicer has arc fitting enabled, or the file was run through ArcWelder, re-slice with it turned off so the file contains plain G1 segments.

The job failed with "No movement/extrusion commands found in G-Code file". What now?

The parser found nothing it could draw. Usual causes: a file with only rapid or travel moves, a CNC program that happens to contain an E word (which forces FDM mode and then drops the cutting moves), a text file that is not G-code, or a binary file renamed to .gcode. Upload the sliced program exactly as the slicer saved it, and for CNC work check that the cuts use G1, G2 or G3.

Does the OBJ include colors, materials or a .mtl file?

No. The download is a single .obj with positions and faces only, no .mtl sidecar and no textures. A multi-color or multi-extruder print is merged into one mesh, and prime towers, skirts, brims and support material are drawn along with the part. Only the custom start and end G-code sections are filtered out, and only when the file carries layer markers.

My program is in inches (G20). Will the OBJ be scaled correctly?

No. G20 and G21 are ignored, so the numbers in the file are carried into the OBJ unchanged, and a 2 by 1 inch outline becomes 2 by 1 OBJ units. Scale by 25.4 in your 3D application after import, or post the program in millimeters.

Can I convert an OBJ back into G-code here?

Not on this page. Going from a mesh to machine instructions needs a slicer or CAM package that knows your printer, material and settings, such as PrusaSlicer, Cura, OrcaSlicer or Fusion. This converter only reads G-code and writes mesh formats.

Can I convert a folder of G-code files at once?

You can send up to 10 files in a single request as a guest or with a free account, 25 on Plus and 50 on Pro, and each file is converted separately. There is no folder upload and no combined ZIP download, so you collect the OBJ files individually. Guest and free use is also capped at 10 conversion jobs per hour per IP address.

What happens to my file after the conversion?

The upload is processed on our servers and deleted as soon as the job's final attempt ends, successful or not. The resulting OBJ stays available through a random, unguessable link for about 4 hours, then it is removed automatically. Transfers run over HTTPS. We do log file names, sizes, formats and outcomes for operations, and signed-in users get a history row, so this is not an anonymous service.