AI Depth Map Generator
Generate a depth map from any single photo. Drop in an image and the Depth Anything model estimates how near or far every pixel is, then this tool colorizes that map so you can read it at a glance: blue or dark for far, warm or bright for near. Switch colormaps or invert the depth without re-running the model, and download the result as a PNG. The model runs entirely in your browser, so nothing is uploaded. It downloads once on first use, then is cached.
How to generate a depth map from a photo
- Drop an image in, or click to browse.
- Wait a few seconds while the AI estimates depth across the photo.
- Pick a colormap or invert it, then download the depth map as a PNG.
Examples
Photo to depth map
A portrait with a person in front of a distant background
A depth map: the person bright (near), the background dark (far)
Frequently asked questions
Is my image uploaded anywhere?
No. The AI depth model runs entirely in your browser with WebAssembly. The image is processed on your device and never uploaded. Only the model itself is downloaded, once, then cached for instant reuse.
What is a depth map and what is it used for?
A depth map encodes how near or far each pixel is as a brightness value. They drive 3D photo and parallax effects, depth-aware background blur (portrait mode), relighting, occlusion in AR, and displacement maps for 3D art and game assets.
Which model generates the depth map?
Depth Anything (small), a state-of-the-art monocular depth estimator that infers depth from a single ordinary photo, no special camera or stereo pair needed. It runs locally via transformers.js.
What do the colors mean?
Brightness encodes distance: by default near is bright and far is dark, with optional Turbo, Viridis, or Inferno color ramps for contrast. Toggle invert to flip near and far. Changing the colormap or invert re-colors the existing map instantly without re-running the model.
Why does the first run take a moment?
The AI model downloads the first time you use the tool, then is cached for instant reuse. Larger images also take a little longer because more pixels are analyzed.
Related tools
AI Background Remover
Remove the background from a photo automatically with AI, right in your browser. Get a transparent PNG or a solid color. Nothing is uploaded.
Image to Text (OCR)
Extract text from an image with OCR, right in your browser. Supports many languages, copy or download the result. Your image is never uploaded.
AI Image Upscaler
Upscale and enhance images with AI in your browser. Increase resolution 2x or 4x with sharp detail, no blur. Free, private, nothing uploaded.
Add Border to Image
Add a colored border or frame around an image, with adjustable width and color. Live preview, runs in your browser, nothing uploaded.
AI Alt Text Generator
Generate accessible alt text for any image with AI, right in your browser. Copy clean alt text or a ready HTML img tag. Nothing is uploaded.
APNG Detector
Check whether a PNG file is an animated PNG (APNG) in your browser. See the frame count, loop count, and dimensions read straight from the file. Private.