Normal Map Generator

This normal map generator turns a height map, a photo or a pixel-art sprite into a normal map in your browser. Drag the light over the result, then download it as an OpenGL or DirectX PNG.

Source

Or try one:

Settings

Height map
What is this image?
2.5
0.6 px
Working…
Light 315°, 54° up. Drag the dot.

Download

Your engine choice on a raised domeRed faces right, green faces upOpenGL: reads correctly in Blender, Unity, Godot

Working…

Examples to try in the normal map generator

Photos: Poly Haven, CC0. Height maps and the sprite: drawn in code for this site.

How this normal map generator works

A normal map stores, for every pixel, which way the surface faces, and a normal map generator works that out from an image. Here is the red brick example going through Normal Map Generator's four steps.

  1. Colour photo of a red brick wall

    PhotoThe network in Normal Map Generator, trained on scanned materials, reads the photo in your browser and estimates the slope of the surface at every pixel.

  2. The brick photo as a grey height map: light bricks, dark mortar lines

    HeightsNormal Map Generator adds the slopes up into heights. Mortar is low and brick faces high, although the mortar is the lighter colour.

  3. The resulting normal map in lilac, teal and pink

    NormalsNormal Map Generator writes each pixel's slope to red, green and blue: the file you download.

  4. The flat brick photo lit from the upper left using the normal map

    LitThe flat photo lit through Normal Map Generator's map. The Lit 3D view does this live.

In a file from a normal map generator, red holds the left-right tilt, green the up-down tilt and blue how much the pixel faces you. A flat pixel is (128, 128, 255), the lilac blue that fills most of a normal map.

Normal Map Generator reads your image as heights and measures the slope at every pixel with a Sobel filter (Scharr and a plain two-pixel difference, labelled Sharp, are under More settings). Each slope becomes a tilted vector, the vector is scaled to length one, and Normal Map Generator writes its three components to the three colour channels:

n = normalize(−D·∂h/∂x, D·∂h/∂y, 1)
RGB = (n + 1) / 2 × 255

D is the strength set in Normal Map Generator. Strength 1 means the full black-to-white range of your image stands as tall as 1/64 of its longer side, so a 1024 px texture and the same texture at 2048 px come out of Normal Map Generator looking the same. Open Map stats in the download panel for the steepest and the average tilt in degrees, which compare better between textures than a slider number.

What Normal Map Generator does before measuring

  • Smoothing. Browsers decode images to 8 bits, so a gentle slope climbs in visible steps of 1/255. A normal map generator that measures them directly turns those steps into rings. Normal Map Generator blurs by 0.6 px on a 512 px image by default, which hides most of the steps at normal strength. On bigger images the radius grows with the square root of the size, and the slider shows it in real pixels. A 16-bit PNG has no such steps, and Normal Map Generator reads it at full precision.
  • Wrap. Normal Map Generator measures tileable textures across their edges, comparing the left column of pixels with the right one, so the map repeats without a seam.
  • Photos. A photo has no heights to measure, only colours. In Photo mode Normal Map Generator first asks a trained network for the slopes and adds them up into a height map, step 2 above. From there on Normal Map Generator handles the photo like any height map. The older Brightness method in Normal Map Generator, bright is high with broad shadows subtracted, is one click away.

OpenGL or DirectX

Brick wall lit from above with an OpenGL normal map read as OpenGL: top edges of the bricks catch the light
Right engine. An OpenGL map from Normal Map Generator, shaded the way Blender reads it: light from above catches the top edge of every brick.
The same wall with the map read as DirectX: the bottom edges light up and the bricks look pressed in
Wrong engine. The same file from Normal Map Generator, shaded the way a DirectX engine reads it: green is taken upside down and the bricks sink into the wall.

The two conventions a normal map generator can write differ in one thing: which way green points. In an OpenGL map (Y+) the top side of a bump is greener. In a DirectX map (Y−) the bottom side is. Load a map from any normal map generator in the wrong convention and every bump looks lit from below, like a dent, however good the map itself is.

Pick your engine in the Target engine list and Normal Map Generator sets the convention for you. The dome card in the Download panel draws a raised dome in your target engine's convention, so you see which way red and green point in your file from Normal Map Generator before you import it. The file name ends in _gl or _dx as a reminder, followed by _4x and so on for an enlarged sprite and _16bit for a 16-bit file.

What I found in other normal map generator tools

I fed one dome height map to the first ten web tools Google listed for “normal map generator”. Of the eight that made a map without an account, four wrote red on the wrong side, so a bump becomes a dent across X, and a fifth tool defaulted to DirectX. This normal map generator writes red right, green up, and the About page has the full table.

