normalmap.dev

Sprite Normal Map Generator

Normal maps for pixel art, sprite sheets and 2D characters, so your sprites react to 2D lights. The generator is set for sprites: no smoothing, a 1 px radius, transparency kept and edges on the pixel grid.

  • Edges stay on the pixel grid: no smoothing, 1 px radius
  • Transparency kept in the normal map
  • A folder of up to 200 sprites in one ZIP

Got a folder of sprites? Open Batch in the tool and drop the folder: up to 200 files come back in one ZIP, each the same size as its sprite.

or try
Source
Drop an imagePNG, JPG or WebP, or paste with Ctrl+V

Drag anywhere to move the light

Your file is
Green (Y)
Advanced settings
Filter
Export size
Loading sample

Why sprites need different settings than textures

A tiling texture is a photo-like surface that repeats, so the default generator blurs a little and measures slopes across a wide area. A sprite is a small cut-out where every pixel was placed on purpose. The same settings would smear a 32 px character into a soft blob. The Pixel-art sprite input changes five things:

SettingTexture defaultSprite defaultWhy
Smoothing1 px0Any blur moves an edge off the pixel grid, and the lit sprite shows a soft halo around every shape.
Sample radius2 px1 pxSlopes are measured between neighboring pixels, so a 1 px plank line becomes a 1 px groove, not a 3 px ditch.
Flatten lighting30%0Sprites have no uneven photo lighting to remove, and flattening would erase the shading you painted.
Keep alphaoffonThe normal map keeps the sprite's transparency, and transparent pixels count as the lowest height.
Wrap edgesonoffA sprite's left edge does not continue on the right, so wrapping would add a false slope at the border.

Scaling follows the same rule. The preview and any downscaled export use nearest-neighbor sampling, so pixels stay square. Exports never upscale: a 48 × 48 sprite gives a 48 × 48 normal map that lines up pixel for pixel with the sprite.

Sprite sheets and whole folders

  1. Tune on one sprite. Open a typical sprite and set Strength while you drag the light over the preview. Pixel art usually looks best between 1.5 and 3.
  2. Open Batch in the tool bar and drop the folder (or add files). The batch uses the settings you just chose, including the sprite input.
  3. Run it. Each file is processed in your browser and added to one ZIP as name_normal_gl.png. Tick Height or Curvature too if your shader uses them.
  4. Keep padding in sheets. Leave at least 1 px of transparent space between frames. Without it, the pixels on either side of a frame border are measured together and the edge of one frame tilts the next.

Batches are limited to 200 files at a time. For a few thousand sprites, run them folder by folder; files that fail are marked in the list, and the rest of the batch continues.

Light the sprite in Unity and Godot

Unity (URP 2D Renderer). Unity calls a sprite's normal map a secondary texture.

  1. Select the normal map PNG and set Texture Type to Normal map. For pixel art, also set Filter Mode to Point (no filter) on both the sprite and the normal map.
  2. Make sure the Sprite Renderer uses a lit material, such as the default Sprite-Lit-Default.
  3. Select the sprite's texture, click Open Sprite Editor, switch the dropdown to Secondary Textures, click +, choose the name _NormalMap and drag the normal map into Texture. Click Apply.
  4. On each Light 2D that should use it, set Normal Maps → Use Normal Map to Fast or Accurate.

From Unity's manual: Add a normal map or a mask map to a sprite in URP (Unity 6). Older URP versions named the texture NormalMap without the underscore. Checked 2026-11-26.

Godot 4. Godot attaches the normal map through a CanvasTexture.

  1. In the Sprite2D's Texture property, choose New CanvasTexture and open it.
  2. Put the sprite in Diffuse → Texture and the normal map in Normal Map → Texture. For pixel art, set Texture → Filter to Nearest.
  3. Add a PointLight2D or DirectionalLight2D. Both use normal maps. Raise the light's Height if the sprite gets darker than before, as Godot's manual suggests.

From Godot's manual: 2D lights and shadows. Checked 2026-11-26.

What a generated sprite normal map can and cannot do

The generator reads brightness as height: light pixels stand up, dark ones sink. On most pixel art that matches the drawing, because artists paint highlights on raised parts and dark lines in gaps and outlines. Crates, walls, rocks, armor and tiles come out well, and so does a first pass over a whole character set.

It cannot know shapes that the shading does not show. A dark red cape reads as lower than a pale face even if it hangs in front of it, and a sprite painted with light coming from one side keeps a little of that light baked into its normals. For a main character that players watch all game, use the generated map as a starting point and repaint the parts that read wrong, or build the normals by hand with a dedicated 2D tool such as Laigter, which Godot's manual recommends. For background props, tiles and large sprite sets, the generated maps are usually good enough to ship.

Sprite normal maps: questions

Why does the outline of my sprite look rounded under the light?

Because transparency is treated as the lowest height. Where an opaque pixel meets a transparent one, the surface slopes down by one pixel, so the silhouette catches light like a rounded rim. That is usually what you want on characters and props. If the rim is too strong, lower Strength; a flat-looking edge needs a hand-painted normal map instead.

Should I upscale my pixel art before making the normal map?

No. Make the normal map at the sprite's own size, so each normal pixel sits on one sprite pixel, and let the engine scale both with nearest-neighbor filtering. The export size here is a maximum, so a 32 px sprite comes out at 32 px, not stretched to 4096.

Can I use it on a whole sprite sheet?

Yes. Drop the sheet like a single sprite. Frames separated by at least 1 px of transparent padding are measured independently, because transparent pixels count as zero height. Frames packed edge to edge without padding influence each other along the shared border.

Which green channel do 2D lights expect?

Unity and Godot both read OpenGL (Y+) normal maps on 3D materials, and that is what this page exports. Check the 2D result once in your project: place a light above the sprite. If the top edges get darker instead of brighter, switch Green (Y) to DirectX here and download again, or convert the files you already made on the green channel page.