Project
Skip to content

Files & formats · with original measurements

3D File Formats Explained: STL, OBJ, GLB, 3MF and More

What each format stores, what it loses, which to choose for printing, the web or CAD — with file sizes we measured ourselves.

By the 3DA.XYZ editorsUpdated 2026-11-05Original renders & data

Quick answer

If you want to…UseSecond choice
3D print in a current slicer3MFSTL (binary)
Send to an older printer or serviceSTLOBJ
Show a model on a website or in ARGLBglTF + .bin
Move a textured mesh between modeling appsOBJ or FBXglTF
Hand an engineering part to another CAD systemSTEP3MF for printing only
Archive a 3D scanPLYOBJ
Try itConvert any STL, OBJ, PLY, GLB, glTF or 3MF into another format privately in your browser. Open the converter →

Comparison table

FormatOriginGeometryMaterialsTexturesAnimationUnitsBest for
STL1987 (3D Systems)Triangles———NoSimple printing
OBJ1980s (Wavefront)Polygons, UVs, normalsVia .mtl fileSeparate images—NoMesh exchange
glTF / GLB2015 (Khronos)Triangles, scenesPBREmbedded (GLB)YesMetresWeb, AR, real-time
3MF2015 (3MF Consortium)Triangles, objectsColours, materialsYes (extension)—DeclaredModern printing
PLY1990s (Stanford)Mesh or pointsPer-vertex colour——NoScans, research
FBXAutodesk (proprietary)Meshes, rigsYesYesYesDeclaredGames, animation
USD / USDZPixar / Apple ARFull scenesYesYesYesDeclaredFilm pipelines, Apple AR
STEPISO 10303Exact CAD solidsLimited——DeclaredEngineering exchange

Measured file sizes

We wrote the same sphere into every format our engine supports and read each file back to make sure nothing changed. The results show how much of a file’s size is format overhead rather than shape.

STL ASCII13.27 MB3MF stored4.49 MBSTL binary3.25 MBOBJ2.21 MBPLY binary1.24 MBGLB0.78 MB3MF deflate0.55 MB
The same 65,024-triangle sphere, written by the 3DA.XYZ engine and read back to confirm identical geometry. ASCII STL is 4.1× larger than binary STL; deflated 3MF is 5.9× smaller. Method and raw data.
  • Binary STL is exactly 84 + 50 × triangles bytes. A 50-byte record per triangle (a normal plus three corners) after an 84-byte header. It never shares corners, so every vertex is stored about six times.
  • Indexed formats (OBJ, PLY, GLB) store each vertex once and refer to it by number, which is why they are smaller for the same mesh.
  • ASCII STL is the worst choice for large models — numbers written as text take roughly four times the space of binary.
  • 3MF is a ZIP package. Uncompressed it is verbose XML; with ordinary ZIP compression it was the smallest file in our test.

STL — the universal print format

STL describes a surface as a list of independent triangles, each with a normal vector and three corners. It has no colour, no materials, no scene and — crucially — no units: a 20 can mean 20 mm or 20 inches. Slicers assume millimetres. STL comes in ASCII (readable text) and binary versions. Its strength is that almost everything reads it.

Read more: STL vs 3MF · How to open an STL file.

OBJ — the modeling-app interchange format

OBJ is a plain-text format listing vertices (v), optional texture coordinates (vt) and normals (vn), and faces (f) that can be triangles or larger polygons. Materials live in a separate .mtl file that points to texture images, so an OBJ is often a small folder rather than one file. Like STL it has no units or up-axis. OBJ vs GLB.

glTF and GLB — the format for the web

glTF 2.0, from the Khronos Group, is built for delivering 3D to apps and browsers efficiently. It stores meshes, physically based materials, textures, animation, cameras and whole scene hierarchies. A .gltf file is JSON with separate binary and image files; a .glb packs everything into one binary file. The specification fixes the conventions: metres, Y up, right-handed. That is why a printed-part STL in millimetres can appear 1,000× too large in a web viewer if converted carelessly.

3MF — the modern print format

3MF, from the 3MF Consortium, is a ZIP package containing an XML model, with room for colours, materials, multiple objects, thumbnails and slicer settings. It declares its unit (millimetre unless stated otherwise), supports exact object placement on the build plate, and compresses well. Most current slicers open and save it. The trade-off: some older tools and online services still expect STL.

PLY, FBX, USD and STEP

PLY
The “Stanford triangle format”: a flexible header describes per-vertex properties such as colour or confidence, which makes it popular for 3D scans and point clouds.
FBX
Autodesk’s proprietary format for animated scenes: rigs, skinning, cameras and lights. Common in game and animation pipelines.
USD and USDZ
Universal Scene Description, created by Pixar, handles very large layered scenes. USDZ is a zipped variant used for AR on Apple devices.
STEP
The ISO 10303 standard for exchanging exact CAD geometry — true cylinders and curves, not triangles. Use it to move parts between CAD programs; convert to 3MF or STL only when you are ready to print.

Units and up-axis: the two classic traps

FormatUnitUp axis
STL, OBJ, PLYNot stored — usually treated as mmNot stored — printing tools assume Z
3MFDeclared in the file (default millimetre)Z
glTF / GLBMetres, by specificationY
FBX, USDDeclared in the fileDeclared

If a model arrives 25.4× too small it was probably made in inches; 1,000× off suggests metres versus millimetres; 10× suggests centimetres. Lying on its side means a Y-up/Z-up mix. Scale and units explains the fixes.

Converting between formats

Converting between mesh formats keeps the triangles but can drop everything else. Going from GLB to STL loses materials and textures; going from STL to 3MF adds a unit declaration, so the unit must be right. CAD-to-mesh (STEP to STL) is one-way: curves become triangles and cannot become editable features again.

Try itThe converter reports open edges and inside-out shells for every file, so problems are caught before they reach the slicer. Convert a file →

Questions people ask

Which 3D file format is best?

There is no single best: 3MF for modern 3D printing, STL for maximum compatibility, GLB for web and AR, STEP for CAD exchange, PLY for scans.

Is STL or OBJ better for 3D printing?

For printing, both carry the same triangle geometry. STL is more universally accepted by slicers and services; OBJ is more common between modeling apps. 3MF is better than both if your slicer supports it.

Does STL store colour?

Standard STL does not. Some programs hide colour in unused bytes of binary STL, but it is not portable. Use 3MF for colour printing or GLB for coloured web models.

Why is my GLB huge or tiny after conversion?

glTF uses metres. A 20 mm part must become 0.02 in GLB. Converters that skip this step produce models 1,000× too large.

Sources and further reading