.usdz MIME type
USDZ model3d models
model/vnd.usdz+zipApple's AR format: a USD scene in an uncompressed ZIP archive. Opens in AR Quick Look on iPhone and iPad.
| MIME type | model/vnd.usdz+zip |
|---|---|
| Extensions | .usdz |
| Content-Type | model/vnd.usdz+zip |
| Compress in transit? | No — already compressed |
| File signature | 50 4B 03 04 (PK..) the ZIP signature — this format is a ZIP archive inside |
Good to know
- Wrap an
<img>in<a rel="ar" href="model.usdz">and Safari on iOS opens AR Quick Look. Apple's guidance is to serve the file asmodel/vnd.usdz+zip; with a generic type, Safari may download it instead. - Android's equivalent is Scene Viewer, which loads .glb files.
Serve .usdz files with the right type
The response header to send:
Content-Type: model/vnd.usdz+zip
Most servers pick the type from the file extension. If yours sends the wrong one, map it explicitly:
nginx (inside the types block in mime.types)
model/vnd.usdz+zip usdz;
Apache (.htaccess or server config)
AddType model/vnd.usdz+zip .usdz
Express
res.set("Content-Type", "model/vnd.usdz+zip");Python
import mimetypes
mimetypes.add_type("model/vnd.usdz+zip", ".usdz")HTML file input
<input type="file" accept=".usdz,model/vnd.usdz+zip">
Check it
See what a server sends for a file, and what type a local file really is by its contents:
curl -sI https://example.com/file.usdz | grep -i '^content-type:' file --mime-type file.usdz
Frequently asked questions
What is the MIME type for .usdz files?
model/vnd.usdz+zip.
What Content-Type header should a .usdz file be served with?
Content-Type: model/vnd.usdz+zip. It's already compressed, so servers shouldn't gzip it.
How can I tell if a file is really a .usdz?
Check its bytes rather than the extension: USDZ files start with 50 4B 03 04 (PK..) — the ZIP signature — this format is a ZIP archive inside. On the command line, file --mime-type name.usdz does this for you.
Related types
Headers that go with it: Content-Type · Content-Disposition · X-Content-Type-Options