Normal map of a dome in OpenGL convention, green on top
OpenGL: green on top. Drawn by Normal Map Generator.
Normal map of the same dome in DirectX convention, green at the bottom
DirectX: the same dome from Normal Map Generator, green at the bottom.

Normal Map Generator, checked against Poly Haven's own maps

I can't test every engine and version, so I checked Normal Map Generator against Poly Haven's own maps instead. Poly Haven publishes each texture with a 16-bit height map and its own OpenGL and DirectX normal maps, made by their artists. Red Brick 03 alone has been downloaded about 147,000 times. I ran each height map through Normal Map Generator at the default settings and compared the result with theirs.

“Lit alike” is the correlation between the map from Normal Map Generator and theirs, both shaded the way an engine shades them. 1 means identical, and about 0.7 to 0.85 is agreement here, probably because their normal maps carry finer detail than their height maps. OpenGL and DirectX give the same number by construction. “Wrong engine” loads the OpenGL file from Normal Map Generator into a DirectX engine. Bark stays above zero: its furrows run up and down, so its slope is mostly in red, which both engines read alike.

Their own OpenGL and DirectX files were also fed to Convert mode: Normal Map Generator opened all ten as normal maps and named the convention of each correctly, and Normal Map Generator's OpenGL-to-DirectX flip matched the green channel of their DirectX file on every pixel, except on rock face and weathered planks, where their own two exports differ slightly from each other.

Photo mode, on photos the network never saw

Photo mode of this normal map generator was checked the same way, on photos kept out of training. The scans are CC0 materials from Poly Haven and ambientCG, the five example photos among them, each with a colour map and a reference normal map. The score is the same correlation as above.

Test setPhotosNetworkBrightness
Held-out scans2840.260.13
PhoTex photographs, Heriot-Watt University2870.240.14
DiLiGenT-Pi, dark glossy reliefs116−0.010.05

Photo mode in Normal Map Generator at the default settings. The two sets of photographs were scored with Edges set to Single image. They come without a reference normal map, so I computed one from each surface's photos under different lights.

The network in Normal Map Generator got the direction backwards, bumps as dents, on 17% of the scans where Brightness does on 32%, and on 23% of the PhoTex photographs instead of 32%. On the red brick, where mortar is lighter than brick, Brightness scores −0.27 and the network 0.61. The PhoTex set is 287 real photographs of 9 rough, single-coloured surfaces, each lit by one lamp, and Normal Map Generator did best there when the light came from the side. On the dark, glossy DiLiGenT-Pi reliefs both methods are close to a coin toss.

These scores are far below the Lit alike scores in the Poly Haven table. A photo holds less than a scan measures, so a map Normal Map Generator makes from a photo is an estimate. Sorted by kind, the held-out materials scored highest in Normal Map Generator for brick, paving and tiles (0.46 to 0.54) and lower for wood and planks (0.28) and rock (0.21). For bark and plain concrete (about 0.1) its network is no better than Brightness.

Poly Haven textureLit alikeWrong engine
Bark Brown 02 (tree bark example)0.840.38
Green Metal Rust (rusted metal example)0.74−0.07
Red Brick 03 (red brick example)0.83−0.45
Rock Face 03 (rock face example)0.71−0.16
Weathered Brown Planks (weathered planks example)0.76−0.59

Measured 2026-11-29 at 512 px, default settings.

Importing a normal map generator file, engine by engine

Each engine expects one convention and a texture setting that marks the file from your normal map generator as a normal map rather than a colour. Get the second part wrong and the map from Normal Map Generator is read through a gamma curve, which bends every slope.

EngineConventionAfter importing the PNG
BlenderOpenGL (Y+)Load the PNG from Normal Map Generator in an Image Texture node, Color Space: Non-Color, into a Normal Map node, into the shader's Normal input.
UnityOpenGL (Y+)Texture Type: Normal map. Leave “Create from Grayscale” off: Normal Map Generator already made the normal map.
Godot 4OpenGL (Y+)Assign to the material's Normal Map slot. The Godot manual asks for X+, Y+, Z+.
Unreal EngineDirectX (Y−)Compression Settings: Normalmap. If you exported OpenGL, tick Flip Green Channel instead of re-exporting.
Substance 3DDirectX by defaultNormal format is a project setting, and Adobe's docs show where to change it.
Godot 2D, Unity 2D lightsOpenGL (Y+)Use Sprite mode in Normal Map Generator, keep the PNG the same size as the sprite, assign it as the sprite's normal map.

