Round Corners, Border & Shadow
Give a picture rounded corners, a border and a soft drop shadow on a transparent or coloured background, with the output size and the shadow’s reach worked out for you.
How to Use
- Drop an image on the box, click to browse, or paste one. TIFF, PSD, HEIC, TGA and camera RAW files open too. A built-in sample is loaded so you can try the presets straight away.
- Choose Units: a percentage of the shorter side (the same look on any picture) or exact pixels.
- Set the Corner radius and an optional Border with its colour.
- Add a Shadow: blur, offsets and opacity. The canvas grows automatically so the shadow is never cut off.
- Leave the background Transparent for a cut-out PNG or WebP, or pick a colour, then save from the Save panel. JPEG has no transparency, so transparent areas turn white there.
Worked Example
A 4000 × 3000 photo with rounded corners, a border and a shadow. In percent of the 3000 px shorter side, a 3% radius is 90 px and a 1% border is 30 px, so the framed picture is 4060 × 3060 px and the border’s outer corners use 90 + 30 = 120 px. A 4% blur is 120 px and a 2% offset 60 px down, so the shadow reaches 1.5 × 120 + 60 = 240 px. The saved image is 4060 + 2 × 240 = 4540 × 3540 px, 33.93% more area than the photo.
How strong the shadow is at its edge. The blur has σ = 120 ÷ 2 = 60 px. Just past the shadow’s edge, 0.5 px out, its strength is opacity × Φ(−0.5 ÷ 60) = 0.35 × 0.4967 = 17.4%; at 60 px out it is 0.35 × Φ(−1) = 0.35 × 0.1587 = 5.6%; at 180 px, 3σ, it is 0.35 × 0.00135 = 0.05%, practically nothing, which is why the canvas stops there.
The common mistake: the same radius on both edges of the border. If the outer corner also used 90 px, the two curves would no longer share a centre, and across the diagonal the border would be √2 × 30 = 42.4 px thick instead of 30 px, a visible bulge at every corner. Using radius + border for the outer edge keeps the frame 30 px all the way round.
Show Work
Formulas
How Canvas Shadows Work
The shadow is drawn by the browser’s canvas, which follows the WHATWG HTML standard: it takes the alpha of what is being drawn, moves it by the shadow offsets, and blurs it with a Gaussian whose standard deviation σ is half the shadow blur value, then colours it and lays it underneath. The standard allows browsers to cap σ for very large blurs, so the Shadow check in Show Work compares what your browser actually drew with the Gaussian prediction.
A Gaussian never quite reaches zero, but it falls fast: 15.87% of the full strength remains one σ past the edge, 2.28% at 2σ and 0.13% at 3σ. Padding the canvas by 3σ, 1.5 × the blur value, therefore keeps the visible shadow without wasting space. Rounded corners are drawn as quarter circles of the chosen radius, joined by straight sides.
About This Tool
This tool rounds a picture’s corners, adds a border with evenly rounded outer corners, a Gaussian drop shadow and a margin, on a transparent or coloured background, in pixels or as a share of the shorter side. Show Work gives every size in pixels, the output dimensions and the area added, confirms the cut-away corner, and checks one shadow pixel against the Gaussian. Settings can be put in the page address, for example ?radius=6&sa=0.
Images are decoded and saved in your browser by the engine behind the Universal Image Converter, so TIFF, PSD, HEIC, TGA and RAW files work too. Nothing is uploaded.
Related tools: Screenshot Beautifier, Image Cropper, and Background Remover & Replacer.
Frequently Asked Questions
Why does the saved image get bigger?
A shadow spreads outside the picture, so the canvas needs room for it. The HTML canvas draws shadows with a Gaussian blur of σ = blur ÷ 2, which fades to almost nothing (0.13%) at 3σ = 1.5 × blur, so the tool adds 1.5 × blur plus the larger offset, plus your margin, on every side. Show Work gives the exact output size.
Why is the outer corner of the border rounder than the picture’s?
So the border keeps the same width all the way round. The outer edge uses radius + border, centred on the same point as the inner curve. If both edges used the same radius, the border would be about 1.41 times thicker at each corner, √2 × the border width.
How do I keep the corners transparent?
Set the background to Transparent and save as PNG, WebP or another format with an alpha channel. JPEG cannot store transparency, so the corners and the shadow area are filled with white when you save as JPEG.
Pixels or percent?
Percent sizes everything from the picture’s shorter side, so a preset looks the same on a 640 px screenshot and a 6000 px photo: 3% is 19.2 px on the first and 120 px on a 4000 px-tall photo. Use pixels when you need an exact value, such as a 2 px keyline.
Is my picture uploaded?
No. The corners, border and shadow are drawn in your browser on an HTML canvas, at the full size of your picture when you save. Nothing is sent to a server.
How do I use the Round Corners, Border & Shadow?
Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.
Do I need to install or sign up for anything?
Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.
Is my information private?
Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.
Common Use Cases
Screenshots for slides and docs
Rounded corners at 2% and a soft shadow 6% blur, 3% down, on a transparent background, so the screenshot floats on any slide.
Product photos
A gentle shadow of 4% blur at 35% opacity separates a product shot from a white page.
Framed photos
A 4% white border on a warm grey background gives a printed-photo look; 4% of a 3000 px side is 120 px.
Profile pictures and icons
Rounded corners on a square avatar or app icon, saved as PNG with transparent corners.
Last updated: