Compress GLB & GLTF filesup to 90%
Compress GLTF or GLB and slash file sizes up to 90% without compromising on quality. Powered by the popular gltf-transform library. Suitable for web, AR, VR, artists, designers, architects and more.
Try it out
Experience the power of compressing GLB files
Upload your GLB or GLTF file and see the difference for yourself.
Features
Save time and bandwidth
GLB file compressor
Compress GLB files by up to 90% while keeping them looking great. Built on gltf-transform, this GLB optimizer handles your 3D models efficiently without sacrificing visual quality.
GLTF validator included
Every GLB and GLTF file gets validated automatically. Catches common issues and ensures your compressed models work everywhere they should.
Fast compression API
Simple REST API that processes your GLB files quickly. Perfect for developers who want to add GLB compression to their apps without the hassle.
Create your own presets
Save your favorite compression settings as custom presets. Set up your parameters once and reuse them across different projects - no need to remember all those settings.
Detailed compression controls
Tweak texture quality, geometry simplification, and animation compression to get exactly what you need. Great for when you want more control over your GLB optimization.
Friendly support
Got questions about integration or compression settings? Just reach out! Happy to help you get the most out of your GLB compression workflow.
Free GLB compression online
Try it out with 1 free credit - no signup needed for single files. Perfect for testing how well this GLB compressor works with your models.
Batch GLB processing
Upload multiple GLB files at once and compress them all together. Handy when you have a bunch of 3D models to optimize and want to save time.
Live progress updates
Watch your GLB compression happen in real-time with progress bars and status updates. No more wondering if something is stuck or broken.
Model quality preserved
gltf-transform does the heavy lifting to keep your models looking good while making them smaller. Colors, textures, and animations stay intact.
Easy API integration
Simple REST endpoints with clear documentation. Add GLB file compression to your workflow with just a few lines of code - nothing fancy required.
Built-in GLB validator
Every compressed file gets checked to make sure it's valid and ready to use. Helps catch any issues before you deploy your optimized GLB files.
Code Samples
Integrate with ease
Upload files synchronously for instant results or asynchronously for large batches. Here's how to get started.
import fs from 'fs';
import path from 'path';
async function compressGLB(inputPath, outputPath) {
const fileBuffer = fs.readFileSync(inputPath);
const formData = new FormData();
formData.append('file', new Blob([fileBuffer]), path.basename(inputPath));
const upload = await fetch('https://api.compress-glb.com/api/1/files/upload/sync', {
method: 'POST',
headers: { 'Authorization': '<API_KEY>' },
body: formData
});
const [job] = await upload.json();
const compressed = await fetch(job.compressed_file_url);
fs.writeFileSync(outputPath, Buffer.from(await compressed.arrayBuffer()));
}