Add a Drop Shadow to an Image
Cast a soft, offset shadow behind a picture's own silhouette and grow the canvas so nothing is clipped. Transparent PNGs keep their shape. No upload.
What this page does
Puts a blurred copy of the picture's outline behind the picture, offset by the amount you set. Because the shadow follows the alpha channel, a cut-out PNG casts its own shape while an opaque JPEG casts a rectangle.
How to use it
Choose a file, set the options and press Render. Example: an 800 × 600 PNG with a 24 px blur and a 12 px offset becomes an 872 × 672 PNG with a transparent border.
How it works
The alpha channel becomes a solid silhouette, which is blurred with the browser's canvas filter and composited behind the original at the offset you chose. The canvas is padded so the blur and the offset fit, and the padding is transparent in PNG and WebP output.
What it refuses
A negative blur, an offset larger than the padded canvas allows, a colour that is not a hex value, or an image over the pixel cap is refused by name.
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.
Puts a blurred copy of the picture's outline behind the picture, offset by the amount you set. Because the shadow follows the alpha channel, a cut-out PNG casts its own shape while an opaque JPEG casts a rectangle.
The alpha channel becomes a solid silhouette, which is blurred with the browser's canvas filter and composited behind the original at the offset you chose. The canvas is padded so the blur and the offset fit, and the padding is transparent in PNG and WebP output. 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: an 800 × 600 PNG with a 24 px blur and a 12 px offset becomes an 872 × 672 PNG with a transparent border.
How to use the add a drop shadow to an image
Choose an image file, set the options, and press Render. The result appears below the form.
Example: an 800 × 600 PNG with a 24 px blur and a 12 px offset becomes an 872 × 672 PNG with a transparent border.
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.
- Horizontal offset (px) — -200 to 200
- Vertical offset (px) — -200 to 200
- Blur radius (px) — 0 to 200
- Shadow opacity (%) — 0 to 100
- Shadow colour (hex) — a hex colour
- Output format — one of png, jpeg, webp
- Quality (JPEG and WebP) — 1 to 100
What the canvas draws
Puts a blurred copy of the picture's outline behind the picture, offset by the amount you set. Because the shadow follows the alpha channel, a cut-out PNG casts its own shape while an opaque JPEG casts a rectangle.
The alpha channel becomes a solid silhouette, which is blurred with the browser's canvas filter and composited behind the original at the offset you chose. The canvas is padded so the blur and the offset fit, and the padding is transparent in PNG and WebP output.
- 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
A negative blur, an offset larger than the padded canvas allows, a colour that is not a hex value, or an image over the pixel cap is refused by name.
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: a shadow that follows a shape the alpha channel does not describe
- Not the right page for: a drop shadow on text, which is the text tool's job
What to Expect
Best for
- making a cut-out product shot sit on a page
- giving a screenshot a lift before it goes in a slide
- adding depth to a logo without opening an editor
Not ideal for
- a shadow that follows a shape the alpha channel does not describe
- a drop shadow on text, which is the text tool's job
What this tool keeps
- The original pixels, untouched
- Transparency around the shadow in PNG and WebP
- The exact padding, so the shadow is never cut off
What may need cleanup
- Flattening onto a background colour if the destination needs JPEG
- Reducing the padding when the file size matters
Common errors
- A blur of 0 still draws an offset silhouette
- A hex colour without # is refused
- JPEG output must flatten the transparent border
Example use cases
- A product cut-out for a landing page
- A screenshot card for a documentation site
Sample input
an 800 × 600 PNG with a 24 px blur and a 12 px offset
Sample output
an 872 × 672 PNG with a transparent border
Who this is for
- Designers composing assets by hand
- Anyone making a screenshot look intentional
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 JPEG cast a rectangle?
A JPEG has no alpha channel, so its silhouette is the whole frame. Export the source as a PNG with a transparent background to get a shadow that follows the subject.
Why is the output bigger than the input?
The canvas is padded by the blur radius plus the larger offset, otherwise the shadow would be clipped at the edge. The extra area is transparent in PNG and WebP.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.