Gamma Correction

Brighten a dark photo or deepen a washed-out one by bending its midtones, while black stays black and white stays white. Auto balance picks the amount for you. The photo never leaves this browser tab.

How it works

Every value is put through one curve: new value = 255 x (old value / 255) to the power 1 / gamma. Gamma above 1 bends the curve up and brightens; below 1 bends it down and darkens.

The curve always passes through 0 and 255, so black and white never move. The biggest change is in the middle and the shadows, which is where a dull photo needs it.

Auto balance measures the average brightness of your photo and picks the gamma that would carry it to mid-grey. It stays between one third and 3, so a nearly black photo is not stretched into noise.

How to use it

  1. 1 Choose an image, drop it on the file box, or paste one with Ctrl+V.
  2. 2 Start with Auto balance. If it is not right, pick Lift shadows, Brighten midtones or Deepen midtones.
  3. 3 Press Show original to compare, then press Download. Open Fine-tune to set the gamma as a number.

Good to know

  • Use Lift shadows on a backlit photo where the faces came out too dark against a bright window.
  • Use Deepen midtones on a hazy or washed-out photo, such as a picture taken through a window.
  • If the brightest part of the photo is already white and burnt out, no gamma can bring the detail back: it was never recorded.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

What gamma correction does, with numbers

Every pixel of a photo stores its red, green and blue as numbers from 0 to 255. A gamma correction puts each of those numbers through the same curve. Divide the value by 255 so it runs from 0 to 1, raise it to the power 1 divided by gamma, and multiply by 255 again. Zero to any power is zero, and one to any power is one, so black and white never move. Everything between them moves, and the middle moves most.

Some numbers make it concrete. With Lift shadows, gamma 1.8, a dark value of 64 becomes 118 and a mid value of 128 becomes 174, while a light value of 200 becomes only 223. The shadows nearly double and the highlights barely change. With Brighten midtones, gamma 1.3, the same three values become 88, 150 and 212: a gentler lift. With Deepen midtones, gamma 0.75, they become 40, 102 and 184, so the picture gets richer and darker without its whites turning grey.

Compare that with a plain brightness slider. Adding 50 to every value lifts 64 to 114, but it also pushes 220 to 255, and every value above 205 becomes the same flat white. Detail in clouds and skin highlights is lost. Black becomes 50, a dull grey. Gamma avoids both problems, which is why photo editors use a curve, not addition, for this job.

Auto balance works out the gamma from the photo itself. It takes the average brightness, using the Rec. 709 weights that match how bright each colour looks, and solves for the gamma that would carry that average exactly to mid-grey. A dark photo with an average of 60 gets a gamma of about 2.09, and a pixel at 60 lands on 128. Auto stays between one third and 3, so a photo of a night sky is not stretched into grain.

The limits are worth knowing. Gamma cannot recover detail that was clipped when the photo was taken: a burnt-out white sky stays white, and pure black shadows stay black. Lifting the shadows a lot also lifts the noise in them, so a phone photo taken in the dark may look grainy afterwards. The same curve is used on red, green and blue, so colours keep their balance but may look a little less saturated after a strong lift. JPEG files are saved again at high quality, HEIC comes out as PNG, and the largest image the tool takes is 24 megapixels.

Frequently asked questions

What is gamma, in plain words?

It is how much the middle of the brightness scale is bent. Imagine a line from black to white. Gamma keeps both ends where they are and pushes the middle up (brighter) or down (darker). A gamma of 1 is a straight line and changes nothing.

How is this different from a brightness slider?

Brightness adds the same amount to every value, so light areas hit 255 and turn flat white, and black turns grey. Gamma moves the middle most and the ends not at all, so nothing clips.

Why did Auto balance not make my photo exactly mid-grey on average?

It picks the gamma that would carry the average itself to mid-grey. Because the curve bends, the average of all the new values lands near mid-grey, not on it. On a very dark or very light photo it also stops at its limits.

Is my photo uploaded?

No. It is read, changed and saved inside this browser tab. Nothing is sent to a server.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.