Change the Opacity of an Image
Scale an image's alpha channel to any percentage and export PNG, WebP or JPEG with a chosen flattening colour. The picture never leaves the tab.
What this page does
Makes the whole picture partly transparent by multiplying every pixel's alpha channel, without touching its colour. For formats without alpha you choose the colour it is flattened onto.
How to use it
Choose a file, set the options and press Render. Example: a 1200 × 800 PNG at 40% opacity becomes a 1200 × 800 PNG whose alpha channel is 40% of the original.
How it works
Every pixel's alpha is multiplied by the percentage and rounded; red, green and blue are left alone. PNG and WebP keep the result as real alpha, while JPEG has no alpha channel, so the picture is composited onto the flat colour you pick before encoding.
What it refuses
An opacity outside 0-100, a colour that is not a hex value, or an image with no pixels is refused by name. A JPEG export with transparency is not refused; it is flattened and the page says which colour.
Where it runs
The picture is decoded and redrawn on a canvas in this tab: there is no upload, no network request and no model, so the pixels never leave your device. It opens PNG, JPEG, WebP, GIF, BMP and AVIF up to 16,000,000 pixels (16 MP) and 25 MB per file; anything larger is refused with its measured size rather than drawn blank.
Makes the whole picture partly transparent by multiplying every pixel's alpha channel, without touching its colour. For formats without alpha you choose the colour it is flattened onto.
Every pixel's alpha is multiplied by the percentage and rounded; red, green and blue are left alone. PNG and WebP keep the result as real alpha, while JPEG has no alpha channel, so the picture is composited onto the flat colour you pick before encoding. The picture is decoded and redrawn on a canvas in this tab: there is no upload, no network request and no model, so the pixels never leave your device.
Worked example: a 1200 × 800 PNG at 40% opacity becomes a 1200 × 800 PNG whose alpha channel is 40% of the original.
How to use the change the opacity of an image
Choose an image file, set the options, and press Render. The result appears below the form.
Example: a 1200 × 800 PNG at 40% opacity becomes a 1200 × 800 PNG whose alpha channel is 40% of the original.
The picture is decoded and redrawn on a canvas in this tab: there is no upload, no network request and no model, so the pixels never leave your device.
- Opacity (%) — 0 to 100
- Flatten onto (JPEG) — one of white, black, grey
- Output format — one of png, jpeg, webp
- Quality (JPEG and WebP) — 1 to 100
What the canvas draws
Makes the whole picture partly transparent by multiplying every pixel's alpha channel, without touching its colour. For formats without alpha you choose the colour it is flattened onto.
Every pixel's alpha is multiplied by the percentage and rounded; red, green and blue are left alone. PNG and WebP keep the result as real alpha, while JPEG has no alpha channel, so the picture is composited onto the flat colour you pick before encoding.
- Every option is declared by this page, so an unknown choice or an out-of-range number is refused by name before any pixel is drawn.
- The preview and the download are the same canvas: what you see is the file you get.
What it refuses, and what it leaves out
An opacity outside 0-100, a colour that is not a hex value, or an image with no pixels is refused by name. A JPEG export with transparency is not refused; it is flattened and the page says which colour.
It opens PNG, JPEG, WebP, GIF, BMP and AVIF up to 16,000,000 pixels (16 MP) and 25 MB per file; anything larger is refused with its measured size rather than drawn blank.
- Not the right page for: making one colour transparent, which is the transparent-colour page
- Not the right page for: a gradient fade, which needs a mask
What to Expect
Best for
- a watermark layer that should not shout
- a background image under text
- fading a logo into a document
Not ideal for
- making one colour transparent, which is the transparent-colour page
- a gradient fade, which needs a mask
What this tool keeps
- Every colour value, unchanged
- The original alpha, scaled rather than replaced
- Transparency in PNG and WebP
What may need cleanup
- Picking a flattening colour that matches where the image will sit
- Re-exporting as PNG if the alpha matters
Common errors
- 0% is a fully transparent image, not an empty file
- JPEG output cannot keep alpha, so it is flattened
- An already-transparent PNG stays proportional
Example use cases
- A faint logo behind a slide title
- A soft background for a quote card
Sample input
a 1200 × 800 PNG at 40% opacity
Sample output
a 1200 × 800 PNG whose alpha channel is 40% of the original
Who this is for
- Designers layering images
- Anyone preparing a background image
Frequently asked questions
Does my image get uploaded anywhere?
The picture is decoded and redrawn on a canvas in this tab: there is no upload, no network request and no model, so the pixels never leave your device.
What is the maximum image size?
It opens PNG, JPEG, WebP, GIF, BMP and AVIF up to 16,000,000 pixels (16 MP) and 25 MB per file; anything larger is refused with its measured size rather than drawn blank. The limit exists because a browser tab has to hold the decoded bitmap in memory.
What happens if the file cannot be decoded?
The page refuses it by name — unsupported type, decode failure, zero pixels, or above the pixel cap — and shows the measured size rather than drawing a blank canvas. The file you chose stays selected so you can correct one option and try again.
Why does my PNG look the same as the original?
Check the format selector. PNG and WebP keep the new alpha and look transparent over a page background; JPEG has no alpha, so the page flattens it onto the chosen colour first.
Does 0% produce an empty file?
No. Every pixel keeps its colour and becomes fully transparent, so the file still has the same dimensions and can be layered. The download is a valid image, just invisible.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.