EditSafely

Generate Height Map from PNG

Turn the brightness of a PNG into a greyscale height map where white is high and black is low.

Runs on your device, nothing uploaded

Drop images anywhere on this page

or paste with Ctrl / ⌘ + V ·

Accepts PNG · several at once

Your PNG files never leave this tab

Generate Height Map from PNG is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, 200 photos straight off a camera means 1.6 GB uploaded, a wait in somebody's queue, and 240 MB downloaded again. Here it means 0 bytes up and 0 bytes down.

  • No upload
  • No file size limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Generate Height Map from PNG

  1. 1. Add the source PNG. Drop in a texture, photo or drawing. Its brightness becomes the height: light pixels are raised and dark pixels sit low. Transparent areas count as the lowest point.
  2. 2. Tune the height map. Smooth the result with the blur slider to remove pixel noise, keep the full black-to-white stretch for maximum relief, or invert it when dark areas should stand up instead.
  3. 3. Download the greyscale map. The map updates as you change a setting. Download the PNG and plug it into a displacement, bump or parallax slot in your 3D tool or game engine.

When to use Generate Height Map from PNG

Generate Height Map from PNG converts the brightness of every pixel into a greyscale elevation value. It is the first step of most texture workflows, since normal, ambient occlusion and displacement maps are all derived from height, and it runs entirely in your browser.

  • Displacement for a terrain or wall. A photo of rock or brick needs real relief in a 3D scene. The height map feeds a displacement modifier so bright stones push out and dark mortar sinks in.
  • Source for other texture maps. Normal and ambient occlusion maps look cleaner when they start from a smoothed height map. Blur away noise here first, then build the other maps from the result.
  • Embossed logos and engravings. A dark logo on a light background should be carved in or raised. Invert the map so the logo becomes the high area, then use it as a bump map.

Examples

Stone texture

Input

stone.png

Output

stone.png as a greyscale height map, light stones raised

Engraving

Input

engraving.png with invert on

Output

Dark grooves become the high points of the map

About the Generate Height Map from PNG tool

Generate Height Map from PNG is a free online tool that works entirely inside your web browser. Turn the brightness of a PNG into a greyscale height map where white is high and black is low. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 292 PNG utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

You can shape the output with 3 settings, including Smooth (blur radius, px), Stretch to the full black-to-white range and Invert (dark areas become high); the result is redone automatically when you change one. The finished file is put together in browser memory and saved with the Download button, so it never touches a server on the way to your disk. 2 worked examples further down the page show exactly what the tool produces for real inputs.

Because nothing leaves your device, the tool is suitable for sensitive images such as ID scans, screenshots of internal systems or personal photos. It is also quick, since the pixels are processed on your own machine rather than by a remote API.

Frequently asked questions

Does Generate Height Map from PNG cost anything?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Are my files uploaded to a server?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

Which files does Generate Height Map from PNG accept?

It accepts PNG images. There is no file size cap imposed by a server; very large files are limited only by your device's memory.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

How do I save the output?

Click the Download button once the result is ready. The file is built in your browser's memory and handed straight to your downloads folder, without passing through a server.

Related tools

All PNG Tools →