Skip to content

model/stl MIME Type — Meaning, Usage & Examples

model/stl
Extensions: .stl Class: model Spec: IANA (IANA registered)
View IANA registration ↗

model/stl means: model/stl is the media type for STL (stereolithography) files, a format describing a 3D surface as a mesh of triangles. STL is the de facto standard for 3D printing, available in ASCII and binary variants, and carries geometry without color, materials or units. Model media types describe 3D geometry and scene data for rendering, printing and interchange. The subtype selects the loader in viewers and engines. These types are common in CAD, glTF web graphics and additive manufacturing, where an incorrect type prevents the asset from loading into the target toolchain. You will encounter model/stl in contexts such as 3d printing and slicer input; rapid prototyping mesh exchange; cad export for additive manufacturing. It is commonly associated with the file extension(s) .stl. STL has no unit or color information — the receiving software assumes units (usually millimeters), so scale must be agreed upon. Binary STL is far more compact than ASCII; prefer it for large meshes, and ensure the mesh is watertight for printing.

Advertisement
Ad slot · ref-top

When you'll see model/stl

  • 3D printing and slicer input
  • Rapid prototyping mesh exchange
  • CAD export for additive manufacturing

How to handle it

When serving 3D models, prefer glTF for web delivery because it is compact and widely supported, and declare model/gltf+json or model/gltf-binary accordingly. Enable compression (Draco/meshopt) and byte-range requests for large assets. Validate that buffers and textures referenced by the scene resolve correctly, since a missing external buffer is a frequent cause of blank renders. As a final checklist for model types: prefer glTF for web delivery, compress geometry, verify that external buffers and textures resolve, enable byte-range requests for large assets, and confirm units and scale so the model loads correctly in viewers, engines and slicers.

Notes & gotchas

STL has no unit or color information — the receiving software assumes units (usually millimeters), so scale must be agreed upon. Binary STL is far more compact than ASCII; prefer it for large meshes, and ensure the mesh is watertight for printing.

Examples

HTTP
HTTP/1.1 200 OK
Content-Type: model/stl
Content-Length: 72

Sample model/stl content delivered with the correct Content-Type header.
curl
curl -i -H "Accept: model/stl" https://api.example.com/v1/resource   # inspect the returned Content-Type
JavaScript (fetch)
const res = await fetch("/v1/resource", { headers: { Accept: "model/stl" } });
// verify res.headers.get("Content-Type") starts with "model/stl"
const text = await res.text();   // handle according to the declared type
Python (requests)
import requests

res = requests.get("https://api.example.com/v1/resource",
                   headers={"Accept": "model/stl"}, timeout=10)
res.raise_for_status()
# confirm the server declared the expected type
assert res.headers["Content-Type"].startswith("model/stl")
text = res.text   # decode/handle according to the type

Frequently asked questions

Why is my STL the wrong size in the slicer?

STL stores no units; slicers typically assume millimeters. If your CAD exported in inches or meters, scale the model accordingly before printing.

ASCII or binary STL?

Binary STL is much smaller and faster to parse for the same triangle mesh; ASCII is human-readable but bulky. Use binary for production and ASCII only for inspection or debugging.

Where are model MIME types used?

In 3D viewers, web graphics (glTF), CAD interchange and 3D printing slicers. The type tells the loader how to interpret the geometry; model/gltf+json and model/gltf-binary are the common web-friendly choices.

Is model/gltf+json registered?

Yes — glTF 2.0 defines model/gltf+json for the JSON scene description and model/gltf-binary for the self-contained .glb container. Both are widely supported by web 3D engines and viewers.

Why does my 3D model load but render nothing?

External buffers or textures referenced by the scene failed to load, often due to wrong paths or CORS. Check the network requests, fix the URLs, or use a self-contained .glb that embeds all assets.

Advertisement
Ad slot · ref-in-article

Try the Base64 Encoder

Encode and decode Base64 with UTF-8 and URL-safe options.

Open tool →