Skip to content
TryImager

Generate a normal map from an image

Have a grayscale heightmap for brick, fabric or another surface? Convert its height changes into an RGB normal map for a 3D material. Adjust the strength and orientation, then inspect how the surface would respond to a directional light.

Free to use · No account required · Local image processing

Paste an image while a control in this panel has focus, or choose a file. The built-in sample is generated locally.

Working resolution: up to 1,536 px on the longest side.

Image processing happens on your device. Ordinary site assets, including the QR decoder on first use, load separately.

Normal map preview

Choose a source and run the tool to see your result here.

Try the built-in example

The sample is a synthetic heightmap of bricks with lighter raised areas and dark mortar. Invert height to see the relief reverse; switch to DirectX to see the green channel change. A uniform height field produces a flat normal near RGB 128, 128, 255.

These sample inputs have known properties. The workbench calculates your output when you run it; no sample output is presented as a measured result before processing.

How to use normal map generator

  1. Select a heightmap image, or try the synthetic brick pattern.
  2. Choose OpenGL or DirectX, set strength and optionally invert or smooth the heights.
  3. Enable wrapped edge sampling for textures that repeat.
  4. Generate the map, rotate the preview light and download the normal PNG or height PNG.

Why a normal map looks purple

Red and green encode the horizontal and vertical components of a surface direction. Blue stores the component pointing away from the surface. A flat area is approximately RGB 128, 128, 255. Changing the strength changes the slope of bumps, not the dimensions of the exported texture.

OpenGL or DirectX: which one to export?

The two choices differ in the green channel orientation. Select the convention expected by your material or game engine. If a raised groove appears sunken, first check the normal convention and height direction before increasing strength. Use the texture as non-color data in your material workflow; treating it as a color photograph may change its values.

Start with a heightmap, not a shadowed photograph

This generator estimates height from brightness. A dark shadow in a photograph can be interpreted as a depression even when the surface is flat. Use an intentionally prepared heightmap for predictable results. Wrapped sampling compares pixels across the image boundary, but it cannot repair a nonmatching texture seam. The lighting preview is a flat directional-light simulation, not a full 3D material renderer.

File handling and limits

Use supported JPG, PNG and WebP images up to 25 MB and 48 megapixels. The tool may work at a smaller resolution to keep memory use manageable, and results depend on the input and your device. File contents and decoded data are processed locally. See the privacy policy for how website analytics and advertising requests are handled separately.

Frequently asked questions

Can I generate a normal map from a black and white image?

Yes. Brightness is used as approximate height, and neighboring height differences determine the normal.

What does a flat normal map look like?

A uniform height field produces approximately RGB 128, 128, 255 throughout.

What is the difference between OpenGL and DirectX normal maps?

The green component is reversed between the two conventions.

Can this generate real depth from a photograph?

No. Brightness is only an approximation of height. Reflections and shadows may produce incorrect relief.

Can I use the normal PNG in Blender or a game engine?

Yes, if you select the appropriate convention and import the texture as normal or non-color data.

Related image tools