Home › Image Tools › Add Drop Shadow to Image

Add Drop Shadow to Image

Give product cut-outs, logos, screenshots and photos a realistic shadow. The shadow follows the real outline of transparent PNGs, the canvas grows automatically so nothing is cut off, and the result downloads as a transparent PNG ready for any background.

Last updated:

Preview on

Shadow type

Background
Advertisement
Advertisement

How to use the Add Drop Shadow to Image

  1. Add your image: drop a PNG with a transparent background (a product cut-out or logo) or any photo, paste it or press Choose image. A sample mug is loaded first.
  2. Pick a preset such as Soft, Floating or Reflection, or choose the shadow type yourself.
  3. Adjust the shadow: move it with the X and Y offsets (or angle and length for a long shadow), soften it with Blur, grow or shrink it with Spread, and set color and opacity.
  4. Set the canvas: add margin, round the corners of photos and choose a transparent or colored background.
  5. Download PNG to keep the transparency, or JPG for a flat image with the chosen background.

How the shadow is built

The shadow is made from the image's own alpha channel, the invisible layer that stores how opaque each pixel is. For a cut-out product or logo, that is its exact outline; for a photo without transparency it is the rectangle, or a rounded rectangle when you round the corners.

  • Spread uses an exact Euclidean distance transform of the outline: every pixel knows how far it is from the edge, so growing or shrinking the shape by a number of pixels keeps corners round and even.
  • Blur applies a Gaussian blur to the silhouette, the same blur that browsers use for CSS shadows (the blur value is twice the standard deviation of the Gaussian).
  • Opacity and color tint the silhouette before it is placed under the image.
  • Long shadow repeats the silhouette along the chosen angle (built in log₂(length) steps, so it stays fast) and fades it with a gradient.
  • Reflection flips the image vertically below itself and fades it out with a gradient mask.

Offsets, blur and spread are scaled to the image size (the pixel values shown are real pixels in your output), so a preset looks the same on a 500 px logo and a 2400 px product photo.

Shadow settings for common uses

UseTypeSuggested settings
Product photo for a shopFloating or SoftY offset 40 to 70, blur 40 to 60, spread −20, opacity 35 to 45 %
Logo on a websiteSoftY offset 8 to 20, blur 20 to 40, opacity 20 to 30 %
Screenshot or photo cardSoft with rounded cornersCorners 3 to 6 %, Y offset 20, blur 50, opacity 30 %
Flat iconLong shadowAngle 45°, length 250 to 400, fade 100 %, opacity 20 %
Bottle, phone or gadgetReflectionGap 0 to 6, height 35 to 50 %, opacity 30 %
Sticker or text cut-outHardOffset 10 to 16 both ways, blur 0, opacity 30 %

Tips for realistic shadows

  • Light comes from above in most scenes, so a shadow slightly below the object (positive Y offset) looks the most natural.
  • Further means softer: the higher an object floats above the surface, the larger the offset and blur and the lighter the shadow should be.
  • Tinted shadows: on colored backgrounds, use a darker shade of the background color instead of pure black for a more natural look.
  • Need a cut-out first? Remove the background before adding the shadow so it follows the object instead of the photo's rectangle.

Frequently asked questions

How do I add a drop shadow to a PNG?

Load the PNG and the shadow is created from its transparent outline automatically. Use the Soft preset as a starting point, set the X and Y offsets for the light direction, add Blur for a softer edge, then download the result as a PNG. The canvas is enlarged so the shadow fits and the background stays transparent.

Does the shadow follow the shape or just the rectangle?

For images with transparency the shadow follows the exact alpha outline, including holes and soft edges. Photos without transparency are treated as a rectangle; you can round their corners first and the shadow will be rounded too.

What do blur, spread and opacity do?

Blur softens the shadow edge, like a light source that is larger or further away. Spread grows (positive) or shrinks (negative) the shadow outline before blurring; a negative spread with a large Y offset gives the soft 'floating' look. Opacity sets how dark the shadow is.

