---
title: "Image to GLB Converter"
description: "Turn PNG, JPG, WebP or SVG images into textured GLB 3D models. Build a flat shape or a relief, keep the image as texture, and use in web, AR, Blender or games."
toolId: "image-to-glb"
category: "conversion"
subgroup: "image-to-3d"
subgroupName: "Image to 3D Model"
url: "https://any3d.cc/en-US/tools/image-to-glb"
markdown: "https://any3d.cc/llm/tools/image-to-glb.md"
---

# Image to GLB Converter

Turn a photo or logo into a textured GLB model, flat or as a relief, right in your browser.

**Category:** 3D Format Conversion Tools (`conversion`)
**Subgroup:** Image to 3D Model (`image-to-3d`)

**HTML:** https://any3d.cc/en-US/tools/image-to-glb

> Runs entirely in the browser. Files are not uploaded to Any3D servers.

## Overview

Upload an image, choose the subject, and generate a flat shape or a relief. With One Piece + Texture (the default), the image is wrapped onto the model as a texture, so the GLB keeps every color. The file uses meters and Y-up, as glTF requires, and opens in web viewers, AR, Blender, game engines and Bambu Studio 2.7 or later. The image is processed only in your browser.

## Tips

- Use a transparent PNG, or remove the background in step 1, for a clean outline
- Pick a relief under Surface for photos; keep Flat for logos and icons
- Split by Color exports per-part colors instead of a texture

## How to Use

1. **Upload your image:** Drag in a PNG, JPG, WebP or SVG image.
2. **Choose the subject:** Check the detected subject and touch it up with the brush if needed.
3. **Generate and download GLB:** Pick a flat shape or a relief, set the size, then download the textured GLB.

## About Configuration Options

### Background Removal

- **Background Removal** (Default: Auto): Auto: transparent areas of a PNG are background; for opaque images, the Flat shape separates the subject by brightness and relief shapes use the whole image. Remove by Color: removes pixels close to the picked colors. AI Cutout: a segmentation model separates the subject. The free local option runs on your device and never uploads your image; the Cloud option processes the image on our servers and costs credits per image. Keep Full Image: keeps the whole image.
  - `auto` — Auto (Recommended)
  - `color` — Remove by Color
  - `ai` — AI Cutout (Local, Free)
  - `keep` — Keep Full Image
