How to Make a Depth Map from a Photo (Free Step-by-Step Guide)
Step-by-step guide to making a clean depth map from any photo free online, tuning contrast & smoothing, and exporting for Photoshop, LightBurn & Blender.

You no longer need LiDAR cameras, complex 3D modeling software, or hours of hand-painting in Photoshop to create an accurate depth map. Here is how to make a depth map from a photo online in under a minute—completely free and privately in your browser.
Step 1: Start with a Good Source Photo
Every depth map begins with a clear input image. While AI can estimate depth from almost any picture, you will get the cleanest results when your photo has:
- Clear separation between subject and background (portraits, sculptures, products, architecture, or layered landscapes).
- Even, natural lighting without heavy harsh glare or pitch-black shadows.
- Sharp focus on the hero subject (PNG, JPG, or WebP).
New to depth maps? Read What Is a Depth Map? first to understand how white and black brightness levels work.
Step 2: Generate the Depth Map Online
- Open the free AI Depth Map Generator.
- Drag and drop your photo into the upload box—or click Choose Image to browse your computer.
- Wait a moment while your browser processes the photo privately on your device (nothing is uploaded to a server).
- Once finished, drag the Original / Depth Map slider left and right to verify that foreground elements appear bright white and distant background areas appear dark.
If your image contains fine hair, intricate jewelry, or delicate relief carvings, switch the top quality toggle from Fast to High Detail for sharper silhouettes.
Step 3: Fine-Tune Depth, Cutoff & Smoothness
Raw depth maps often benefit from 15 seconds of quick adjustment in the right-hand Depth Controls panel before downloading:
- Drop Busy Backdrops (
Far Clip): Raise Far Clip slightly (5%–20%) to push distracting backgrounds cleanly down to solid black (#000000). - Boost Subject Volume (
Contrast&Gamma): Increase Contrast or adjust Gamma to make foreground features pop or lift mid-tone details. - Smooth Noisy Surfaces (
Surface Smoothing): Keep at0 pxfor sharp masks and ControlNet, or raise to2–4 pxfor 3D laser engraving, CNC wood carving, and 3D parallax photos so edges glide smoothly. - Flip Polarity (
Invert Depth Direction): Keep the default White = Near for most software, or toggle Invert if your workflow requires dark foregrounds.
Step 4: Export the Right Format for Your Project
Choose your export format based on where you plan to use the depth map next:
1. Photoshop Lens Blur (Realistic Portrait Bokeh)
- Download 8-bit PNG (Grayscale, White = Near,
0–1 pxsmoothing). - Open your original photo in Photoshop, go to the Channels panel, add a new Alpha channel, and paste your depth map into it.
- Run Filter → Blur → Lens Blur, set Source to Alpha 1, and click anywhere on your photo to choose the exact focal plane.
2. LightBurn 3D Laser Engraving (Wood, Slate & Coins)
- Use our pre-tuned Laser Engraving Depth Map preset with
2–4 pxsmoothing and slight Far Clip. - Download the PNG (or 16-bit PNG for deep metal reliefs).
- Import into LightBurn, set Image Mode to 3D Sliced (for fiber/MOPA lasers) or Grayscale (for CO2), and verify that raised areas are white.
3. CNC Relief Carving & Blender Displacement
- Switch to our CNC 16-bit Relief Heightmap preset and click Download 16-bit Heightmap PNG.
- Import into Vectric Aspire (Create Component from Bitmap), Carveco (Relief from Image), or Blender's Displace Modifier (set Image Texture Color Space to Non-Color).
4. Facebook 3D Photos & 3D Parallax Clips
- For Facebook 3D Photos: save your original image as
photo.jpgand your exported grayscale depth map asphoto_depth.jpg, then upload both files together in a single post. - For instant animated 3D videos: click the 3D Parallax tab (or visit our 3D Parallax Photo Generator) to preview Orbit/Sway/Dolly motion and click Export 3D Clip.
5. ControlNet, ComfyUI & Flux Depth
- Open the ControlNet Depth Map preset (
0 pxsmoothing, White = Near), download the PNG, and feed it directly into your ControlNet node with Preprocessor set to None.
Quick Troubleshooting Tips
- Reflections & Glass: Mirrors, windows, and shiny water can confuse single-photo depth estimation. If a mirror creates an uneven patch, gently increase Surface Smoothing or paint over the mirror area in Photoshop/GIMP with a soft gray brush matching the surrounding wall.
- Cluttered Background Behind a Portrait: Increase Far Clip until the background flattens to black while your subject remains cleanly shaded.
- Need Depth for a Video Clip Instead? Switch to our dedicated Video to Depth Map Generator with built-in Anti-Flicker Smoothing.
Try it free right now
Generate a grayscale or 16-bit depth map from your own photo in seconds — 100% private in your browser.
Continue Reading
Depth Anything V2 vs Depth Anything 3 vs Video Depth Anything vs Marigold: Which Online Tool Should You Use?
An honest technical comparison of Depth Anything V2, Depth Anything 3, Video Depth Anything, DepthCrafter, Marigold, and Apple Depth Pro—and which online tool fits your workflow.
Photo GuidePortrait & Landscape Depth Maps: Fine Hair, Glasses, Skies, Reflections & High-Res Export Guide
How to generate accurate depth maps for portraits (fine hair, glasses, Photoshop Lens Blur) and outdoor landscapes (horizons, skies, water & mirror reflections) at full resolution up to 4K.
Video VFXHow to Convert Video to Depth Map & PNG Sequence Online (Minimizing Temporal Flicker)
Complete workflow for converting MP4, WebM, or MOV videos into grayscale depth maps, previewing every frame before downloading, exporting 8-bit or 16-bit PNG sequences as ZIP, and minimizing flicker.
BasicsWhat Is a Depth Map? A Simple Guide to White, Black, 8-Bit & 16-Bit Depth
Learn what a depth map is, how white vs. black values work, 8-bit PNG vs. 16-bit heightmaps, and how creators use them for 3D photos, lasers & CNC.