Embed a 3D viewer
Enter the address of your model, choose a theme and copy one line of code.
Where to keep the model
The model must have a public address that starts with https://. Its server must allow your visitor's browser to load it. This permission is called CORS. A simple server setting for public files is:
Access-Control-Allow-Origin: *
If the preview says that the model cannot be loaded, open the address in a new tab. If it downloads there but not in the viewer, the server probably needs CORS.
Without a model address, visitors see an area where they can open their own file.
Settings
| Part of the address | What it does |
|---|---|
src |
Address of the model |
theme=light |
Uses the light theme |
spin=1 |
Turns the model until someone touches it |
Any supported single-file model works. Use GLB or a ZIP for models with separate textures. GLB usually starts faster than STEP, which also needs the CAD reader.
The visitor's browser loads the model directly from your address, not from our server. The owner of that server can see a normal request from the visitor. A public model can be downloaded by anyone who finds its address.
Questions
Is the embedded viewer free?
Yes. It includes a small STL Viewer link.
Can I embed a model from Google Drive?
Usually not. Its sharing links open a page and do not work as direct model files. Use your own web hosting or file storage with public files.
Does it work on phones?
Yes, in current browsers with WebGL 2. Large files need more memory and can fail on a phone.
Take your files with you
STL Viewer for iPhone, iPad, Mac and Apple Vision Pro opens them offline and shows them in your room with AR on iPhone and iPad.