Image Border Adder

Add a solid border around an image, pad it out to a square, or round the corners, all in your browser.

Loading tool…

Your image is decoded and re-encoded in your browser using the Canvas API. It is never uploaded, so there is no transfer wait and no copy on any server.

What the Image Border Adder does

Use this image border adder to add a solid border around an image, pad it out to a square, or round the corners, all in your browser. Everything runs inside this page, so the work happens on your own device rather than on a server. It is most often used for adding a white frame around photos for a print-style layout. There are more free online tools on FreeToolStation.org.

How to use it

  1. Drop in your image.
  2. Set the border size in pixels, or as a percentage so it scales with the image.
  3. Pick the colour, and tick the square option if you need to pad to a square canvas.
  4. For rounded corners choose PNG output, then download.

How it works

A border serves two quite different purposes and this tool covers both. As a frame it separates a photograph from the page it sits on — a thin white border is the classic print-and-matte look, and a border in the page background colour makes an image appear to float. As padding it changes the canvas size without changing the picture, which is how you get a logo to fill a required square without stretching it.

Measuring in percent rather than pixels is the option to reach for when you are processing more than one image. A 24-pixel border is a bold frame on a 400-pixel thumbnail and a hairline on a 4000-pixel original, so a batch treated with a fixed pixel border comes out looking inconsistent. The percentage here is taken from the shorter side, so portrait and landscape images in the same set get visually matching frames.

Padding to a square is the fix for the single most common image-upload complaint. Platforms that display avatars, product tiles or thumbnails in a square frame will crop a non-square image to fit, and the crop is usually centred, which beheads tall portraits and clips wide logos. Padding to a square first means the whole image survives, with the background filling what would have been cropped.

Rounded corners need transparency outside the curve, which only PNG and WebP provide. If you choose JPEG with a radius set, there is nowhere for the transparent corners to go and they are filled with the border colour instead — fine when the border matches your page background, wrong on anything else. The tool says which case you got in its note.

When to use it

  • Adding a white frame around photos for a print-style layout.
  • Padding a logo out to a square for an avatar or app icon slot.
  • Making an image fit a fixed aspect ratio without cropping or stretching it.
  • Rounding the corners of a screenshot for a presentation.

Common mistakes to avoid

  • Using a pixel border across images of very different sizes, which looks inconsistent.
  • Choosing JPEG with rounded corners. The transparent corners become solid, since JPEG has no alpha channel.
  • Padding to a square when the platform crops anyway. Check whether it crops or fits before adding padding.

Frequently asked questions

How do I add a white border to a photo?

Drop the image in, leave the colour on white, and set the size — 2 to 4 percent of the shorter side gives a classic print border on images of any dimension.

How do I stop a platform cropping my image?

Pad it to the aspect ratio the platform displays. If it shows squares, pad to a square with a background that matches the surrounding design, and nothing of the original gets cut.

Why are my rounded corners not transparent?

Because you saved as JPEG, which has no alpha channel. Switch the output to PNG or WebP and the corners outside the curve will be genuinely transparent.

Related tools

See all image tools →