Height Map to Normal Map
Drop a grayscale height or displacement map and get a tangent-space normal map. The generator is already set for height input: low strength, 1 px smoothing, no flattening.
- Already set for grayscale input
- Runs in your browser: files are not uploaded
- OpenGL or DirectX output
White is high, black is low. If your file is the other way round, tick Invert height under Advanced.
Drag anywhere to move the light
Green channel read the wrong way: bumps look like dents. Match the export to your engine.
Advanced settings
Exports above 1024 px come with Pro.
Pro is $6.00 a month or $48.00 a year. It adds exports up to 4096 px, 16-bit height maps, batches of up to 200 files in one ZIP, and batch green-channel flips. Everything you can do now stays free.
Pro checkout is not open yet. Nothing on this site takes payment until it is.
Drop files or a whole folder here
Uses the settings above. Free: 3 files per batch at up to 1024 px. Pro: up to 200 files at up to 4096 px.
What a height map tells the converter
A height map stores one number per pixel: how high the surface is there. A normal map stores which way the surface faces. Converting one into the other is plain geometry: measure how fast the height changes to the right and downwards, and tilt the normal by that much. Nothing has to be guessed, which is why a height map gives a far more faithful normal map than a color image. On ambientCG's Bricks076C texture set, the normal map this page makes from their displacement map correlates 0.95 with the normal map that ships in the set (measured at 512 px, default settings). From the color image of the same set, the main generator reaches 0.60.
Strength has a physical meaning here. At 1024 px, a strength of S means pure white stands 20 × S pixels above pure black. The default 1.2 makes white 24 px tall, about 2.3% of the texture's width, which is close to how deep mortar joints and stone faces are in most tiling materials. Double the strength and every slope doubles.
What input works, and what does not
| Input | Works? | Notes |
|---|---|---|
| Displacement map from a PBR texture set | Yes | The best case. Turn Wrap edges on if the set tiles. |
| Bump map | Yes | Often low contrast: expect to raise Strength to 2–4. |
| Terrain heightmap | Yes | One pixel covers meters, so slopes are gentle: Strength 0.2–0.6, Wrap edges off. |
| Embossed logo or engraving drawn in gray | Yes | Smoothing 0.5 px, Sample radius 1 px; tick Invert height if the engraving is dark. |
| AI depth map (from a photo) | With care | Many depth tools store near as bright, which reads as high and is usually what you want. Check the 3D preview before you download. |
| Color texture or photo | Use the main generator | Brightness is not height. The normal map generator estimates it with color defaults. |
| A normal map | No | Purple-blue images are already normals. Converting them again gives noise. |
Five mistakes that ruin a height-to-normal conversion
- Black and white swapped. If raised shapes look pressed in from every light direction, the file uses black for high. Tick Invert height.
- A JPEG height map. JPEG stores 8 × 8 pixel blocks, and the converter faithfully turns every block edge into a ridge. Export height maps as PNG, or raise Smoothing to 2 px to hide the blocks.
- Terracing from 8 bits. A slow ramp stored in 256 levels becomes a staircase, and the normal map shows contour lines. Keep Smoothing at 1 px or more.
- Wrapping a texture that does not tile. With Wrap edges on, the left edge is compared with the right one. On a non-tiling image that creates a bright or dark line along the border. Turn it off.
- The wrong green channel for the engine. Unreal Engine reads DirectX (Y−); Blender, Unity and Godot read OpenGL (Y+). Choose before you download, and use the preview's Engine reads setting to check.
Height map or normal map: which one to ship
Keep both. Game engines shade with the normal map, because it is one texture read with no extra work per pixel. Keep the height map for parallax, for tessellation or displacement, and as the master you can regenerate the normal map from at any strength. In Blender you can render straight from the height map with the Bump node, but anything exported to a game engine needs the normal map. The Blender guide shows both setups.
Height map to normal map: questions
Is a height map the same as a displacement map or a bump map?
They all store height as gray, and this converter accepts all three. The names describe how a renderer uses them: a displacement map moves real vertices, a bump map fakes the shading at render time, and a height map is the general term (also used for terrain and parallax). A normal map stores the slope of that height instead of the height itself, which is what game engines shade with.
Why are there stair steps or contour lines in my normal map?
Your height map is 8-bit, so a gentle slope is stored as 256 flat terraces, and the converter turns each terrace edge into a ridge. Raise Smoothing to 1–2 px, which is why the default here is 1 px. Browsers decode PNG files at 8 bits per channel, so a 16-bit source does not avoid this here; a softer gradient in the source does.
Can I convert a normal map back into a height map?
Not with this tool yet. Going back means integrating slopes over the whole image, which needs a different solver. If you still have the height map you started from, keep it next to the normal map: the Height download here is a stretched copy of the height used for the conversion.