Embed 3D Gaussian Splatting on Your Website
Generate ready-to-use embed code for your 3DGS scenes. Preview the result live, then copy the iframe or script snippet to your site.
Last updated Mar 2026
File must be publicly accessible with CORS headers enabled
What You Should Know
How Does 3DGS Embedding Work?
Embedding a Gaussian Splatting scene on a website works similarly to embedding a YouTube video: you place an iframe that loads a viewer page pointing to your 3DGS file. The viewer handles WebGL rendering, camera controls, and progressive loading. Your visitors see an interactive 3D scene they can orbit, zoom, and pan — all without installing anything. The embed code generated by this tool creates a self-contained iframe that loads the Polyvia3D viewer with your file URL pre-configured.
Hosting Your 3DGS Files
For the embed to work, your 3DGS file must be accessible via a public URL with CORS headers that allow cross-origin requests. Common hosting options include: cloud storage (AWS S3, Google Cloud Storage, Cloudflare R2) with public access enabled, CDN services (Cloudflare, Fastly, BunnyCDN), or your own web server configured to serve static files with the correct Content-Type and Access-Control-Allow-Origin headers. SPZ files are recommended for embedding due to their small size — a typical scene loads in 2-5 seconds on broadband connections.
Supported Formats for Embedding
All four Gaussian Splatting formats are supported: PLY (3DGS), SPLAT, KSplat, and SPZ. However, SPZ is strongly recommended for web embedding. A PLY file that is 500 MB will take minutes to load over a typical connection, while the same scene compressed to SPZ (50 MB) loads much faster. If your file is in PLY or SPLAT format, consider compressing it to SPZ first using our compression tool, then embed the compressed version.
Customization Options
The embed code supports several customization parameters: width and height of the viewer frame, autoplay (start rendering immediately vs. click to load), background color, and initial camera position. The generated iframe includes responsive sizing by default, so it adapts to the container width on mobile and desktop. You can further customize the appearance by wrapping the iframe in a styled container on your website.