2D Sprite Normal Map Generator

Create a normal map from a single sprite: edges get a soft bevel and brightness adds surface detail. Move the mouse over the preview to see your sprite lit in real time.

Drop a sprite or texture here, click to choose one, or paste with Ctrl+V.
Works best with transparent PNG sprites. Your image stays on your device.

How to make a normal map for a sprite

  1. Drop a sprite or a whole sprite sheet. A transparent background gives the best edges.
  2. Set Edge bevel for how far the rounded edge reaches into the sprite. Set Detail from brightness for how much the sprite's own shading becomes bumps.
  3. Raise Strength for a more pronounced relief. Move the mouse over the lighting preview to check the result.
  4. Pick the Y direction for your engine and download yourfile_n.png.

Settings that work well

How it works

The tool first builds a height map. Starting from the sprite's transparent edges, the height rises over the bevel width. Pixel brightness is then mixed in for surface detail.

A Sobel filter measures the slope of that height map in x and y. Each pixel's surface direction (the normal) is stored as a color: red is the left/right tilt, green is the up/down tilt and blue faces the viewer. A perfectly flat area becomes the typical light purple, RGB (128, 128, 255).

FAQ

What is a normal map for 2D sprites?

An image whose red, green and blue values store which way each pixel's surface faces. Engines combine it with 2D lights so a flat sprite gets highlights and shadows that move with the light source.

OpenGL or DirectX — which do I need?

Godot, Unity and Blender use the OpenGL convention (green = up). Unreal Engine uses DirectX (green = down). If lighting looks like it comes from the wrong vertical side, switch this setting.

How do I use it in Godot 4?

Create a CanvasTexture, set the sprite as Diffuse and the downloaded _n.png as Normal Map, assign it to your Sprite2D's texture, and add a PointLight2D. For sprite sheets, generate the normal map from the whole sheet so frames stay aligned.

How do I use it in Unity?

Import the PNG with Texture Type 'Normal map', then add it as a Secondary Texture named _NormalMap on the sprite (Sprite Editor > Secondary Textures) and use URP 2D lights.

Why does my pixel art look blurry when lit?

Keep Smoothing at 0 and use a small bevel (1–3 px) for pixel art, and make sure the normal map uses nearest (point) filtering like the sprite itself.