Glyph WidgetsGlyph Widgets
À proposContactBlogConfidentialitéConditionsSoutenir sur Ko-fi

© 2026 Glyph Widgets. Tous droits réservés.

·

Traitement 100% côté client

Retour au blog

glTF and GLB 3D Model Viewer Online

Online glTF and GLB 3D model viewer with orbit controls, 5 lighting presets, exposure and shadow adjustments, screenshot export. No login.

Glyph Widgets
27 février 2026
10 min read
gltf viewerglb viewer3d model viewergltf onlineglb preview

What Is glTF / GLB 3D Model Viewer?

The glTF / GLB 3D Model Viewer lets you open and inspect .gltf and .glb 3D model files directly in your web browser — no software installation, no account, and no file upload to a server. Drag in a model and immediately orbit, zoom, and pan around it using your mouse. The tool is powered by Google's model-viewer web component, the same production-quality renderer used in Google Search's 3D product previews and AR Quick Look. You can switch between five environment lighting presets, adjust exposure and shadow intensity, toggle auto-rotate, and export a screenshot of the current view.

Key Features

  • Drag & drop glTF and GLB support — drop a .gltf or .glb file; non-matching extensions show an "invalid file" error before loading
  • Orbit, zoom, and pan controls — left-click drag to orbit, scroll to zoom, right-click drag to pan; camera-controls is enabled on the <model-viewer> element
  • Auto-rotate toggle — a Switch control enables or disables the auto-rotate attribute on the <model-viewer> component; on by default
  • Five environment lighting presets — Neutral, Warm, Legacy, Commerce, Spruit Sunrise; maps directly to the environment-image attribute
  • Exposure adjustment — a slider from 0.1 to 3.0 (step 0.1); default is 1.0, displayed as 1.0
  • Shadow intensity adjustment — a slider from 0.0 to 2.0 (step 0.1); default is 1.0; maps to the shadow-intensity attribute
  • Screenshot export — calls modelViewer.toBlob() and saves as {modelName}_{aspectRatio}_{lighting}_{resolution}.png (e.g., chair_free_neutral_viewport.png)
  • Aspect ratio presets — choose from Free, 1:1, 4:3, 16:9, 9:16, 3:2, and 21:9 aspect ratios for the viewer, useful for framing screenshots at specific proportions
  • Multiple upload methods — upload a single .gltf/.glb file, a ZIP archive containing a glTF bundle with external textures and buffers, or an entire folder
  • Powered by Google model-viewer — production-quality WebGL rendering with PBR (physically-based rendering) material support

How to Use glTF / GLB 3D Model Viewer

Step 1: Load Your 3D Model

Open the glTF / GLB 3D Model Viewer. Drag a .gltf or .glb file from your file system onto the drop zone. Alternatively, click the drop zone to open a file picker (the accept attribute is set to .gltf,.glb). The model loads using a local object URL — no data is sent over the network.

If you drop a file with an unsupported extension, a toast notification reads "Invalid file" and nothing loads.

Step 2: Navigate the Model

Once loaded, the viewer shows the model in a 500px-tall viewport. Use your mouse to navigate:

  • Left-click and drag — orbit around the model
  • Scroll wheel — zoom in and out
  • Right-click and drag — pan the camera

Touch gestures work equivalently on mobile: one-finger drag to orbit, pinch to zoom, two-finger drag to pan.

The model name appears in the control panel in monospace font. Click Load New Model at any time to unload the current model and return to the drop zone.

Step 3: Adjust Lighting

In the controls panel on the right, select one of the five environment lighting presets by clicking its name:

PresetCharacter
NeutralBalanced, studio-style white light
WarmWarm amber tones, like late afternoon sun
LegacyClassic rendering used in older viewers
CommerceHigh-contrast, clean look for product shots
Spruit SunriseOutdoor sunrise with natural color cast

The selected preset highlights with a filled background. Changes apply instantly — no reload required.

Step 4: Fine-Tune Exposure and Shadow

Below the lighting presets, two sliders give you additional control:

  • Exposure (0.1–3.0) — increases or decreases the overall brightness of the scene. A value of 1.0 is the neutral reference. Try 1.5–2.0 for dark models that need brightening.
  • Shadow Intensity (0.0–2.0) — controls how sharp and dark the ground shadow appears beneath the model. Set to 0.0 to remove the shadow entirely.

Both values update the <model-viewer> attributes in real time.

Step 5: Toggle Auto-Rotate and Export Screenshot

Use the Auto Rotate toggle switch to start or stop the model slowly spinning on its vertical axis. Auto-rotate is on by default, giving you a hands-free view of the full model.

When you have the view positioned as you want, click Screenshot. The tool captures the current render and downloads the result as a PNG file named with the model name, aspect ratio, lighting preset, and resolution (e.g., chair_free_neutral_viewport.png). You can also choose a specific screenshot resolution from the controls panel — options include Viewport (current size), 720p, 1080p, 2K, and 4K. If the screenshot API is unavailable, a toast error appears.

Practical Examples

Reviewing a Game Asset Before Integration

A game developer receives a character model as player-character.glb. They drag it into the viewer to verify the asset looks correct: check the polygon count appears reasonable from the detail level, confirm the textures are applying correctly under Neutral lighting, and switch to Warm lighting to preview how the character looks in an outdoor scene. They export a screenshot to attach to the review ticket.

Checking a Product Model for an E-Commerce Listing

