STL to depth map converter

Need a depth image of a 3D model — for a displacement map, a depth-guided AI image, a parallax effect or a 3D engraving? Drop the model, pick the side, and download an exact depth map with white nearest to you.

STL to PNGSTL to JPG3MF to PNGSTL to HeightmapSTL to Depth MapAll converters

Drop a 3D model here

or

Your files are processed on this device and never uploaded.

or try a sample STL

Reading…

An exact depth map from a 3D model

A depth map stores distance as brightness. Rendered from a 3D model, it is exact rather than estimated: this page rasterises every triangle into the image and keeps the nearest surface for each pixel. The result is a clean greyscale PNG — white for the parts nearest to you, black for the farthest — at up to 4096 pixels and 16 bits.

Have a photo instead of a model? The AI photo to 3D relief tool estimates a depth map from it, and depth map to STL turns any depth map back into a printable relief.

Nothing is uploaded

Most online converters send your file to a server, process it there and hand back the result — which means your drawing or photo sits on someone else's disk for however long their retention policy says. This page does all of the work in your browser tab. The file is read with the browser's FileReader, converted by JavaScript on your own processor and saved straight to your downloads folder. You can confirm it: open your browser's developer tools, switch to the network tab and watch that no request carrying your file is ever made.

Frequently asked questions

Is this the same as an AI depth map?

It is better: an AI depth model guesses depth from a picture, while this page measures it from the 3D model, so every pixel is exact. The convention is the same — white is near, black is far — so the result works wherever an AI depth map would.

Can I use it with depth-guided AI image generators?

Yes. Tools that take a depth image to guide the composition of a generated picture accept this PNG. Use the 8-bit option if the tool does not read 16-bit images.

Is it a perspective or an orthographic view?

Orthographic: the model is seen straight on, without perspective, so sizes stay true across the image. That is what CNC, displacement and texturing work need.

Why 16-bit?

An 8-bit PNG has 256 grey levels, so a 25 mm tall model is stored in steps of 0.1 mm — visible as terraces when carved. A 16-bit PNG has 65,536 levels, under a micron per step. Vectric, Carveco, Blender and most CNC software read 16-bit greyscale PNG.

What does the pixel size mean?

The width of the model divided by the number of pixels. At 1024 px, a 100 mm model gives about 0.1 mm per pixel — finer than most CNC bits. Set the same size in your CAM software when you import the image.

Is my file uploaded?

No. The model is read and rasterised in your browser; nothing is sent to a server.

More conversions

Want a finished design rather than a conversion? LyraMaker has more than a hundred free generators — name keychains, plates, monograms, rulers, QR codes and more, all exporting STL and 3MF.
Browse the generators →