Image to Depth Map estimates how near or far every part of a photo is and draws it in grey: white is near, black is far.
The screen at a glance

- Drop zone: Drop your file here, or click to pick one. It is read in this browser tab and never uploaded.
- Style: How the result is shown: greyscale, inverted or in colour.
- Far cut-off: Pushes the far end of the depth range to black.
- Near cut-off: Pushes the near end of the depth range to white.
- Contrast curve: Spreads the grey levels more toward near or far.
- Output: The container and codec of the result.
- Generate depth map: Starts the work. The result appears below, ready to download.
Step by step
- Drop a photo. The first time, the depth model downloads once and stays in your browser cache.
- Press Generate depth map.
- Adjust Far cut-off, Near cut-off and Contrast curve until the subject separates well from the background. Switch the style to inverted or colour if your app expects it.
- Choose 8-bit or 16-bit PNG and download.
The result

The result shows its size and format. Check it, then press Download.
Tips
- Use 16-bit for displacement in Blender or After Effects: it avoids stair-steps.
- The depth is relative, not in metres.
More background: What is a depth map?.