3D printing formats

3D Printer File Formats

Compare STL, 3MF, OBJ, AMF, and G-code so you can choose the right file for modeling, repair, conversion, slicing, and final printer output.

Format comparison

Model formats describe printable geometry. G-code is different: it is the machine instruction file created after slicing.

FormatBest forKeepsWatch forWorkflow
STLSimple printable meshes and broad slicer compatibility.Triangle geometry only.No color, material, units, or assembly data.Repair mesh issues, confirm scale, then slice.
3MFModern 3D printing projects with richer manufacturing data.Geometry, units, colors, materials, and package metadata.Older slicers or print services may still ask for STL.Use directly when supported, or convert to STL for compatibility.
OBJMesh exchange when color, UVs, or companion materials matter.Geometry plus optional MTL and texture references.Not every slicer handles OBJ material files consistently.Inspect linked assets, then convert or simplify if needed.
AMFAdditive manufacturing data with materials and curved triangles.Geometry, materials, colors, lattices, and object metadata.Less common in day-to-day desktop printing workflows.Convert to 3MF or STL when tool support is limited.
G-codeMachine-specific printer instructions after slicing.Toolpaths, temperatures, speeds, and printer commands.Usually tied to one printer, filament, and slicer profile.Generate from a slicer only after model checks are complete.

Choose the source format

Start with 3MF when you need print metadata, STL for maximum compatibility, or OBJ when visual material references matter.

Repair and convert

Check scale, normals, holes, non-manifold edges, and thin walls before converting between printer-friendly formats.

Slice for the machine

Use slicer settings for the target printer and material, then export G-code only when the model is ready to print.

3D printer file format FAQ

What is the best 3D printer file format?

3MF is usually the best modern format when your slicer supports it because it can preserve units, colors, materials, and print metadata. STL is still the safest fallback for broad compatibility.

Is STL or 3MF better for 3D printing?

STL is simple and widely supported, but it only stores triangle geometry. 3MF is better for richer print jobs because it can keep scale, color, material, and package information.

Can I send OBJ files directly to a 3D printer?

Usually no. OBJ files normally need to be opened in a slicer or converted to a printer-ready workflow first. The printer ultimately runs G-code generated for that machine.

What is G-code in 3D printing?

G-code is the printer instruction file created by a slicer. It contains movement paths, extrusion commands, temperatures, speeds, and other machine-specific settings.

When should I convert a 3D printer file?

Convert when a slicer, printer, print service, or repair tool does not support your current format. View and repair the model first so conversion does not carry broken geometry forward.