March 18, 2026
Updated 11 November 2026
How to put a 3D model on your website: 3 ways
You have a 3D model as a GLB file and you want to show it on your website. A photo you upload to your CMS and you are done. A 3D file needs more: a place where it lives and a viewer that draws it in the browser, on a phone too. This article covers the 3 ways to do that, what they cost and who they suit.
What do you need to put a 3D model on your website?
You need 3 things: a 3D file, somewhere to host it and a viewer.
The 3D file is ideally a GLB file: the model, its colours and its materials in 1 file every browser can read. The hosting is the server the file lives on and travels from to your visitor. The viewer is the piece of software that draws the model in the browser. With it, visitors turn the product, zoom in and, on a phone, place it in their own room with augmented reality (AR).
Got a different file type, such as OBJ, FBX or STEP? Convert it to GLB first. Our article on 3D file formats shows how.
3 ways to put a 3D model on your website
Which one fits depends on who builds it and what the model has to do on your site.
1. An open-source viewer on your own server
Google makes model-viewer, a free viewer you add to a page with 1 script and 1 tag. For developers there is three.js, a library to build everything yourself. You put the GLB file on your own server and the viewer loads it from there.
The software is free, the work is not. Your server has to send the right headers, or the browser refuses the file. A large file loads slowly without a network of servers close to your visitor. AR works differently on an iPhone than on Android, so you test on both. And you cannot see how many visitors look at your model.
Pick this if you have a developer to build and maintain it, or if you want to show 1 model for a project.
2. A 3D platform such as Sketchfab
On a platform like Sketchfab you upload your model and get an embed code. Paste it on your site and the model is there. There is nothing to host or build.
A platform like that is made to show and share 3D work, such as a portfolio or a collection. It is not built around a product page: variants a visitor chooses between, such as colour or fabric, are not there out of the box.
Pick this if you want to show 3D work, not if you want to sell products with it.
3. A product viewer for webshops
A product viewer is made for the product page. You upload your model, get an embed code and the viewer handles the rest: fast loading on every device, AR on phones, variants if your product has them and statistics on what visitors do.
Pick this if you sell products and do not want to tie up a developer with the technology. Portal, our own platform, is a product viewer like that. Below is how it works.
How does it work with Portal?
You upload your model to Portal and get 2 things. An embed code that puts the model on your website. And a link to share over WhatsApp, email or social media. The viewer works on every device, loads fast and shows an AR button on phones automatically. Your dashboard shows how many people view your models and what they do with them.
You know up front what you pay. With many other providers you pay per view, per interaction or per feature you switch on. That adds up as your webshop grows and makes your costs hard to predict. With Portal you pay per block of models, however many visitors look.
The embed code is 1 line of HTML. It works in WordPress, WooCommerce, Shopify and any other website you can paste HTML into.
How do you embed a 3D model on your website?
With Portal it takes 3 steps:
- Create an account and upload your GLB file. Portal processes the model and gets it ready for the web.
- Copy the embed code. That is 1 line of HTML you can paste into any website.
- Paste the code on your product page. In WordPress you use an HTML block, in Shopify the theme editor and in WooCommerce the product description.
Visitors see the product from every side straight away and zoom in on details. On a phone an AR button appears that places the product in their own room, with nothing to install.
What does 3D hosting cost?
An open-source viewer has no licence fee, but you pay for your server and your developer's hours. With Portal you start free with 1 model, every feature included. After that, each block of 10 models is €25 a month. There is no charge per visitor and no limit on views.
No 3D model yet?
With AI tools like Microsoft Copilot 3D you make a free 3D model from a product photo. The result is not always perfect, but you quickly see what 3D does for your products. Want a model that is right down to the seams? Get in touch and we make it from your product photos.
Try it yourself
Upload your first 3D model to Portal and put it on your website. The first model is free. If you get stuck, we help.