
TL;DR
- Choose GLB for most delivery workflows because geometry, materials, and textures can travel in one file. Choose separate glTF when you want inspectable JSON and independently managed assets.
- Use an online converter for a quick one-off job, Blender when materials or animation need attention, and command-line tools for repeatable batches.
- If you do not have a usable source model, Tripo can generate an asset and export it as GLB, avoiding an unnecessary conversion step.
Introduction
You have an FBX from a DCC package, an OBJ from a scan, or an STL from a CAD tool, but your web viewer or real-time pipeline expects glTF or GLB. The real question is not simply how to convert 3D models to glTF. It is which conversion path will preserve the parts you care about, such as scale, materials, textures, hierarchy, and animation.
This guide covers four practical routes. You can use a browser tool for a fast one-off conversion, export through Blender for hands-on control, automate batches with command-line utilities, or generate a new GLB asset with AI when no good source file exists. Start by choosing the output container, then use the method that matches the source format and the amount of cleanup it needs.
glTF vs GLB: Which Format Do You Actually Need?
glTF (.gltf). A glTF file is JSON text that describes the scene and points to binary geometry data, usually in a .bin file, plus external images. It is easy to inspect, diff, and adjust during development. The tradeoff is packaging: every referenced file must stay at the correct relative path.
GLB (.glb). GLB is the binary container for the same glTF scene. It can package the scene description, buffers, and images into one transferable file. That makes it convenient for storefront viewers, demos, AR delivery, and engine handoff, especially when a single upload is easier to manage.
Use separate glTF when your team wants readable JSON or manages textures independently. For most production delivery, choose GLB unless the destination specifies otherwise.
Method 1: Online Converters With No Install
Online tools work best for one-off files that need little repair. Keep source materials and textures together before uploading.
Babylon.js Sandbox
Babylon.js Sandbox is useful for OBJ, STL, glTF, and GLB assets. Drag a supported file onto the page, inspect the rendered result, then use the Inspector's export tools when a GLB download is available. It is free and does not require an account, but it is not a general FBX or DAE importer. Material fidelity still depends on what the source format can describe and what its loader can recover.
Cesium ion
Cesium ion accepts formats including OBJ, FBX, DAE, glTF, and GLB. After upload, select the 3D model workflow when you want a model converted to glTF rather than a tiled geospatial dataset. An account is required, and the service is most relevant when the asset will be used with maps, large scenes, or Cesium's 3D Tiles pipeline.
Tripo 3D Tools
For a straightforward browser workflow, Tripo's 3D format converter handles common 3D format pairs. It suits quick jobs where you already trust the mesh and materials and mainly need a different container.
Browser conversion gives you fewer repair options than Blender. Large uploads, proprietary FBX shaders, missing texture paths, and animation edge cases are good reasons to move to a desktop or scripted workflow.
Method 2: Blender Export to glTF or GLB
Blender is the most flexible free route because you can inspect the asset before export. It is usually the best answer when a conversion needs material correction, transform cleanup, or animation review.
Step 1: Import the source file
Choose File > Import, then select the matching importer for FBX, OBJ, STL, or Collada. For an OBJ with several named meshes, enable Split by Object if you want separate objects in Blender. After import, check that the expected meshes, materials, armature, and animation data appear in the Outliner.
Step 2: Check scale and orientation
Use front and side orthographic views to inspect the model and compare its dimensions with a known measurement. Unit conventions vary across authoring tools, so do not assume the imported scale is correct. Fix rotation and size first, then select the relevant objects and use Ctrl+A > Rotation & Scale so the exporter receives clean transforms.
Step 3: Verify materials
The glTF exporter maps Blender's Principled BSDF workflow to glTF's metallic-roughness material model. In the Shader Editor, confirm that color, roughness, metallic, and normal textures feed the expected Principled inputs. Custom procedural node groups or legacy shaders may need to be baked or rebuilt before they can travel reliably.
Step 4: Export glTF 2.0
Choose File > Export > glTF 2.0. Select glTF Binary (.glb) for one file or glTF Separate (.gltf + .bin + textures) for an inspectable package. Enable Selected Objects when you do not want the whole scene. Use Apply Modifiers when the evaluated mesh, rather than the original modifier stack, should be exported. Turn on animation export only when the target needs the clips.
Step 5: Validate the result
Open the output in an independent viewer or destination application. Check silhouette, dimensions, materials, texture orientation, hierarchy and animation clips; an export success message alone cannot confirm these.
Method 3: CLI Tools for Batch Conversion and Pipelines
Command-line tools suit build systems, asset libraries, and repeatable jobs. Pin versions and validate output automatically.
obj2gltf for OBJ conversion
Cesium's obj2gltf converts OBJ geometry and its MTL materials to glTF or GLB. Keep the .obj, .mtl, and referenced textures together.
npm install -g obj2gltf
obj2gltf -i model.obj -o model.glb
gltf-pipeline for post-processing
gltf-pipeline works on existing glTF or GLB files. It does not import FBX or OBJ, so place it after conversion. The following command applies Draco mesh compression:
npm install -g gltf-pipeline
gltf-pipeline -i model.glb -o model-draco.glb -d
Assimp for broader source formats
Assimp supports a broad collection of importers and glTF 2.0 exporters. Package names differ by platform, but common installations are brew install assimp on macOS and apt install assimp-utils on Debian-based Linux. Test the exact source format and animation path before using it at scale.
| Source and goal | Suggested pipeline | Why |
|---|---|---|
| OBJ to web GLB | obj2gltf, then gltf-pipeline | Focused conversion with optional Draco post-processing |
| FBX to automated GLB | Assimp, then gltf-pipeline | Broad import support without opening a DCC app |
| Existing glTF optimization | gltf-pipeline or gltfpack | Optimize a file that is already in the glTF family |
gltfpack optimizes meshes and can process textures. Compare it with gltf-pipeline on file size, decoding support and visual quality in the destination runtime before standardizing a pipeline.
Method 4: Generate Directly as GLB With Tripo
Convert an existing asset when its geometry is worth preserving. Generate a new model when you have only a reference, concept or placeholder that would need rebuilding.
Step 1: Open the workspace
Open Tripo Studio in a browser. Use the Model workspace to enter a prompt or upload a reference; inspect the resulting asset before exporting.

