Labs Pro?Start a project ↗
File format converter

glTF to GLB converter

Select one glTF and its referenced local resources to create one GLB. This glTF to GLB converter packs the .gltf JSON, its BIN buffers and its PNG or JPEG images into a single binary file. It does not rebuild geometry, resize textures or repair the scene, so keep the original files until you have checked the GLB.

Repackage locally

Select local files.

Select the complete package

A glTF is often several files. The .gltf is the JSON scene description, and it points to its BIN buffers and image files by name. Select the .gltf and every file it references in the same selection. The packer reads only the files you select. It does not fetch remote URLs, and it stops if a referenced file is missing, if two files could match one reference, or if a path points outside the selected files.

An illustrative glTF package (example file names)
FileWhat it holds
desk-lamp.gltfThe JSON scene: nodes, meshes, materials and the names of the files it uses.
desk-lamp.binBinary buffers: vertex positions, normals, UVs, indices and any animation data.
desk-lamp-basecolor.pngA texture image the glTF references.
desk-lamp-normal.jpgAnother texture image the glTF references.

Example names only. Select all four together; the result is one GLB holding the same data.

Keep the original names and files until you have checked the output. If an image is reported missing, find the file the glTF actually references. Renaming another image to match only hides the problem. The Try an original synthetic sample button selects four XO3D test files (triangle.gltf, triangle.bin, uv.bin and blue.png) so you can see a complete selection.

What the packer accepts

ItemThis packer
glTFExactly one .gltf file per run, glTF 2.0, with JSON of 8 MiB or smaller.
ResourcesThe local BIN, PNG and JPEG files the glTF references.
Selected filesUp to 128.
Combined sizeUp to 64 MiB in total.
ExtensionsCore glTF 2.0 plus the documented material, texture-transform, light and quantisation extensions supported by the local packer. Draco, meshopt and custom extensions are not supported.
OutputOne GLB file, downloaded as packed-model.glb.

These are this packer's limits, not limits of the glTF format. MiB is a binary unit: 64 MiB is 67,108,864 bytes, slightly more than 64 MB.

Packing is not optimising

Putting the files into one container does not simplify geometry, resize textures, repair topology or prove the model looks right. A GLB can still be heavy or invalid. Geometry, material and animation values are repackaged, not regenerated, but compare the output before you rely on any value being unchanged. Importing a model into another application and exporting it again is a different operation, even when both are called conversion.

JobWhat it doesWhere
PackCollects the JSON, buffers and images into one GLB.This page
ValidateChecks the file's structure against the glTF specification.glTF validator
Compress texturesMakes embedded images smaller, as a separate, checked step.GLB compressor
InspectShows the model so you can look at shape, materials and scale.GLB viewer, then your destination viewer
Repair or simplifyFixes or reduces geometry.Your modelling application, before you export

Check the GLB before you hand it over

  1. Keep the source package exactly as it was.
  2. Pack the files and download the GLB.
  3. Validate the GLB structure and read any errors before you go further.
  4. Open the GLB in the viewer or application it is meant for. The GLB viewer is a quick first look, not a substitute.
  5. Compare it with the source: geometry, materials, animation if there is any, and one dimension you know.
  6. Review the metadata. The GLB carries the original glTF JSON, so fields such as the generator name, copyright and extras travel with it.
  7. Record the target application and its version alongside the file.

A clean validator report does not prove that the model looks right, that it is fit for engineering use or that a platform will accept it.

If it cannot pack

When packing stops, the status line gives the reason and no GLB is produced. Go back to the source export and select a complete, supported set of local files.

ReasonWhat to do
A resource is a remote URLExport again with the resources as local files beside the .gltf, then select them.
A path points outside the selected filesExport again with simple relative paths, so each file sits beside the .gltf.
A referenced file is missingSelect the .gltf and every BIN and image file it names, in one selection.
A file name is ambiguousTwo selected files could match one reference. Give the files unique names in the source export.
Draco, meshopt or a custom extensionExport an uncompressed core glTF 2.0 copy from the source application.
Over a limitCheck you selected the right files. Reduce the scene on purpose in the source application if you need to.

Do not delete meaningful scene data just to get past an error. Packing does not repair files, download remote resources or undo a lossy export.

Recommended workflow

  1. Select the complete local resource set. Choose one .gltf and its referenced local BIN, PNG and JPEG files together.
  2. Package the scene. Run locally and download the GLB. Your source files stay unchanged.
  3. Validate and inspect. Use the glTF validator for structural checks, then inspect appearance and scale in the destination viewer.

Other directions and formats

To go the other way, extract JSON and BIN from GLB. If you need a different format, such as OBJ, FBX or STL, choose a file handoff first. Packing into GLB and converting between formats are different jobs.

Guides for this tool

Frequently asked questions

What is the difference between glTF and GLB?

A glTF is usually a JSON file plus separate BIN files for geometry and image files for textures. A GLB holds the same kinds of data in one binary file. Both are glTF 2.0. GLB is the single-file form, which is easier to hand over because nothing can get left behind.

Which files do I select?

The .gltf and every BIN, PNG and JPEG file it references, together in one selection. Up to 128 files and 64 MiB in total, with glTF JSON of 8 MiB or smaller.

What do I download?

One GLB file, packed-model.glb, holding the scene JSON, buffers and images. To get separate JSON and BIN files back from a GLB, use GLB to glTF.

Does this rebuild or simplify my model?

No. It repackages glTF scene data and binary resources. It does not decimate meshes or re-encode textures.

Why did packing stop?

The status line gives the reason. Common causes are a missing or remote resource, an ambiguous file name, a path outside the selected files, Draco, meshopt or custom extensions, or a file over the limits. No GLB is produced until the selection is complete and supported.

Are files uploaded?

No. Selected model resources are read locally in your browser; remote URLs are not fetched.

Will the GLB work in my viewer or AR app?

Not guaranteed. Packing does not check how a viewer will display the file. Validate the GLB, then open it in the viewer you are delivering to.

Related conversions

This converter is free to use. Check the downloaded file in its destination application. Use the 3D File Format Converter Guide to plan the handoff, or discuss a production brief with XO3D.