iLoveConverter
Categories 11 categories
3DSTL

3D Printing File Formats: STL, OBJ, 3MF and What Your Slicer Accepts

iLoveConverter Team 8 min read

On this page

Every 3D print starts as a file, and the slicer is the gatekeeper: whatever format you hand it decides how smooth the road from model to physical object will be. Three formats dominate that road — STL, OBJ and 3MF — and a fourth, GLB, keeps showing up because so many models now originate in web, AR and game pipelines. Knowing what each format carries, what it silently drops and what your slicer accepts is the difference between a clean first print and an evening of failed adhesion and spaghetti.

What a slicer actually needs

A slicer turns a 3D model into layer-by-layer toolpaths. To do that it needs exactly three things: a closed (watertight) surface that defines where material goes, a scale, and an orientation. Everything else — colors, textures, PBR materials, animation — is decoration as far as FDM and resin printing are concerned. That is why printing interchange formats trade down to mesh plus minimal metadata, and why a model that looks rich in a viewer can still print as a hollow, broken shell if the mesh underneath is flawed.

STL: triangles and nothing else

STL (STereoLithography) was created by 3D Systems in 1987 for their pioneering stereolithography process, and its simplicity is why it became the lingua franca of 3D printing. An STL stores nothing but triangles: millions of them in the binary variant (a short header followed by a 50-byte record per triangle), or a human-readable ASCII listing that produces far larger files. Each triangle carries three vertices and a surface normal.

What STL does not store matters just as much: no units, no colors, no textures, no part names, no scale information. Slicers assume millimeters by default, and they must infer whether the surface is closed from the triangle soup itself — the file never declares it. That combination of universal support and total silence about everything except geometry is both STL’s strength and the root of most printing surprises.

OBJ: geometry with materials attached

OBJ is the Wavefront format from the 3D graphics world, and it answers STL’s biggest gap: appearance. The .obj file lists vertices, texture coordinates (UVs) and normals as plain text; colors and materials live in a companion .mtl file, which itself references texture images. That is why OBJ “travels in a folder” — .obj, .mtl and one or more image files are one logical asset.

For printing, slicers read the geometry and essentially ignore the material sidecars, since most printers cannot reproduce them anyway. OBJ’s real value is on the exchange side: nearly every 3D editor, CAD package and scanner software can read and write it, which makes it the format models most often arrive in when they come from a modeling pipeline rather than a printing one.

3MF: the modern replacement

3MF is what happens when the industry redesigns the printing file from scratch. Backed by a consortium of major CAD and printing vendors, it packs the model into a ZIP container holding structured XML parts. Unlike STL, a 3MF file declares its units explicitly (millimeters by default), keeps parts named, stores colors and materials, and can even carry slicer settings alongside the geometry. Modern slicers such as Cura, PrusaSlicer and Bambu Studio read and write it natively.

Its main obstacle is inertia: STL is accepted everywhere, 3MF is accepted by current-generation tools. For anything exchanged with older software or shared out to unknown recipients, STL remains the fallback everyone can open.

GLB: the web-native model

GLB is the binary form of glTF 2.0 — the standard that web, AR and game pipelines use to move 3D models. A single GLB file embeds the mesh, PBR materials and textures, and the glTF specification defines its unit as meters. A model exported for a web viewer is therefore often beautiful, self-contained and completely unprintable as-is: slicer support for GLB varies by product, and even where it exists, the meters-based scale collides with the millimeter assumption STL-trained workflows rely on.

Technical parameters at a glance

FormatWhat it storesUnitsColor & texturePackaging
STLtriangle meshnone — slicers assume mmnonesingle file, binary or ASCII
OBJmesh + UVs + normalsnone — mm assumed.mtl sidecar + image files.obj + .mtl + textures
3MFmesh + materials + metadata + settingsdeclared, mm defaultyessingle ZIP/XML container
GLBmesh + PBR materials + texturesmeters (glTF spec)embeddedsingle binary file

How the formats compare