What is a long shadow?

A long shadow is a flat-design effect in which the object casts a solid shadow that stretches far in one direction, usually at 45 degrees, often fading out. Set the Angle, Length and Fade to style it.

Why is the downloaded image bigger than my original?

The shadow sits outside the original object, so the canvas grows by the shadow's offset, blur and spread plus the Margin you choose. This prevents the shadow from being cut off. Set Margin to 0 for the tightest possible size.

Can I use the shadow on a website?

Yes. Download a PNG with a transparent background and place it on any page color; the soft shadow blends naturally. For simple boxes in HTML you can also use CSS box-shadow, but an image shadow works for any shape and in emails, slides and documents.

Is my image uploaded?

No. The shadow is rendered with the Canvas API in your browser and your image never leaves your device.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Make Image TransparentRemove a white or solid-color background and save a transparent PNG, right in your browser.Background RemoverRemove image backgrounds automatically with AI.Round Corners ImageGive any picture rounded, circle or squircle corners and save a transparent PNG.Image Border AdderAdd a border, rounded corners, matte and shadow to a photo onlinePhoto EnhancerOne-click auto enhance: fix exposure, contrast, color cast and sharpness, one photo or a batch.Remove Object from PhotoBrush over unwanted objects, people or text and fill the area with matching background.Photo to CartoonTurn photos into cartoons with smooth colors and bold outlines. Free, private, no upload.Add Watermark to PhotoAdd a text or logo watermark to one or many photos at once.Blur Image & Face Pixelate ToolBlur or pixelate faces, plates and backgrounds in a photo.Pixelate Image & Pixel Art ConverterTurn any picture into pixel art with retro palettes and dithering.Add Text to ImageAdd styled text layers with outline and shadow to any photo, then downloadGrayscale Image ConverterTurn color photos into black and white with luma, luminance or average methods and sepia.Photo FiltersApply 27 one-click photo filters like Vintage, Noir and Teal & Orange with an intensity slider.Photo EditorEdit photos online: brightness, contrast, saturation, crop, rotate, flip and filters with undo.Image SharpenerSharpen soft or slightly blurry photos with a real unsharp mask and before/after view.Invert Image ColorsTurn any picture into a color negative, with R/G/B channel toggles and an intensity slider.Screenshot BeautifierPut screenshots on gradient backgrounds with padding, rounded corners, shadow and a browser frame.Image Metadata ViewerSee a photo's EXIF data: camera, lens, exposure, date and GPS location, then strip it in one click.EXIF RemoverRemove EXIF, GPS location and other metadata from JPG, PNG and WEBP photos.Online PaintDraw and paint in your browser: brushes, shapes, fill bucket, text, undo and PNG export.Photo to SketchTurn any photo into a pencil, charcoal or color sketch in your browser and download it.GIF Frame ExtractorSplit an animated GIF into PNG frames with delays, a sprite sheet and ZIP download.Photo Frame MakerPut photos in polaroid, film strip, gallery, rounded or shadow frames with a caption.Duotone GeneratorTurn any photo into a bold two-color duotone image with presets, custom colors and intensity.Glitch Image EffectAdd RGB split, scanlines, slice shifts and noise to a photo for a digital glitch look.Add Date Stamp to PhotoStamp the EXIF or a custom date on photos in a retro orange camera font. Batch and ZIP download.Add Text to GIFPut captions on animated GIFs with outline, position and frame range, then download.Blend Two ImagesOverlay two photos with opacity, 16 blend modes, fades and free positioning, then download.Blur Photo BackgroundBlur the background of any photo for a portrait-mode look. AI subject detection, no upload.Brick Mosaic GeneratorTurn a photo into a toy-brick stud mosaic with a parts list and printable build guide PDF.Online Document ScannerTurn photos of paper into clean scans: auto edge detection, perspective fix, multi-page PDF.Add Film Grain to PhotoAdd realistic analog film grain, light leaks, fade and vignette to any photo, then download.GIF Speed ChangerSpeed up or slow down an animated GIF, or set each frame's delay, without losing quality.Halftone GeneratorTurn images into mono or CMYK halftone dots and lines; export PNG or SVG.Image Noise RemoverRemove grain and color noise from photos with median, bilateral or non-local means filters.Image Dithering ToolDither photos with Floyd-Steinberg, Atkinson or Bayer in 1-bit, Game Boy, CGA and retro palettes.Perspective CorrectionDrag 4 corners to straighten skewed photos of signs, screens and whiteboards, then download.Photo Mosaic MakerBuild a big picture out of many small photos by color matching, then export a high-res PNG.Face Symmetry TestUpload a face photo to see left-left and right-right mirror composites and a symmetry score.Sports Tactics BoardDraw plays on basketball, soccer, football and hockey diagrams with players, arrows and animated frames.Add Outline to PNGAdd a stroke outline around transparent PNG cutouts: width, color, softness and double borders.Dehaze ImageRemove haze, fog and smog from photos with the dark channel prior. Free, private, in your browser.HDR Photo EffectGive any single photo an HDR look with local tone mapping, detail boost and a strength slider.Low Light Photo EnhancerBrighten dark and night photos with an adaptive tone curve plus noise reduction.Photo StackingStack photos online: star trails (lighten), noise reduction (mean) and remove passers-by (median).Photo to Oil PaintingTurn a photo into an oil painting with brush size, detail, impasto and canvas texture.Red Eye RemoverClick on red eyes to fix them automatically: adjustable threshold, undo, download the photo.Tilt Shift EffectMake photos look like miniature models with an adjustable tilt-shift focus band and blur.Colorize Black and White PhotoAdd natural color to old black and white photos with AI that runs in your browser. No upload.Draw on ImageAnnotate photos and screenshots with arrows, boxes, text, highlighter and numbered steps.Photo to AnimeTurn selfies and landscapes into anime-style art with AI in your browser. Free, no upload.Face Shape DetectorUpload a selfie to find your face shape on-device, with hairstyle and glasses tips.Add Background to Transparent PNGFill the transparent areas of a PNG with a color, gradient or photo, plus padding and shadow.Add Stickers to PhotoPut emoji and cute stickers on your photos; scale, rotate, flip and layer them, then save PNG.Color Splash EffectKeep one color, or a brushed area, in color and turn the rest of the photo black and white.Old Photo Face RestorerRestore blurry and damaged faces in old photos with AI (GFPGAN) in your browser. Free, no upload.Image Opacity ChangerMake an image semi-transparent with an opacity slider or fade, and save a transparent PNG.Photo to WatercolorTurn a photo into a watercolor painting with soft washes, color bleed, wet edges and paper texture.Product Photo White BackgroundRemove the background and center products on pure white at 2000 x 2000 for marketplaces. Batch.Redact ImageBlack out or pixelate private info in screenshots; burned in, metadata stripped, PNG download.Rubber Stamp MakerDesign round or rectangular stamps with curved text, borders, stars and grunge ink; PNG or SVG.Signature Background RemoverTurn a signature photo or scan into a clean transparent PNG: threshold, ink color, auto-crop.Skin SmoothingSmooth skin in portraits with face-aware retouching that keeps eyes, lips and skin texture sharp.Straighten ImageFix a tilted photo: rotate by any angle with a grid, auto-crop the corners or level the horizon.AI Style TransferRepaint your photo in the style of any painting or pattern with AI, right in your browser.SVG EditorEdit SVG files visually: move shapes, change colors, text and strokes, add shapes, edit the code.Symmetry Drawing ToolDraw mandalas and kaleidoscope art with radial and mirror symmetry, glow brushes and PNG export.Virtual Background MakerDesign 1920×1080 video call backgrounds with your name, title, logo, blur and branded templates.
See all 69 Photo Effects & Editing →