EditSafely

Generate Ambient Occlusion Map

Bake a greyscale ambient occlusion map from a PNG, darkening the crevices and hollows of its height.

Runs on your device, nothing uploaded

Drop images anywhere on this page

or paste with Ctrl / ⌘ + V ·

Accepts PNG · several at once

Your PNG files never leave this tab

Generate Ambient Occlusion Map is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, 200 photos straight off a camera means 1.6 GB uploaded, a wait in somebody's queue, and 240 MB downloaded again. Here it means 0 bytes up and 0 bytes down.

  • No upload
  • No file size limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Generate Ambient Occlusion Map

  1. 1. Add the source PNG. Drop in a texture or a height map. Brightness is read as height, so dark areas are low and bright areas are high. Transparent pixels count as the floor.
  2. 2. Set radius and strength. The radius sets how far around each pixel the tool looks for higher ground: small values pick out fine cracks, large ones darken broad hollows. Strength controls how dark they get.
  3. 3. Download the AO map. White means fully lit and darker greys mean occluded. Download the PNG and plug it into the ambient occlusion slot of your material, or multiply it over the colour map.

When to use Generate Ambient Occlusion Map

Generate Ambient Occlusion Map compares every pixel's height with the average height around it at several scales. Pixels sitting below their surroundings are in a crevice where ambient light struggles to reach, so they come out darker in the map.

  • Grounding a game texture. Stones, tiles and planks look like they float when the gaps between them get as much light as the tops. An AO map darkens those gaps and adds contact shading.
  • Completing a PBR material. A physically based material wants colour, normal, roughness and occlusion maps. When only a colour texture exists, this tool fills in the occlusion slot.
  • Adding depth to flat artwork. Multiply the AO map over a 2D illustration or UI texture to get soft shading in the recesses without painting shadows by hand.

Examples

Cobblestones

Input

cobbles.png, radius 8

Output

White stones with dark gaps where the mortar sits

Flat image

Input

A plain colour PNG

Output

Pure white: nothing is occluded

About the Generate Ambient Occlusion Map tool

Generate Ambient Occlusion Map is a free online tool that works entirely inside your web browser. Bake a greyscale ambient occlusion map from a PNG, darkening the crevices and hollows of its height. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 292 PNG utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

You can shape the output with 3 settings, including Sample radius (px), Strength and Invert height (dark areas raised); the result is redone automatically when you change one. The finished file is put together in browser memory and saved with the Download button, so it never touches a server on the way to your disk. 2 worked examples further down the page show exactly what the tool produces for real inputs.

Because nothing leaves your device, the tool is suitable for sensitive images such as ID scans, screenshots of internal systems or personal photos. It is also quick, since the pixels are processed on your own machine rather than by a remote API.

Frequently asked questions

Does Generate Ambient Occlusion Map cost anything?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Are my files uploaded to a server?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

Which files does Generate Ambient Occlusion Map accept?

It accepts PNG images. There is no file size cap imposed by a server; very large files are limited only by your device's memory.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

How do I save the output?

Click the Download button once the result is ready. The file is built in your browser's memory and handed straight to your downloads folder, without passing through a server.

Related tools

All PNG Tools →