Figure 1. Open the English Tripo Studio workspace and confirm that the model-generation panel is ready before adding a prompt or reference image.
Step 2: Create the source model
Use text-to-3D for a concept described in words, or image-to-3D when a product photo or concept image should guide the shape. Give the prompt or reference enough information about proportions, view, and surface character.
The screenshots below follow one existing monster asset through mesh inspection, UV review, texturing and GLB validation. They do not record a new source-generation run.

Figure 2. Define the source model with a specific text prompt before generation; This example records the intended stance, silhouette, horns, armor, and limb structure.
Step 3: Review and refine
Inspect the silhouette, thin parts and topology. In this example, Studio reports 6,309 quad faces and 5,597 vertices. The 10,000-face field is a retopology target; it does not show that a new reduction has finished.

Figure 3. Check the current mesh statistics before deciding whether to run retopology. The target field is separate from the existing result.
Check UV coverage before texturing. The saved layout below reports 72.7% utilization. Smart UV warns that saving a new unwrap removes the current texture, so inspect the existing layout before rerunning it.

Figure 4. Review the saved UV islands and seam overlay for the same monster. This is the existing layout, not a new unwrap submitted during this check.
Use a texture prompt to define surface colors without changing the mesh. Here, the input calls for teal armor, copper edging and ivory horns; the same model appears beside the prompt. This is texturing input, not the original model-generation prompt.

Figure 5. Compare the texture prompt with the resulting colors and silhouette before exporting.
Step 4: Export as GLB
Select GLB, check the filename and texture resolution, then export. Studio also offers USD, FBX, OBJ, STL and 3MF. Use GLB for a single-file handoff and confirm the destination supports the material extensions in the file.