QuestionSTLOBJ3MFGLB
Slicer supportuniversalnear-universalmodern slicersvaries by slicer
Named parts in one filenoyesyesyes
Color / texturenoyes, via .mtlyesyes, embedded
Scale declarednonoyesyes, meters
Typical roleprinting interchange3D/CAD exchangeprint projectsweb & AR preview

Conversion routes that matter for printing

  • OBJ → STL, the last step before slicing. Models that arrive from CAD or sculpting tools as OBJ convert cleanly with the OBJ to STL converter. Expect the geometry to survive unchanged and the material sidecars to be dropped — they had no printing meaning anyway.
  • GLB → STL, from web asset to printable mesh. Models grabbed from web viewers, AR projects or game stores go through the GLB to STL converter. Colors and textures disappear by design — STL stores geometry only — so judge the result by its mesh, not its looks.
  • STL → OBJ, into the editing world. When a print-oriented mesh needs cleanup or modification in an editor that prefers OBJ, the STL to OBJ converter rewraps the same triangles in a richer container without touching the geometry.
  • Compress before you share. GLB files that exist to be previewed — not printed — should be slimmed first; the GLB compression guide explains what the GLB compressor removes and why the model looks identical afterwards.

All of these run entirely in your browser: the model is processed locally, never uploaded, with no watermark and no file-count limits.

Fix the mesh before you print

Conversion never fixes a broken model — it faithfully repackages whatever it is given. Before slicing, check the defects slicers must cope with:

  • Holes and missing faces. A surface that is not closed lets the slicer guess where “inside” is, and the guess shows up as gaps or bulges in the print.
  • Non-manifold edges. Edges shared by more than two triangles, or dangling internal walls, confuse solid detection.
  • Flipped normals. Triangles whose normals point inward can make sections of the shell disappear from the toolpath.
  • Duplicate vertices. Stacked coincident points bloat the file and can break boolean-style operations downstream.
  • Zero-thickness walls. Single-sided surfaces have no wall thickness; FDM and resin slicers both need a real solid.

Most slicers ship a built-in repair that fixes the common cases; dedicated mesh tools handle the stubborn ones. One more pre-flight check is scale: because STL and OBJ are unitless and GLB is meters-based, the same model can arrive a thousand times too small or too large. Set the explicit size in the slicer — height in millimeters is the number to verify — before you slice.

Common problems

  • The print came out the wrong size. Units were never declared. Check the model’s bounding box in the slicer and scale it deliberately.
  • Colors vanished after converting to STL. Expected: STL cannot store them. If appearance matters for presentation, keep a GLB or OBJ copy alongside the print file.
  • The slicer refuses the file. Check which formats your slicer version accepts; when in doubt, export or convert to STL, which every slicer reads.
  • The STL is enormous. ASCII STL can be ten times larger than binary for the same mesh — re-export as binary, or decimate the mesh in the source application before converting.

FAQ

Is STL still the right format for 3D printing?

Yes — it remains the only format every slicer accepts, and the safest thing to hand a stranger. When your own toolchain supports 3MF, prefer it for print projects: it keeps units, parts and settings in one file.

Does converting OBJ or GLB to STL lose quality?

The triangle geometry is preserved; what is lost is everything STL cannot store — colors, textures, materials. For printing that is irrelevant. The mesh resolution itself is decided at export time in the source application, not during conversion.

Why does my model come out the wrong size after conversion?

Units. STL and OBJ carry no scale information and slicers assume millimeters; GLB is meters-based. A 1.8-meter figure from a GLB becomes 1.8 millimeters in an STL workflow. Always verify the bounding box before slicing.

Should I switch to 3MF?

For files that stay inside a modern toolchain — design, slice, print — 3MF is the better container: declared units, named parts, colors and even slicer settings. For anything that leaves your setup toward unknown software, keep the STL fallback.

Can I print directly from a GLB file?

Some current slicers import GLB, but support varies by product and version, and the meters-based scale needs correcting. The dependable route is converting GLB to STL first, checking the scale, and slicing from STL.

Try it yourself — free, right in your browser

Everything mentioned in this guide runs locally on this site: no upload, no watermark, no sign-up.

Format deep-dives: STL (.stl) , OBJ (.obj) , GLB (.glb)