Blender's Normal Map node has a Strength of its own

The Normal Map node has its own Strength field that scales the effect again. Leave it at 1 while you judge the map from Normal Map Generator, and pick Blender (OpenGL) as the target engine.

In Godot 4 2D, one CanvasTexture holds both maps

Unity and Godot take the default file from Normal Map Generator as it is. For 2D lighting in Godot 4, put the sprite in a CanvasTexture's Diffuse slot and the map from Normal Map Generator in its Normal Map slot.

In Unreal, keep the _dx file beside the _gl one

Choose Unreal Engine in the Target engine list before downloading. Normal Map Generator then writes DirectX, and the _dx ending keeps it apart from an OpenGL copy of the same texture in the same folder.

Photos, sprites and batches

Normal Map Generator picks a mode from the image you drop. If it guesses wrong, change it with the “What is this image?” buttons. This free online normal map generator has nothing to install and no account: drop an image and the map is computed on your own device.

Photo of tree barkThe normal map Photo mode makes from the bark photo
The tree bark photo and the map Normal Map Generator makes from it at the default settings.

What a normal map generator reads as height in a photo

Drop a colour photo and Normal Map Generator switches to Photo mode. The trained network in Normal Map Generator works out which parts stand out, so light mortar between darker bricks still ends up low. It is a 65 MB download, plus about 15 MB for the code that runs it, the first time you open a photo of your own in Normal Map Generator, then takes a few seconds per photo. The examples come with their result. If the bumps Normal Map Generator shows look like dents, tick Invert height. Under “Read the photo with” you can switch Normal Map Generator to Brightness, the plain bright-is-high reading, which needs no download. The trained network in Normal Map Generator reads relief best in a photo lit from one side. Brightness, like any plain normal map generator, is thrown by hard cast shadows, which it takes for hollows.

A 24 by 24 pixel gem spriteThe gem's normal map from Sprite mode, same pixel grid
A 24 × 24 gem sprite and its map from Normal Map Generator, both enlarged. Transparent pixels stay transparent.

A normal map generator that keeps the pixel grid

Open an image with transparent pixels and Normal Map Generator switches to Sprite mode. Normal Map Generator builds a rounded bevel from the sprite's outline, adds a little of its own shading on top, and keeps every transparent pixel transparent and flat. Nothing is blurred: the map from Normal Map Generator has exactly the sprite's pixel grid, and a larger output size enlarges it block by block, so it lines up in Godot or Unity 2D.

The red brick photo lit by its map from Normal Map Generator, repeated 3 × 3.

What the normal map generator does at the edges of a tile

With Edges set to Tileable, Normal Map Generator measures slopes across the borders, so a texture that already tiles stays seamless. For one that doesn't, tick Make seamless under More settings in Normal Map Generator: it joins the left and right borders, then the top and bottom, with a half-shifted copy, cross-fading broad shapes and keeping fine detail from whichever side stands higher, so Normal Map Generator leaves no soft band at the join. Check the result with the 2×2 and 3×3 repeat buttons under the 3D view. A leftover seam shows up there as a line of light.

Fifty images through the normal map generator at once

Open up to 50 images at once in Normal Map Generator. Each keeps the mode Normal Map Generator picked for it while the other settings are shared, and Download all builds one ZIP with the normal, height and AO map of every image. A converted normal map adds only its normal map. Normal Map Generator numbers two files with the same name instead of letting one overwrite the other.

Fixing a map from another normal map generator

Convert mode is for a map you already have: open it and Normal Map Generator reads its slopes to tell whether it is OpenGL or DirectX, then flips green to match your target engine. The flip is exact: green becomes 255 minus green, nothing else changes, and flipping twice restores an 8-bit file. When the slopes give no answer, as on a flat map, Normal Map Generator says so and leaves the file unflipped. An alpha channel is kept as it is, and a 16-bit normal map is read at 8 bits per channel. Normal Map Generator can also flip red, or rebuild blue for two-channel maps that store only red and green.

Normal map generator settings

