🌗 Image Brightness and Contrast Adjuster
By ToolNimba Editorial Team · Updated 2026-06-19
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.
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.
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.
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 |
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.
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.
- Canvas filter
- A built-in browser feature (ctx.filter) that applies effects like brightness() and contrast() when drawing an image to a canvas.
- Clamping
- Forcing a calculated pixel value back into the valid 0 to 255 range so it cannot go below black or above white.
- 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.
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.
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.