Figure 6. Export the colored monster as GLB with its current 2K texture. The format and texture controls are both visible.
Step 5: Test in the target runtime
Reopen the downloaded GLB in an independent viewer. Our 1,115,532-byte file opens in Babylon.js Sandbox with the teal armor and ivory horns visible. Inspection confirms UVs and one embedded 2048 × 2048 base-color JPEG. This file has no separate normal or rough textures; The check does not verify every PBR map, physical dimensions, animation or performance in a production engine.

Figure 7. The downloaded colored GLB opens in Babylon.js Sandbox; the inspector displays its embedded base-color texture beside the same model.
Troubleshooting Common glTF Conversion Problems
Problem 1: Textures are missing
Cause: The source file points to images through external paths that the converter cannot resolve. An OBJ may also be separated from its MTL file.
Fix: Put the source, material file, and textures in one folder before conversion. In Blender, confirm every image resolves, then use File > External Data > Pack Resources before saving the working file and exporting again.
Problem 2: The model looks white or incorrectly shaded
Cause: Geometry exported, but the source material used a shader that does not map cleanly to glTF metallic-roughness.
Fix: Rebuild the material around Principled BSDF in Blender. Connect the normal map through a Normal Map node, check color-space settings for data textures, and re-export.
Problem 3: Scale is wrong
Cause: The source application's unit convention or unapplied object transforms carried into the output.
Fix: Compare the model with a known dimension, correct it in Blender, and apply rotation and scale before export. For a CLI conversion, add an automated bounds check because Assimp output follows the source data.
Problem 4: Animation is absent or broken
Cause: The chosen path may not support the source animation, or the export omitted clips, skinning, or required objects.
Fix: For animated FBX, Blender provides a visible inspection and export path. Confirm the armature and actions after import, enable animation in the glTF exporter, then test every clip in a separate viewer.

Figure 9. Diagnose textures, materials, scale, and animation separately after conversion.
Frequently Asked Questions
What is the difference between glTF and GLB?
glTF commonly uses readable JSON with external buffers and images. GLB packages the same glTF asset into one binary file, which is usually easier to upload and deliver.
How do I convert an OBJ file to glTF?
Use obj2gltf -i model.obj -o model.glb for a repeatable command-line path. Keep the OBJ, MTL, and texture files together, or use Blender when the materials need repair.
How do I convert FBX to glTF without Blender?
Assimp can convert supported FBX files through its CLI, and Cesium ion offers a cloud route for suitable assets. Always test materials and animation because FBX content varies by exporter and version.
Can I convert STL to glTF?
Yes. Import the STL into Blender, set its scale and orientation, assign a material, and export glTF 2.0. STL carries mesh geometry but not the PBR material setup expected by glTF.
How can I reduce a glTF file after conversion?
Use gltf-pipeline for Draco mesh compression or evaluate gltfpack for mesh and texture optimization. Compare visual quality, download size, and decoder support in the target application.
Why are textures missing after converting FBX to glTF?
The FBX may reference images that were not available to the importer, or its shader may not map to glTF. Open it in Blender, repair the image paths and Principled BSDF material, then export a GLB and verify it.
What free online tools can convert 3D models to glTF?
Babylon.js Sandbox handles supported browser-friendly formats, while Tripo's online 3D converter covers common format pairs. Cesium ion also has an account-based cloud workflow for model conversion and geospatial processing.
Does Tripo export glTF or GLB directly?
Tripo Studio exports GLB directly, along with USD, FBX, OBJ, STL, and 3MF. Use GLB for a single-file handoff, then validate the asset in its final viewer or engine.
Conclusion
The best method depends on the asset. Browser tools suit quick supported conversions, Blender gives you control over transforms, materials, and animation, and CLI tools make batches repeatable. When you are deciding how to convert 3D models to glTF, choose GLB for simple delivery unless the destination specifically benefits from separate glTF files.
If no usable source model exists, you can generate and export a GLB in Tripo Studio. Review Tripo Pricing when you need to compare generation capacity and plan limits for a larger asset workflow.



