What is a .gcode.3mf file?

A .gcode.3mf file is a sliced print job from Bambu Studio: a 3MF (ZIP) package that holds the finished G-code of each plate, with thumbnails and slice information, instead of the 3D model. To see what it will print, drop it on the G-code viewer: the toolpath of the first plate opens layer by layer in your browser and nothing is uploaded.

File extension.gcode.3mf
TypeSliced print job (3MF package with G-code)
Developed byBambu Lab (Bambu Studio); also written by OrcaSlicer
EncodingZIP archive with G-code text, slice information and PNG thumbnails
Colour / materialsFilament colours in the slice information
UnitsMillimetres
Exact CAD geometry—
MIME type—
Opens in 3dfilesYes – G-code viewer and analyzer
Limits in 3dfilesFiles up to 1 GB open. The toolpath of the first plate is drawn, and the viewer says how many plates the file holds. Preview only: a sliced file contains no model, so there is nothing to convert.

Open a G-code 3MF file

How to open a .gcode.3mf file

  1. Drop it on the G-code viewer (the 3MF viewer and the 3D viewer accept it too). You get the toolpath of plate 1 with a layer slider and optional travel moves, plus print size, layer count, filament length, and the print time and slicer name when they are written in the G-code.
  2. To see every plate, open it in Bambu Studio. It loads in a preview-only mode, because the file contains G-code and no model.
  3. To get plain G-code out: change the extension to .zip, unpack it and take Metadata/plate_1.gcode. That file opens in the G-code viewer as well.
  4. To edit or convert the model you need the project, not the sliced file. In Bambu Studio open the project and use File → Export → "Export all objects as one STL" or "Export Generic 3MF", then open that file in the 3D viewer.

About the G-code 3MF format

Bambu Studio saves two different things under the 3MF name. A project .3mf holds the model, its plates and all settings, and can be edited and sliced again. A .gcode.3mf is what comes out after slicing: File → Export → "Export plate sliced file" writes the current plate and "Export all plate sliced file" writes every plate. The model is left out of such a file, which is why a program that expects a model finds no geometry in it.

Inside, each plate has its own G-code file in the Metadata folder, next to a checksum, a thumbnail picture and slice_info.config with the slice information. Bambu's quick-start guide describes the use: export the sliced file to the printer's SD card and start it from the printer's screen. OrcaSlicer writes the same .gcode.3mf for printers that accept it.

What a G-code 3MF file looks like inside

Contents of a .gcode.3mf (a ZIP archive)

print.gcode.3mf
├── [Content_Types].xml           3MF package file
├── Metadata/plate_1.gcode        G-code of plate 1
├── Metadata/plate_1.gcode.md5    checksum of that G-code
├── Metadata/plate_1.png          thumbnail of the plate
└── Metadata/slice_info.config    slice information, filaments used

Change the extension to .zip and any archive tool shows these files. Metadata/plate_1.gcode is ordinary G-code text; a file with several plates also has plate_2.gcode, plate_3.gcode and so on.

Common problems

Only the first plate is shown

The viewer draws plate 1 and tells you how many plates the file holds. To see another one, unpack the file as a ZIP and drop Metadata/plate_2.gcode (or the plate you need) on the viewer.

There is no convert button

A sliced file contains nozzle paths, not a surface, so it cannot become an STL, STEP or OBJ, and the convert panel is hidden for it. Ask the sender for the project .3mf or the original model.

PrusaSlicer will not load it

PrusaSlicer's release notes say that a 3MF containing only G-code, as saved by Bambu Studio, is not supported and fails to load. Use a G-code preview instead, or ask for the project file.

Questions about G-code 3MF files

What is the difference between .3mf and .gcode.3mf?

A .3mf project holds the model and its settings and can be sliced again. A .gcode.3mf holds the result of slicing: the G-code of each plate, without the model. Bambu Studio writes it with File → Export → "Export plate sliced file".

Can I convert a .gcode.3mf to STL?

No. Like any G-code it only describes the path of the nozzle, and the model is not stored in the file. Ask for the project .3mf or the STL it was sliced from.

Is a .gcode.3mf file a ZIP?

Yes. It is a 3MF package, and every 3MF is a ZIP archive. Changing the extension to .zip lets you unpack it; the G-code is in the Metadata folder.

Can I print a .gcode.3mf on another printer?

Not safely. The G-code inside was generated for one printer model, nozzle and filament. Open the project in a slicer and slice it again for your printer.