An e-commerce team receives a 3D product model from a supplier in .glb format. They load it in the viewer, select the Commerce lighting preset (optimized for clean product photography), adjust exposure to 1.4 for extra clarity, and reduce shadow intensity to 0.5 for a softer look. They export a screenshot to use as the static fallback image on the product page.

Validating a glTF Export from Blender

A 3D artist exports a scene from Blender as a .gltf file and opens it in the viewer to do a quick sanity check: Does the model load without errors? Are the materials rendering with correct colors? Is the scale reasonable? The viewer's orbit controls let them examine all sides quickly. The Spruit Sunrise preset helps verify how the model looks in natural outdoor light.

Tips and Best Practices

The idealAspect: true parameter in the screenshot export makes the captured image match the viewer's current aspect ratio rather than forcing a square crop. If your model is wider than tall, the screenshot will reflect that.

The model-viewer web component supports PBR (physically-based rendering) materials defined in the glTF spec. If a model appears flat or washed out, check that it was exported with PBR materials from your 3D software. Models exported without material data will render in the default gray shading.

For .gltf files with external texture references, loading via the file picker may fail to resolve the texture files since the browser cannot access other files in the directory. Use .glb format (which embeds all textures) for reliable loading in the browser.

The viewer renders at 500px height regardless of the model's dimensions. Use the orbit controls to position the model, then take a screenshot — the screenshot captures the render at the actual display dimensions.

Common Issues and Troubleshooting

"Invalid file" error. The tool only accepts files ending in .gltf or .glb (case-insensitive check using .match(/\.(gltf|glb)$/i)). Rename your file if needed, or check that your export tool is producing the correct format.

Model loads but textures are missing. If you are loading a .gltf file (the JSON variant), the associated texture image files and binary buffer files must be in the same directory. The browser's file picker only grants access to the single selected file, not the directory. Use the .glb format to bundle everything into one file.

Screenshot fails with "Screenshot error" toast. The model-viewer.toBlob() method requires WebGL to be available. If your browser has WebGL disabled or the graphics driver is blocking it, screenshots will fail. Check chrome://settings/graphics (Chrome) or equivalent.

Auto-rotate does not stop. The Auto Rotate toggle controls the auto-rotate attribute in real time. If toggling it does not stop rotation, try clicking the model to regain camera control (this also pauses auto-rotate per model-viewer's default behavior).

Privacy and Security

The glTF / GLB 3D Model Viewer loads your model files using browser-local URL.createObjectURL() — the data never leaves your device. The Google model-viewer component is loaded as a JavaScript library and renders entirely on your GPU via WebGL. No model geometry, textures, or metadata is transmitted to any server. This makes the tool safe to use with proprietary 3D assets, unreleased products, or confidential industrial designs.

Frequently Asked Questions

Is glTF / GLB 3D Model Viewer free to use?

Yes, completely free with no account required and no usage limits. It is part of the Glyph Widgets free tool suite.

Does glTF / GLB 3D Model Viewer work offline?

Once the page has loaded (including the @google/model-viewer component), you can load and view local model files without an internet connection. The initial page load requires network access to download the viewer library.

Is my data safe with glTF / GLB 3D Model Viewer?

Your model files are loaded via URL.createObjectURL() and rendered locally in WebGL. No geometry, texture, or metadata is sent to any server. Google's model-viewer component runs entirely in the browser.

What file formats does the tool support?

Only .gltf (JSON + external files) and .glb (binary bundled format). Other 3D formats (.obj, .fbx, .stl, .dae) are not supported. Convert to glTF using tools like Blender or Khronos' glTF converter before loading.

What is the difference between glTF and GLB?

glTF is a JSON text file that references external binary buffers and texture images. GLB is the binary container format that bundles the JSON, buffers, and textures into a single file. For browser loading, GLB is strongly preferred because all assets are self-contained.

What are the available lighting presets?

The five presets are: Neutral (balanced studio lighting), Warm (amber/warm tones), Legacy (classic rendering), Commerce (clean, high-contrast product lighting), and Spruit Sunrise (natural outdoor light). These map to the environment-image attribute of the model-viewer component.

What does the exposure slider do?

Exposure adjusts the overall brightness of the rendered scene from 0.1 to 3.0. The default is 1.0. Values above 1.0 brighten the scene; values below 1.0 darken it. This is equivalent to the exposure setting in photography or in a renderer.

Can I view animated glTF models?

The model-viewer component supports glTF animations, but the Glyph Widgets interface does not expose playback controls for animations. Auto-rotate is the only motion feature in the current UI. If you need to preview glTF animations, use a dedicated tool like the Khronos glTF Sample Viewer.

What resolution are screenshots exported at?

You can choose from five resolution options in the controls panel: Viewport (current display size), 720p (1280x720), 1080p (1920x1080), 2K (2560x1440), and 4K (3840x2160). At Viewport resolution, the screenshot matches the viewer's display dimensions. For higher resolutions, the tool temporarily resizes the viewer element to render at the selected resolution, then restores it.

Can I load very large GLB files?

There is no enforced size limit, but large files (50 MB+) may take a few seconds to create the local object URL and initialize the model-viewer renderer. Performance depends on your browser, GPU, and available RAM.

Related Tools

  • Image Converter — convert screenshots exported from the viewer between different image formats
  • SVG to PNG — convert SVG-based design assets that complement 3D workflows
  • EXIF Viewer — inspect metadata in photographs used as reference images for 3D modeling

Try glTF / GLB 3D Model Viewer now: Glyph Widgets glTF / GLB 3D Model Viewer

Dernière mise à jour : 27 février 2026

Continuer la lecture

Plus d'articlesEssayer glTF / GLB 3D Model Viewer