Convert G-code to 3MF
Free G-code to 3MF converter that runs in your browser. See real dimensions before you download, and get a watertight, slicer-ready file.
How to convert G-code to 3MF
- Drop your G-code file onto the converter — it opens in your browser, nothing is uploaded.
- Check the preview and the dimensions in mm; fix units or the up axis in “Units & orientation” if the size or orientation looks wrong.
- Choose 3MF as the output and click Convert. Several files download as one ZIP.
What carries over from G-code to 3MF
| G-code | 3MF | Result | |
|---|---|---|---|
| Colour / materials | No | Yes | — |
| Textures | No | No | — |
| Units stored in file | Yes | Yes | Written as mm |
| Separate parts | No | Yes | — |
| Usual up axis | Z | Z | Unchanged |
About G-code files
G-code is the long-standing numerical control language for CNC machines, standardised as RS-274, and 3D printers use a dialect of it. A .gcode file is a text list of commands such as G1 X50 Y20 E0.8 F1800, which moves the nozzle while extruding, plus M-codes for temperatures, fans and bed settings. A slicer such as Bambu Studio, PrusaSlicer, OrcaSlicer or UltiMaker Cura produces it from a model by cutting the shape into layers and choosing perimeters, infill, speeds and supports. The result is tied to one printer, one filament profile and one set of settings. Prusa's firmware also accepts a compressed binary variant, .bgcode, and some machines use .gco or plain .g. Because it describes motion and not surfaces, G-code cannot be edited like a mesh, and it is not a way to share a design.
About 3MF files
3MF was designed by the 3MF Consortium, whose members include Microsoft, Autodesk, HP, Stratasys and Prusa, as a modern replacement for STL in additive manufacturing. A .3mf file is a ZIP archive following the Open Packaging Conventions. Inside it, an XML model part holds the mesh, while other parts can hold thumbnails, textures and metadata. Unlike STL, the mesh shares vertices between triangles, which makes files smaller and keeps the surface connected. The core specification defines units, build items with placement transforms, and several objects in one file. Extensions cover materials, slices and beam lattices. Bambu Studio, OrcaSlicer and PrusaSlicer save their projects as 3MF with their own settings stored in extra files, so a project from one slicer may open in another with the geometry intact but the print profile ignored.
3D printing notes
For multi-colour and multi-part prints, 3MF is the format to use. Bambu Studio and OrcaSlicer open each part as a separate object, which lets you assign a different filament or setting to each one, and Prusa-family slicers do the same. Because the unit is stored in the file, a model does not arrive at the wrong size. Be careful with project files: a 3MF saved by Bambu Studio carries printer, plate and process settings that PrusaSlicer will not apply, and some slicers pick a different default when a model has no declared plate. MeshShift writes 3MF with several parts and keeps colours as base materials, and it reads 3MF for viewing, measuring and print checks.
Frequently asked questions
Is this G-code to 3MF converter free and private?
Yes. The conversion runs in your browser with JavaScript and WebAssembly, so your G-code file is never uploaded to a server. There is no sign-up, no watermark and no daily limit; very large files are limited only by your device's memory.
Can I convert G-code back to an STL?
Approximately. A slicer discards the original surfaces, so a converter has to rebuild a solid from the extrusion paths. The result matches the printed shape at the chosen resolution but loses fine detail and has stair-stepped layers. It is useful when the source model is gone.
Is 3MF better than STL for 3D printing?
For most modern slicers, yes. 3MF records units, supports colours and several objects, and compresses well, while STL has none of those. STL remains the safer choice when a tool, a resin printer or a print service only advertises STL support.