SettingWhat it changesStart with
StrengthHow tall Normal Map Generator makes the white parts stand. Higher makes steeper bumps.2.5, then read the average tilt in Normal Map Generator's Map stats
SmoothingBlur before Normal Map Generator measures, shown in real pixels for your image. Removes 8-bit steps and JPEG noise.The default (0.6 px at 512 px, more on bigger images). Raise it for JPEG
Invert heightTells Normal Map Generator that dark is high: bumps become dents.Off for height maps
Read the photo withPhoto mode only. Trained network lets Normal Map Generator estimate the shapes. Brightness takes bright as high and adds Remove lighting.Trained network. Brightness if the network's one-time 65 MB download is too large for your connection
EdgesTileable lets Normal Map Generator measure across the borders. Single image stops at them.Tileable for textures
FilterSobel, the default in Normal Map Generator, and Scharr average over 3×3 pixels. Sharp uses two neighbours.Sobel
Black / white point, gammaRemap the height range before Normal Map Generator measures.0, 1, 1
Output sizeNormal Map Generator resizes the height map, then measures, so slopes stay right.A power of two for engines
Bit depthA 16-bit PNG from Normal Map Generator keeps 65,536 levels per channel instead of 256.8-bit unless you see banding
AO amountHow dark crevices get in the AO map from Normal Map Generator. Reset settings puts every slider back. Invert height and Edges belong to the image and stay as they are.1
Plane, Sphere, CubeThe shape Normal Map Generator wraps your map around in the Lit 3D view. 2×2 and 3×3 repeat it to show seams.Plane, then Sphere to judge depth
Clay, Image coloursNormal Map Generator lights the map on grey clay or on your image's own colours. Photos start in their colours.Clay for height maps
LightDrag the dot to move the light in Normal Map Generator, or focus it and use the arrow keys. Double-click resets it.Upper left
Compare, Tiled 2×2Compare slides between your image and the map from Normal Map Generator. The Normal tab can tile the map to check its edges.Single

On a 512 px texture Normal Map Generator recomputes in a few tens of milliseconds, and Map stats shows the time. A photo read by the network in Normal Map Generator takes a few seconds once. After that its sliders are as quick as any other image's. Every example, and every map you make from one, is free to use: the photos are CC0 from Poly Haven, the rest are drawn in code.

Normal map generator FAQ

What is a normal map generator?

A normal map generator turns a grey height map or a photo into an RGB image that stores which way the surface faces, so a flat texture catches light as if it had relief. This normal map generator does it in your browser.

Is this normal map generator free, and are my images uploaded?

Normal Map Generator is free, with no account and no download limit. Normal Map Generator runs in your browser: images are decoded and processed on your device and never sent to a server. Only the page itself, the network file Normal Map Generator uses in Photo mode, and the anonymous usage counts described on the privacy page travel over the network.

Which convention should Normal Map Generator use, OpenGL or DirectX?

Blender, Unity and Godot read OpenGL (green up). Unreal Engine and Substance (by default) read DirectX, green down. Choose your engine in the Target engine list and Normal Map Generator sets it. If a map you already exported looks lit from below, open Convert mode in Normal Map Generator and flip it.

Why do my bumps look like dents?

Either the green channel is in the wrong convention for your engine, or your image has dark parts that should be high. Check the dome card in the Download panel first: if it already shows your engine's convention, the height is the problem, so tick Invert height in Normal Map Generator.

Can Normal Map Generator make a normal map from a photo?

Yes. A colour image opens Normal Map Generator in Photo mode, where a network trained on scanned materials estimates the slope of the surface from the picture. A black-and-white photo opens in Normal Map Generator as a height map instead, because Normal Map Generator cannot tell the two apart. Set “What is this image?” to Photo yourself. Normal Map Generator does best on brick, paving and tiles. Rock, soil and planks come out weaker and flatter than they are, and on bark, fabric or plain concrete Normal Map Generator is close to a guess. What Normal Map Generator gives you is an estimate: if bumps look like dents, tick Invert height, or switch to Brightness.

Does Normal Map Generator work for pixel art?

Yes, and Sprite mode was the first mode I built. Images with transparency open Normal Map Generator in Sprite mode: the outline gets a rounded bevel, transparent pixels stay transparent and flat, and nothing is blurred, so the map matches the sprite pixel for pixel. Bevel width sets how far in from the edge the slope goes.

What size should the normal map be?

The same size as the colour texture the normal map belongs to. Game engines prefer powers of two (512, 1024, 2048, 4096). Pick one under Output size in Normal Map Generator. Normal Map Generator resizes the height map before measuring slopes, so a smaller map is not just a blurred copy of a larger one.

When do I need a 16-bit PNG?

When gentle curves such as car paint or skin show banding in a map from Normal Map Generator. An 8-bit channel stores 256 levels, about 0.45 degrees apart near flat, and 16-bit stores 65,536. Engines usually compress normal maps anyway, so Normal Map Generator's 8-bit default is fine for most game textures.

Can Normal Map Generator make roughness, metallic or specular maps?

