Dedicated grayscale height conversion

Heightmap to Normal Map Converter

Convert clean grayscale heightmaps, terrain elevation maps, and bump maps into crisp tangent-space normal maps locally using Scharr or Sobel derivatives with zero uploads.

Convert a heightmap locally

Free up to 2K · Pro Local $29 once

Browser renderer ready
Local modeNo source upload
Heightmap Scharr defaults activeConfigured with Scharr derivatives, zero pre-blur, wrapped edges, and clean height contrast for dedicated grayscale height, bump, or displacement maps.
384 × 384 · sRGB source / linear maps
03

Inspect under light

Drag the light · Arrow keys for precise movement

Sample loaded · local processing readyChecking local license…

Why heightmaps produce far cleaner normals than color photos

Converting an ordinary color photograph to a normal map always involves guesswork because shadows, paint markings, and highlights share the same brightness values as surface relief. A dedicated heightmap or bump map removes that ambiguity: every pixel encodes relative elevation directly, typically with white representing peaks and black representing valleys.

Because clean heightmaps do not carry photographic lighting or JPEG noise, this route initializes Normal Map Studio with Scharr derivatives, zero pre-blur, wrapped edges, and crisp slope strength. Scharr weights diagonal neighbors more accurately than basic Sobel filters, preserving rotational symmetry on curved ridges, engraved patterns, and terrain contours.

Local generation runs inside this browser. Your source image is not sent to Normal Map Studio, FAL, or another model provider unless you deliberately open an AI workflow and confirm the upload disclosure.

  • Pre-configured with Scharr kernel and 0 blur for sharp, noise-free grayscale height inputs.
  • Wrapped edge sampling enabled by default for seamless tiling heightmaps.
  • Instant height inversion toggle if your source uses black-high / white-low encoding.
  • Exports OpenGL (+Y) or DirectX (−Y) tangent-space PNGs locally up to 2K free or 8K Pro.

Heightmap conversion parameter reference

Use this reference table to dial in kernel choice, blur, strength, and edge mode depending on where your grayscale heightmap came from.

Recommended settings by heightmap source type
Heightmap SourceKernelSource BlurStrengthEdge Mode
Procedural / Substance / ZBrush heightmapScharr0 px2.0 – 3.5Wrap (if tiling)
Terrain DEM / World Machine / GaeaScharr0 – 1 px1.5 – 3.0Clamp (unique terrain)
Hand-painted bump map (Photoshop / Krita)Sobel or Scharr1 px1.5 – 2.5Wrap or Clamp
Compressed 8-bit grayscale with bandingSobel1 – 2 px1.0 – 2.0Wrap or Clamp
Crisp UI / decal / logo bevel maskSobel0 – 1 px1.0 – 1.8Clamp

Sobel vs Scharr: choosing the right derivative filter

Both Sobel and Scharr compute horizontal (dX) and vertical (dY) elevation gradients across a 3x3 pixel neighborhood, then normalize the resulting vector into RGB tangent space. Sobel uses classic 1-2-1 weights, which is slightly softer and forgiving on noisy or hand-painted bump maps.

Scharr uses 3-10-3 weights optimized to minimize angular error on diagonal slopes. On circular bolts, diagonal brick courses, stylized stone carvings, and smooth terrain ridges, Scharr produces cleaner specular roll-off under a moving light. Switch between the two in the Gradient dropdown while rotating the 3D sphere preview to compare diagonal crispness immediately.

Preventing 8-bit stair-stepping and clipped plateaus

The most common artifact when converting a grayscale heightmap to a normal map is stair-stepping (terracing) on shallow ramps. Because an 8-bit grayscale image has only 256 discrete steps, a wide gradual slope jumps by one value every several pixels, creating concentric contour rings in the normal map. Adding 1 pixel of Source Blur before computing derivatives smooths those discrete steps into a continuous slope without washing out major features.

Also check the Quality panel for clipping warnings. If large areas of your heightmap sit at pure white (255) or pure black (0), the slope across those flat plateaus drops to zero and produces a hard shelf at the boundary. Lower Height Contrast slightly or normalize your heightmap range to 10–245 before conversion if you want smooth transitions across peaks and troughs. Always verify the exported normal map under a moving 3D light on both a flat plane and a curved sphere before importing it into your target engine.

When preparing heightmaps for terrain or architectural displacement, decide early whether the normal map will carry all fine surface detail while displacement handles only large silhouettes. Driving heavy vertex displacement and a high-strength normal map from the exact same high-frequency height image doubles the apparent relief and creates harsh specular fringes. A clean workflow is to run a mild low-pass blur for the displacement height map while keeping the crisp Scharr normal map for close-range shading.

Questions about converting heightmaps to normal maps

Practical answers for artists moving between bump, displacement, and tangent-space normal pipelines.

What is the difference between a heightmap and a normal map?

A heightmap stores one grayscale elevation value per pixel (high vs low), whereas a normal map stores a 3D RGB direction vector per pixel (X, Y, Z slope) so real-time shaders can calculate lighting in a single texture lookup.

Should I use Sobel or Scharr when converting a heightmap to a normal map?

Use Scharr for clean procedural, sculpted, or terrain heightmaps because it handles diagonal slopes more accurately. Use Sobel with 1 pixel of blur when converting noisy or heavily compressed 8-bit bump maps.

Why do my grooves look raised after converting a heightmap?

Either your source heightmap uses black for high and white for low, or the OpenGL/DirectX green channel does not match your engine. Toggle Invert Height if peaks and valleys are swapped, or switch OpenGL +Y / DirectX −Y if only vertical lighting is flipped.

How do I stop banding lines when converting an 8-bit heightmap?

Set Source Blur to 1 or 2 pixels and reduce Strength slightly. That smooths single-step quantization terraces before the gradient filter computes normal slopes.

Can I convert a tiling heightmap without creating border seams?

Yes. Keep Edges set to Wrap / tile (enabled by default on this page) so the 3x3 Scharr or Sobel kernel samples opposite border pixels and keeps normal slopes continuous across tile boundaries.