Skip to content
Image toSTL

Image to heightmap

Brightness becomes height. Adjust relief, base and smoothing while the 3D preview updates, then download a grayscale heightmap PNG, a solid STL, or both.

  • Free, no sign up, runs in your browser
  • Your image is never uploaded
  • Live 3D preview, binary STL download

Brightness becomes height, free in your browser

Sample previewDrag to turn · scroll to zoom
100 mm
3.0 mm
2.0 mm
1
Detail

Built in your browser. Your image is not uploaded, and the download is free with no account.

How to turn an image into a heightmap

  1. 1

    Add your image

    Any JPG, PNG, WEBP, HEIC or SVG. It is read in your browser.

  2. 2

    Shape the surface

    Set relief height and smoothing. Tick Darker is higher to flip the surface.

  3. 3

    Download PNG or STL

    Depth map PNG gives the heightmap itself. Download relief STL gives a solid ready to slice.

What a heightmap is

A heightmap is a grayscale image where each pixel’s brightness stands for height. White is the top, black the bottom, and every gray in between is a step on the way. Terrain editors, game engines, CNC software and laser engravers all read them.

The PNG you download here matches the 3D preview: the image after smoothing and, if you ticked it, inversion, with white at the top of the relief and black at the base.

Brightness is not depth

This tool reads how bright each part of the picture is. It does not guess how far away things were from the camera. For textures, patterns, line art, coins, embossed lettering and terrain renders that is exactly right.

For an everyday photo it gives a stylised relief: a white shirt rises, a black dog sinks. If you want the real 3D shape of the subject, the AI model on our home page is the better fit.

Settings that matter

  • Relief height: the distance between black and white, in millimetres.
  • Base: a solid floor under the darkest point so the print is never paper thin.
  • Smoothing: blurs out noise and JPG blocks. Raise it for photos, lower it for crisp line art.
  • Detail: 160, 260 or 400 samples along the long edge. Higher is sharper and heavier.

Using the heightmap elsewhere

  • Cura can open a grayscale image as a heightmap mesh directly.
  • Blender reads it through a Displace modifier on a subdivided plane.
  • Laser software that supports grayscale or 3D engraving uses it to vary depth.
  • Game engines and terrain tools import it as a height field.

Questions

What resolution is the heightmap PNG?

It matches the detail level: up to 160, 260 or 400 pixels on the long side. That keeps it in step with the STL. For a bigger map, pick Fine.

Is the heightmap 16 bit?

No, it is an 8 bit PNG with 256 gray levels, which is what browsers read and most engravers and slicers expect.

Can I make a heightmap from a heightmap?

Yes. Drop a grayscale map in, tidy it with Smoothing, and download it again, or go straight to the STL with the heightmap to STL page.

Keep reading

Ready to print it?

The browser tools are free and need no sign up. Your image stays on your device.

Back to the converter