Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

Depth map generator, from one photo.

Turn a photo into a depth map, near things white and far things black, for 3D photo effects, parallax, focus blur, displacement in After Effects or Blender, or a 3D print. An open AI model, Depth Anything V2, runs in this tab, so your photo is never uploaded. Full size 8 or 16-bit PNG, a 3D motion preview and MP4, no sign-up.

Need a custom tool, app or website? Contact us 

This runs in your browser. Your pictures are never uploaded.

How it works

Three steps, nothing to install.

01 / Drop

Choose a picture

A photo, a render or a painting, or paste one. Scenes with clear near and far parts work best.

02 / Estimate

Let the AI judge distance

A few seconds. Drag across the picture to compare it with the map.

03 / Save

Shape it and save

Grey or colour, contrast, smoothing, inverted or 16-bit, as a PNG, or the picture moving in 3D as an MP4.

Guide

How to make a depth map, from a single photo.

A depth map generator turns a normal photo into a grey picture where brightness stands for distance: near things are white, far things are black, and everything in between is a shade of grey. This one uses an AI model that has learned to judge distance from one flat image, with no second camera or depth sensor. You get a PNG at the same size as your photo, ready to use as a depth or displacement map in another app.

How to use the depth map generator

  1. Drop a picture on the box, click to choose one, or paste one. PNG, JPG, WebP and HEIC all work.
  2. Wait for the AI model to download the first time. Your browser keeps it, so the next picture starts much faster.
  3. When the map appears, drag the slider across the picture to compare the Original with the Depth.
  4. Under Look, pick Grey, near is white for use in other apps, or Colour, near is warm to read the map by eye.
  5. Move Contrast to spread the greys apart or bring them closer, and Smooth to soften small bumps. Tick Invert, near is dark if your app expects the opposite. The map redraws without running the model again.
  6. Tick 16-bit PNG for displacement and 3D work, then click Download the depth map.
  7. To see the depth, click 3D motion above the picture. Pick a Motion and a Depth strength, then Save the 3D motion as MP4 for an 8 second clip.

Grey, colour or inverted: which to pick

SettingWhat it showsUse it for
Grey, near is white256 shades from black (far) to white (near)Displacement, parallax, depth blur, 3D relief. Many apps read a map like this.
Colour, near is warmYellow and pink up close, purple and dark blue far awaySeeing at a glance how the model read the scene, or a stylised image to share
Invert, near is darkThe same map flipped, so near is blackApps or effects that treat dark as close
16-bit PNG65,536 shades of grey instead of 256, in a greyscale PNGDisplacement in Blender or After Effects, relief prints, anything that shows steps
Contrast100% as the model made it; more pushes near and far apart around the middle grey, less flattens themA scene that looks too flat or too harsh in your effect
SmoothBlurs the map by up to 20 pixels of a 1,000 pixel picture, scaled to your picture's sizeRemoving small lumps before displacement

Apps read the brightness of a depth map, not its hue, so use the grey look whenever the file is going into another program. If an effect looks inside out, with the background pushing forward and the subject sinking back, tick Invert and download again.

What you can do with a depth map

  • 3D photo and parallax. Use the map to shift near pixels more than far ones as the camera moves, so a still photo seems to have depth.
  • Fake depth of field. Feed the map to a blur effect so the background gets softer the further away it is, like a wide open lens.
  • Displacement in 3D. In a 3D app, a displacement map pushes a flat plane up where the map is bright, which turns a photo into a shallow relief.
  • Relief prints. 3D printing tools that build a relief from an image read the grey as height. Check whether yours wants white or black as the tallest point, and tick Invert if needed.
  • Fog and haze. Use the map as a mask so a colour or haze builds up in the far parts of the scene.

The 3D motion preview and MP4

3D motion moves each pixel of your picture by its depth: near parts shift more than far ones, around the middle grey, which stays in place. That gives the parallax look of a 3D photo. Circle moves in a loop, Side to side and Up and down sway, and Push in moves towards the scene. Depth strength sets how far things move. The preview plays at up to 720 pixels wide; Save the 3D motion as MP4 makes two 4 second loops at 30 frames a second, up to 1280 pixels wide, as H.264. Large shifts stretch the edges of near objects, so a strength of 3 to 6 looks most natural.

Pictures that give a good map

The model judges depth from clues people use too: things that overlap, objects that get smaller with distance, the ground running away to the horizon, and haze in the far distance. A picture with a clear subject in front and a background behind it gives the cleanest result. A portrait in a room, a street, a landscape with a path or a product on a table all work well.

It finds some scenes harder. Flat walls and close-ups of a texture have few clues. Mirrors, windows and glossy screens can show a far scene on a near surface. Sky is usually read as far, so it comes out black.

Common problems and the fix

  • Steps or bands in a 3D effect. An 8-bit map has 256 grey levels, so a strong displacement can show small steps. Tick 16-bit PNG, which is made from the model's own values before they are rounded, and add a little Smooth.
  • Soft edges around hair or leaves. The model works on a smaller copy and the map is enlarged back, so thin details blur. For a cleaner edge on a person, cut them out with the transparent background maker and use that as a mask together with the map.
  • Two maps do not match. The depth is relative to each picture. White in one map and white in another are not the same distance, so make one map per picture.

If all you want is a soft background behind a person, the blur background tool does that in one step.

Questions

Good to know.

Which AI model makes the depth map?

Depth Anything V2 Small, by researchers at the University of Hong Kong and TikTok, released under the Apache 2.0 licence, in the browser version made by the onnx-community project. Its larger versions are for non-commercial use only, so this page uses the small one.

Is my picture uploaded?

No. The model is downloaded to your browser from Hugging Face, the open model library, and runs there: about 50 MB with a graphics card (WebGPU), 99 MB without. The browser keeps it for next time.

Is it real distance in metres?

No. It is relative depth: brighter is nearer than darker within the same picture, but the numbers are not metres, and two pictures cannot be compared.

How do I use it in After Effects, Blender or Photoshop?

Load the PNG as a displacement or depth map next to the original picture: a Displacement Map effect for parallax in After Effects, a displacement modifier in Blender, or Lens Blur with the map as the depth source in Photoshop. If your tool expects near to be dark, tick Invert.

Why are fine details soft?

The model works on a smaller copy of the picture and the map is enlarged back to full size, so hair, leaves and thin edges come out softer than in the photo.

What is a depth map?

A depth map is an image where each pixel's brightness stands for how far that point is from the camera. Here, bright means near and dark means far. It holds no colour of the scene, only distance.

Can I make a depth map from a photo I took on my phone?

Yes. Any normal photo works, including HEIC files from an iPhone. The model judges distance from the picture alone, so it does not need the depth data some phones store in portrait photos.

What is the 16-bit PNG for?

It stores 65,536 levels of depth instead of 256, from the model's own values, so a displacement or relief made from it has smooth slopes instead of small steps. It is a greyscale PNG that Blender, After Effects, Photoshop and most 3D tools open. The preview on the page shows the 8-bit version.

Can I turn the depth map into a 3D photo video?

Yes. Click 3D motion above the picture, pick a motion and a strength, then Save the 3D motion as MP4. It is made in your browser from the picture and its map.

What size is the depth map?

The same width and height as your picture, so it lines up pixel for pixel with the original when you stack them in another app.

Does it work on drawings, paintings or renders?

Often, yes, as long as the picture has a sense of space, such as a figure in front of a background. Flat graphic art with no perspective gives the model little to work with, so the map comes out mostly one shade.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch