๐ Image Brightness and Contrast Adjuster
By Shihab Mia ยท Updated 2026-07-30
JPG, PNG, WEBP or any image your browser can open. Nothing is uploaded.
100% is the original. Below 100% darkens, above 100% brightens.
100% is the original. Below 100% flattens, above 100% boosts contrast.
Choose an image to get started.
This tool lets you adjust the brightness and contrast of any image right in your browser. Upload a photo, then drag the two sliders to brighten or darken it and to flatten or punch up the contrast. The preview updates instantly, and when it looks right you can download the result as a PNG. Nothing is uploaded to a server, so your image stays on your device.
What is the Image Brightness and Contrast?
Brightness and contrast are the two most common adjustments in any photo edit. Brightness shifts every pixel toward lighter or darker, so the whole image gets uniformly more or less light. Contrast changes the gap between the light and dark parts: more contrast pushes shadows darker and highlights lighter for a punchier look, while less contrast pulls everything toward a flat, grey middle. Used together they fix the two things people most often want to change about a photo, that it looks too dim, or too washed out.
Under the hood this tool uses the browser's own canvas filter. Your image is drawn onto an HTML canvas, and before drawing it sets ctx.filter to brightness(x%) contrast(y%). At 100% each filter leaves the image untouched, which is why both sliders start there. A brightness of 150% multiplies each pixel's value by 1.5, and a contrast of 150% stretches values away from the mid-grey point of 50%. Values above 100% intensify the effect and values below 100% reduce it, with 0% giving either a fully black image (brightness) or a flat grey (contrast).
Because the work happens on a canvas in your browser, the tool is fully private and instant: there is no upload, no waiting, and no size limit beyond what your device can hold in memory. The output is re-encoded as a PNG, a lossless format, so repeated small adjustments do not degrade the image the way re-saving a JPEG would. If you need a smaller file afterwards you can convert the PNG to JPEG or WEBP with a separate tool.
Brightness and contrast are not the only tools photographers use to fix a photo's tonal range, and it helps to know how they differ from gamma and exposure. Brightness shifts every pixel by the same amount, so it can just as easily push pure black toward grey or blow highlights out to white. Gamma, sometimes labeled midtones in editing software, instead reshapes the curve so the middle tones move while the true black and white points stay fixed, which is why many editors treat it as the more natural fix for an underexposed shot. Exposure describes how much light a camera sensor actually captured at the moment the picture was taken, it cannot be restored after the fact. Brightness and contrast can only redistribute the tones that were captured, they cannot invent detail that was never recorded. A histogram, a graph of how many pixels sit at each brightness level from black to white, is the quickest way to see whether an image is underexposed (bunched to the left), overexposed (bunched to the right), or already well balanced before you touch either slider.
In practice, reach for brightness when the whole photo reads as too dark or too light overall, and reach for contrast when the exposure is roughly right but the image looks flat, hazy or grey. A common workflow is to nudge contrast up first to see if that alone restores punch, then apply a smaller brightness correction only if the image is still noticeably too dark or too light. Watch the extreme tones of the image as you drag either slider. Once shadows turn pure black or highlights turn pure white, that detail is clipped and gone for good, so it is usually worth pulling back a little rather than chasing the most dramatic-looking result.
When to use it
- Rescuing a photo that came out too dark by raising the brightness until detail in the shadows returns.
- Adding punch to a flat, hazy or washed-out picture by increasing the contrast.
- Toning down an over-bright or blown-out shot before posting or printing it.
- Preparing a clearer scan or document photo so text and lines stand out more sharply.
- Adjusting a scanned receipt or old document so faint, grey text becomes easy to read again.
- Making product photos for an online listing look consistent, well-lit and professional.
How to use the Image Brightness and Contrast
- Click "Choose an image" and pick a photo from your device.
- Drag the brightness slider left to darken or right to brighten the image.
- Drag the contrast slider to flatten (left) or boost (right) the difference between light and dark.
- Watch the live preview update, then click "Download PNG" to save the adjusted image.
- Use "Reset sliders" to return both to 100%, or "Clear" to start over with a new image.
Formula & method
Worked examples
A mid-grey pixel (value 128) with brightness 150% and contrast 100%.
- Apply brightness: 128 x (150 รท 100) = 128 x 1.5 = 192
- Apply contrast at 100% (no change): (192 - 127.5) x 1.0 + 127.5 = 192
- Value stays within 0 to 255, so no clamping is needed
Result: The pixel rises from 128 to 192, a noticeably brighter grey.
A dark pixel (value 64) with brightness 100% and contrast 200%.
- Apply brightness at 100% (no change): 64 stays 64
- Apply contrast: (64 - 127.5) x (200 รท 100) + 127.5
- = (-63.5) x 2 + 127.5 = -127 + 127.5 = 0.5
- Rounds to 1, well within range
Result: The dark pixel is pushed almost to pure black, deepening the shadows.
A near-white highlight (value 230) with brightness 100% and contrast 150%.
- Apply brightness at 100% (no change): 230 stays 230
- Apply contrast: (230 - 127.5) x (150 รท 100) + 127.5
- = 102.5 x 1.5 + 127.5 = 153.75 + 127.5 = 281.25
- Clamp to the maximum of 255
Result: The highlight is pushed to pure white, showing how high contrast can clip bright detail.
What the slider values do (both default to 100%)
| Setting | Effect on the image |
|---|---|
| Brightness 0% | Fully black image |
| Brightness 50% | Half as bright, much darker |
| Brightness 100% | Original, unchanged |
| Brightness 200% | Twice as bright, lighter |
| Contrast 0% | Flat uniform grey, no detail |
| Contrast 100% | Original, unchanged |
| Contrast 200% | Strong, punchy contrast |
Brightness vs. contrast vs. gamma vs. exposure
| Term | What it changes | When to reach for it |
|---|---|---|
| Brightness | Shifts every pixel uniformly lighter or darker | The whole image is evenly too dark or too light |
| Contrast | Widens or narrows the gap between shadows and highlights | Image looks flat, hazy or lacks punch |
| Gamma (midtones) | Lifts or lowers midtones while leaving pure black and white fixed | Only the middle tones need fixing, without clipping |
| Exposure | Simulates changing the light the camera captured at the shot | Used in raw photo editors, closest to redoing the original shot |
Quick fixes for common photo problems
| Problem | Suggested adjustment |
|---|---|
| Photo taken indoors looks too dark | Raise brightness to 120 to 140%, leave contrast near 100% |
| Old scanned document looks grey and faded | Raise contrast to 150 to 180%, add a small brightness boost |
| Outdoor photo looks washed out or hazy | Raise contrast to 130 to 160%, keep brightness near 100% |
| Photo is overexposed with blown highlights | Lower brightness slightly to 80 to 95%, avoid raising contrast further |
| Screenshot or scan needs sharper text | Raise contrast to 160 to 200% |
Common mistakes to avoid
- Pushing both sliders to the extreme. Very high brightness or contrast clips pixels to pure white or black and permanently loses detail in those areas. Make smaller moves and stop as soon as the image looks right.
- Confusing brightness with contrast. Brightness lifts or lowers the whole image evenly. Contrast widens or narrows the gap between lights and darks. If a photo looks dull but is not too dark, reach for contrast, not brightness.
- Expecting it to recover blown-out areas. If parts of a photo are already pure white or pure black, no slider can bring back detail that was never captured. Brightness and contrast redistribute existing tones, they do not invent new ones.
- Re-editing a JPEG many times elsewhere. This tool outputs lossless PNG, but if you keep saving as JPEG between edits the image degrades each time. Do your adjustments in one pass, then export once.
- Mixing this up with your monitor or TV brightness buttons. This tool changes the actual pixel values stored in the image file. It does not touch your screen, monitor or TV display settings, those are controlled separately by your device and affect how every image looks, not just this one.
- Reaching for brightness when the midtones are the real problem. Raising brightness shifts the whole tonal range, including pixels that are already pure black or pure white. If only the middle tones look off, a dedicated gamma or midtone tool preserves the black and white points better than a blanket brightness change.
Glossary
- Brightness
- How light or dark the overall image is. Raising it shifts every pixel toward white, lowering it toward black.
- Contrast
- The difference between the lightest and darkest parts of an image. More contrast makes that gap wider and punchier.
- Gamma
- A midtone adjustment that reshapes the tonal curve so the middle values move while pure black and pure white stay fixed, often used instead of brightness for a more natural fix.
- Histogram
- A graph showing how many pixels in an image fall at each brightness level from black to white, used to judge whether a photo is under or overexposed.
- Exposure
- How much light a photo captured at the moment it was taken. Brightness and contrast can only redistribute those captured tones, not restore light that was never recorded.
- Canvas filter
- A built-in browser feature (ctx.filter) that applies effects like brightness() and contrast() when drawing an image to a canvas.
- Clipping
- When pixel values are pushed past 0 or 255 and forced to pure black or pure white, permanently losing the detail that was there.
- PNG
- A lossless image format, meaning it stores the picture exactly without throwing away detail to save space.
Frequently asked questions
How do I adjust the brightness and contrast of an image?
Upload your photo, then drag the brightness slider to make it lighter or darker and the contrast slider to flatten or boost the difference between light and dark. The preview updates live, and you can download the result as a PNG when you are happy with it.
What is the difference between brightness and contrast?
Brightness shifts every pixel in the image toward lighter or darker by the same amount. Contrast changes the gap between the lightest and darkest pixels, pushing shadows darker and highlights lighter (more contrast) or pulling everything toward a flat grey middle (less contrast). Use brightness for an overall too-dark or too-light photo, and contrast for one that looks flat or hazy.
What is the difference between brightness/contrast and gamma or exposure?
Gamma, or midtones, lifts or lowers the middle tones while leaving pure black and pure white untouched, which many editors prefer for correcting an underexposed shot without clipping. Exposure describes the actual light the camera captured when the photo was taken and cannot be recovered afterward; brightness and contrast can only redistribute the tones that were already captured.
Is my image uploaded anywhere?
No. The tool works entirely in your browser using an HTML canvas. Your image never leaves your device and nothing is sent to a server, so it is completely private.
What do the percentages mean?
Both sliders are percentages where 100% is the original image. Below 100% reduces the effect (darker, or flatter) and above 100% increases it (brighter, or punchier). 0% gives a black image for brightness or a flat grey for contrast.
What image formats can I use?
Any image your browser can open, including JPG, PNG and WEBP. The adjusted image is always saved as a PNG, which is lossless so it keeps full quality.
Will adjusting brightness reduce image quality?
Brightness and contrast redistribute the tones already in your image. Pushed gently they look clean, but extreme settings clip pixels to pure white or black and lose detail there. The PNG output itself is lossless.
Why does my photo look worse after I raise the contrast too much?
Pushing contrast too high forces shadow pixels to pure black and highlight pixels to pure white, a process called clipping. Once that happens the detail in those areas is gone for good and cannot be recovered by adjusting the sliders back. Make smaller contrast increases and check the shadows and highlights as you go.
Does this tool change my screen or monitor brightness settings?
No. This tool only changes the pixel values stored in your image file. Your screen, monitor or TV brightness and contrast settings are separate hardware controls on your device and are not affected by this tool, and they do not affect the file you download.
Can I undo a change?
Yes. Click "Reset sliders" to return both to 100% and see the original again, or "Clear" to remove the image entirely. Because the original is kept in memory, your edits are never destructive until you download.