No. Those depend on what the material is made of, which Normal Map Generator does not estimate, so any value would be a guess. Normal Map Generator gives you the normal map, the height map it used and a cavity-style ambient occlusion map.

Does this normal map generator use AI?

Only in Photo mode. There a neural network, trained on about 2,500 CC0 scanned materials from Poly Haven, ambientCG, ShareTextures, TextureCan and cgbookcase, estimates the surface from your photo. Normal Map Generator runs it in your browser, so the photo still never leaves your device, and it takes no prompt and invents no image: it only estimates slopes. Height, Sprite and Convert mode in Normal Map Generator use fixed formulas and no network.

How big an image can Normal Map Generator handle?

Normal Map Generator accepts up to 8192 pixels on the longest side. On a desktop computer a change takes about 3 seconds at 4096 px and over 10 seconds at 8192 px. Phones are slower and may run out of memory. A photo takes a few seconds more the first time, while the network in Normal Map Generator reads it. The network in this normal map generator looks at a photo scaled to 512 px on its longest side and the finer detail is added from the photo afterwards, so the same surface comes out flatter in a 4096 px photo than in a 512 px crop of it. Crop to a few repeats of the pattern before you open it in Normal Map Generator for the strongest relief. Scale the image down before opening it in Normal Map Generator if you only need a 2048 or 4096 map.

Is there a normal map generator for Photoshop or GIMP?

No plugin is needed. Make the height map in Photoshop, GIMP or Krita, export it as PNG and drop it into Normal Map Generator. Bring the result back as a layer if you want to paint on it.

Does Normal Map Generator work on a phone?

Yes. Open an image in Normal Map Generator, pick your engine and tap Download in the bar at the bottom of the screen. You drag the light with a finger. Very large images are slower there. On a phone Normal Map Generator starts Photo mode with the Brightness method, because the trained network is a 65 MB download. Choose Trained network in the Settings of Normal Map Generator to use it.

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

A bump map is a grey height image, the kind you feed a normal map generator. The engine turns it into slopes while rendering. A normal map stores the slopes directly, which is what Normal Map Generator writes, and it renders faster and more precisely.

Can Normal Map Generator turn a normal map back into a height map?

Yes. Open a normal map and Normal Map Generator switches to Convert mode. The Height tab shows the height map rebuilt from its slopes, and Height PNG downloads it. Slopes say nothing about absolute height, so Normal Map Generator stretches the result over the full black-to-white range. Rebuilt by Normal Map Generator from Poly Haven's normal maps, the height correlated 0.51 to 0.90 with their own height maps on the five example textures.

Why is a normal map mostly purple?

Flat areas point straight out of the surface, (0, 0, 1), which Normal Map Generator stores as (128, 128, 255). Red and green leave 128 only where Normal Map Generator finds a slope.

Which filter should I choose in Normal Map Generator?

Sobel, the default in Normal Map Generator, averages over 3 × 3 pixels and is a good start. Scharr is a little more accurate on diagonals. Sharp keeps one-pixel detail but also keeps noise.

Can I use maps from Normal Map Generator commercially?

Maps you make with Normal Map Generator are yours if the source image is yours, and every example on the page is free for any use: the five photos are CC0 textures from Poly Haven, the rest are drawn in code for this site.

Can Normal Map Generator make a seamless texture?

It keeps tileable textures seamless by measuring across their edges, and Make seamless in Normal Map Generator joins the borders of a texture that does not tile: broad shapes are cross-faded and fine detail is taken from whichever side stands higher, so the join does not go soft. Check either with Normal Map Generator's repeat buttons.

Does Normal Map Generator do batch processing?

Drop up to 50 images. Normal Map Generator keeps each image's mode, shares the other settings, and Download all gives one ZIP with every normal, height and AO map (converted normal maps add only their normal map). Photos that Normal Map Generator reads with its trained network take a few seconds each.

Which file formats does Normal Map Generator export?

PNG, either 8-bit or 16-bit per channel, and a ZIP for batches. Normal Map Generator writes the PNG itself, so the file holds exactly the computed values.

Does Normal Map Generator keep transparency?

In Sprite mode transparent pixels stay transparent and flat, and Convert mode in Normal Map Generator keeps a normal map's alpha channel as it is. Height and Photo mode give an opaque map, because engines read normal maps without alpha.

Is there a normal map generator to download?

There is nothing to install. Normal Map Generator is a web page. It needs a current browser, and WebGL 2 for the 3D preview.

Something wrong or missing in Normal Map Generator? Tell me with Give feedback at the bottom of the download panel, or read how this site is run.