File4Edit

Add border to image

Add a border, padding, rounded corners or a drop shadow to an image, free and in your browser with no upload. The canvas grows outward, so no part of the picture is cropped.

Padding grows the canvas. A border is drawn inside the edge, so nothing is cropped.

In detail

The border tool adds padding, a border, rounded corners and a drop shadow around an image without cropping a single pixel of it. Padding grows the canvas outward and the border is drawn inside the outer edge, over the padding rather than over the picture.

A pad-to-aspect setting grows one side only until the result is 1:1, 4:5 or 16:9, which is how to fit a photo into a square post without losing its edges. Rounded corners need a format with transparency, such as PNG or WebP; in JPEG the corners are filled with a color you choose.

Add border to image at a glance

Input
JPG, PNG, WebP, AVIF, HEIC, GIF (first frame), BMP, TIFF, SVG and other image formats
Output
The original format, PNG, WebP or JPEG
What it does
  • Padding on each side or all at once
  • Border width up to 40 px
  • Corner radius up to 200 px
  • A drop shadow with blur and offset
  • Pad to 1:1, 4:5 or 16:9
  • Batch processing
Who it is for
Anyone framing photos for social posts, print or a portfolio.
Limits
  • JPEG cannot have transparent rounded corners.
  • A shadow needs enough padding to fall on.
Privacy
Runs entirely in your browser: no file is uploaded, and nothing is kept after you close the tab.

How to add a border to an image

  1. Add your images Drop one or more images. They are decoded one at a time, and the first that reads successfully drives the live preview.
  2. Set the padding Drag the padding slider for the same amount on all four sides, or turn off Same on all sides and type a top, right, bottom and left value. Then set the padding color.
  3. Pad to an aspect ratio Optionally pick 1:1, 4:5 or 16:9. Only the short axis grows, split evenly on both sides, so nothing is cropped to reach the ratio.
  4. Add the border, corners and shadow Set a border width up to 40 px and its color, a corner radius up to 200 px, and turn on the drop shadow to set its blur, offset and strength.
  5. Apply and download Choose Keep, PNG, WebP or JPEG, edit the filename pattern if you want, then press Apply. Download saves a single file, or a ZIP when there is more than one.

Add border to image: common questions

Does adding a border crop the image?

No. In File4Edit's border tool, padding grows the canvas outward and the image keeps every pixel it arrived with. Even the pad-to-aspect option only ever adds pixels to the short axis — reaching a ratio by taking pixels away would be a crop, and this tool never crops.

Can I get rounded corners in a JPEG?

Not real ones. JPEG has no alpha channel, so it cannot hold a transparent corner. When the output format has no transparency, the area the corner radius cuts away is filled with the Behind the corners color instead, and the tool says so on the page. Choose PNG or WebP if you need the corners to actually be transparent.

Why is my drop shadow cut off at the edge?

The shadow is cast by the image onto the padding around it, so it needs padding to fall on. If the blur plus the offset reaches further than the tightest padded side, the canvas edge cuts the shadow off. The tool warns with both numbers — the shadow's reach and the tightest padding — so you can raise the padding to match.