- **Colors to Remove** (Default: #ffffff): Pixels close to any of these colors are removed. Add a second color for gray-and-white checkerboards or two-tone backgrounds (up to {maxBackgroundColors}).
- **Color Tolerance** (Default: 15; Range: 0 – 100): Higher values also remove colors further from the picked ones. Raise it if a colored fringe remains or the background is uneven.
- **Fill Transparency With** (Default: White): Fill transparent areas with this color and keep the whole image.
  - `white` — White (Recommended)
  - `black` — Black

### Build Method

- **Build Method** (Default: Split by Color): Split by Color: each color becomes its own part, for multi-color printing; on a flat shape set the color count (1 gives a single color). One Piece + Texture: builds one complete model with the image applied as a texture (your slicer must support 3MF textures).
  - `multi` — Split by Color (Recommended): Each color becomes its own part, for multi-color printing.
  - `texture` — One Piece + Texture: Builds one complete model with the image applied as a texture, keeping every color.
- **Filament Colors** (Default: 4; Range: 1 – 16): When exporting 3MF, the texture is converted into Bambu Studio / OrcaSlicer paint that prints directly, and the model stays one piece. This is the number of filaments used; usually match the slots in your AMS.

### Shape

- **Surface** (Default: Flat (even thickness)): Choose a flat model, or a relief that rises with the image's brightness or colors.
  - `flat` — Flat (even thickness) (Recommended): The whole subject has the same thickness. Good for logos, stamps and nameplates.
  - `dark` — Dark Raised: Darker is higher. Good for black-and-white logos and photo reliefs.
  - `light` — Light Raised: Lighter is higher. Good for grayscale elevation maps (DEM) and terrain.
  - `saturation` — Vivid Raised: More vivid colors are higher; white, gray and black stay flat.
  - `custom` — Height per Color: Set a separate height for each main color.

### Size

- **Width (X)** (Default: 100mm; Range: 10mm – 500mm): Final model width, including the base. With the aspect ratio locked, the length follows the shape's proportions and does not change with Detail.
- **Length (Y)**: Locked to the width by the shape's aspect ratio. Editing it rescales the width.
- **Lock Aspect Ratio** (Default: on): When on, the height follows the width using the shape's proportions. Turn off to set width and height separately (the model is stretched).

### Flat Shape Settings

- **Brightness Cutoff** (Default: 128; Range: 0 – 255): The brightness (0-255) that separates dark from light. Higher values count more of the lighter pixels as dark; lower values keep only the darkest pixels.
- **Thickness** (Default: 10; Range: 1 – 100 · step 0.1): Thickness of the subject, not including the base.
- **Edge Rounding** (Default: 0.5; Range: 0 – 5 · step 0.1): Rounds the top edge of the outline. The value is the radius; 0 keeps a sharp edge.
- **Rounding Segments** (Default: 3; Range: 1 – 8): The number of segments used to create the bevel curve. More segments produce smoother bevels at the cost of more geometry.
- **Corner Smoothing Angle** (Default: 37; Range: 0 – 90): Corners sharper than this angle stay sharp; gentler corners are smoothed. Lower values keep more sharp corners.
- **Mesh Detail** (Default: 1; Range: 0.1 – 2 · step 0.1): Controls the resolution of the generated mesh. Higher quality produces smoother surfaces but larger file sizes.
- **Base** (Default: None): Adds a solid base under the shape. Rectangle follows the bounding box; Follow Outline follows the shape's outline.
  - `none` — None (Recommended)
  - `rect` — Rectangle
  - `outline` — Follow Outline
  - `circle` — Circle
- **Base Thickness** (Default: 2mm; Range: 0.5mm – 10mm · step 0.1mm): Thickness of the base under the shape.
- **Base Margin** (Default: 3mm; Range: 0mm – 20mm · step 0.1mm): How far the base extends beyond the shape on each side.
- **Base Segments** (Default: 64; Range: 16 – 256): Smoothness of the circular base and of rounded corners on the outline base. More segments are smoother but make a larger file.
- **Base Color** (Default: #e1e1e1): Only for 3MF export: color of the base part.
- **Subject Tone** (Default: Dark Subject): Choose whether the dark or the light parts of the image are detected as the subject. Pick Light Subject when the subject is lighter than the background.
  - `dark` — Dark Subject (Recommended)
  - `light` — Light Subject

### Relief Settings

- **Relief Height** (Default: 5; Range: 0.5 – 20 · step 0.1): The maximum height of the raised areas in millimeters. Controls the overall relief depth.
- **Base Thickness** (Default: 1; Range: 0 – 5 · step 0.1): Thickness at the lowest point of the relief; thicker is sturdier.
- **Smoothing** (Default: 2; Range: 0 – 10): Applies smoothing to the heightmap surface to reduce noise and stair-stepping artifacts. Higher values produce smoother surfaces.
- **Sampling Detail** (Default: 400; Range: 100 – 800 · step 50): Controls the detail level of the generated mesh. Higher resolution preserves more image detail but increases file size.
- **Subject Only** (Default: on): On: the removed background is not printed and the sides follow the subject's outline. Off: the background is flattened into a base plate under the subject.
- **Color Heights**: Set a height for each main color. Pixels use the closest color.
- **Edge Rounding** (Default: 0.5; Range: 0 – 3 · step 0.1): Rounds the top edge of the subject's sides; 0 keeps a sharp edge. The outline grows outward by about the radius.
- **Bottom Rounding** (Default: 0; Range: 0 – 3 · step 0.1): Rounds the bottom edge of the subject's sides; 0 keeps a sharp edge (default). The footprint stays on the outline; the upper shape grows outward by about the radius.
- **Rounding Segments** (Default: 3; Range: 1 – 10): More segments give a smoother curve.

### Edge Cleanup

- **Colors** (Default: 12; Range: 1 – 16): Number of colors kept after merging similar shades. Each color becomes its own part: this sets the parts of a multi-color 3MF and also affects how an STL is split.
- **Remove Specks** (Default: 15; Range: 0 – 200): Spots and holes smaller than this area are ignored. Raise it for noisy scans; lower it to keep tiny details.
- **Simplify Edges** (Default: 0; Range: 0 – 4 · step 0.05): Higher values give simpler edges and fewer triangles; 0 (default) follows the image exactly.
- **Edge Fit** (Default: off): Fits the subject outline and holes to straight segments. Off by default; turn on when cutout edges look jagged.

## Format Information

### Input format

- **Extension:** Image
- **Full Name:** Image File
- **Type:** Image
- **Format:** PNG / JPG / JPEG / SVG / WebP
- **Tools:** [Photoshop](https://www.adobe.com/products/photoshop.html), [GIMP](https://www.gimp.org), [Krita](https://krita.org), [Paint.NET](https://paint.net/), [Inkscape](https://inkscape.org), [Adobe Illustrator](https://www.adobe.com/products/illustrator.html), [Figma](https://www.figma.com), [Affinity Designer](https://www.affinity.studio/graphic-design-software)
- **Open With:** Image Editor, Windows Photos, Preview (Mac), Vector Editor, Web Browser, [Inkscape](https://inkscape.org)
- **Description:** Any supported image format including PNG, JPG, JPEG, SVG, and WebP. The tool automatically detects the format and applies the appropriate conversion settings.
- **Supported Features:**
  - Supports PNG, JPG, JPEG, SVG, and WebP formats
  - Automatic format detection
  - Transparency support for PNG and WebP

### Output format

- **Extension:** glb
- **Full Name:** GL Transmission Format Binary (glTF 2.0)
- **Type:** 3D Model
- **Format:** GLB
- **Tools:** [Three.js](https://threejs.org), [Babylon.js](https://www.babylonjs.com), [Blender](https://www.blender.org)
- **Open With:** [3D Model Viewer](https://any3d.cc/en-US/tools/3dmodel-viewer), [GLB Viewer](https://any3d.cc/en-US/tools/glb-viewer)
- **Description:** GLB is the binary glTF 2.0 format from Khronos Group, packing meshes, materials, textures, and animations into one file. It is the standard for Web 3D and AR/VR, used by Three.js, Babylon.js, model-viewer, and e-commerce previews for self-contained, reliable distribution.

GLB supports PBR materials, skeletal animations, Draco and Meshopt compression, suitable for web, AR, and cross-software use. However, it loses CAD parametric history when tessellated from STEP or native CAD. For 3D printing, use STL or 3MF as slicers cannot import GLB.
- **Supported Features:**
  - Single self-contained binary file
  - PBR material support (base color, metallic, roughness, normal maps)
  - Skeletal animation, skinning, and morph targets
  - Draco mesh compression and KTX2 texture compression
  - Multi-mesh nodes and scene hierarchy
- **Notes:**
  - Some 3D printing slicers cannot directly import GLB files
  - Not suitable for CAD parametric editing

## Examples

- Original
- Flat shape
- Relief

## FAQ

### What is a GLB file?

GLB is the binary form of glTF: geometry, materials and textures in a single file. It's the common format for the web, AR and real-time 3D.

### Does the GLB keep the colors of my image?

Yes. With One Piece + Texture the image is embedded as a texture. With Split by Color each color becomes its own part with its own color.

### What size is the exported model?

You set the width in millimeters; the GLB stores it in meters (the glTF unit) with Y as the up axis, so it opens at the right size in standard viewers.

### Can I 3D print a GLB?

Bambu Studio 2.7 and later can import textured glTF/GLB models and turn the texture into multi-color painting. For other slicers, use Image to 3MF or Image to STL.

### Is my image uploaded?

No. The conversion runs entirely in your browser.

### Is Any3D free?

Core features are free forever. Format conversion, model optimization, and online preview do not require an account. Some advanced features are paid.

### Are my files uploaded to your servers?

No. Files you select are processed only in your browser on this device, so they never leave your device and are never sent to our servers. We don't store any user files; after processing, related data in browser memory is released.

### Do I need to install software?

No installation required. Any3D is entirely browser-based; just open the webpage to use all features. It works on Windows, Mac, Linux, and other major operating systems.

### Is there a file size limit?

There is no cap on file size or polygon count. How large a model you can open depends on your device's memory and graphics card, and very heavy models may make the page lag or crash. Some tools do limit how many files go in at once, such as {maxBatchModels} models per batch or single images up to {maxImageSizeMb} MB in texture compression. See [Limits](/help/limits) for the full list.
