A plain border is one of the oldest tricks in photo presentation. A white frame makes a picture look printed and mounted, a black one makes colours look richer, and a thick band of colour lets a landscape photo sit inside a square post without anything being cut off. It is also the edit that phone galleries most often leave out.
The Add Border to Image tool does it in your browser. This guide walks through it, explains how to choose a width that looks right, and works through the square-post layout with real numbers.
Adding a border, step by step
- Open the Add Border to Image tool and drop in a PNG, JPG or WebP file. It is read on your device - nothing is uploaded.
- Choose how to measure the border: as a percentage of the picture, or in pixels.
- Drag the Border slider, or type an exact value. The preview updates as you go, and the label shows the width in pixels.
- Pick a colour - White, Black, Cream and Gray are one click away, and the colour picker gives you any other.
- Optionally tick 'Set each side separately', round the corners, or tick 'Make it square'.
- Choose PNG or JPG and download. The file is named after your original with -border added.
The picture itself is never resized, cropped or resampled. It is copied into the middle of a larger canvas at its original size, and the border is the new space around it - so a 4000x3000 photo with a 150px border comes out at 4300x3300.
Percent or pixels: choosing a width
Percent is the default because a border is really a proportion. In this tool the percentage is of the picture's shorter side, so it means the same thing on a portrait and a landscape photo. 5% is 54px when the shorter side is 1080px and 150px when it is 3000px - and both look the same once each picture fills a screen.
Pixels are for when someone has given you an exact figure: a print shop that wants a 3mm white edge at 300 dpi (about 35px), or a template with a fixed frame. Switching between the two converts the value you typed, so the border stays where it was rather than jumping.
As a starting point:
- 2-3% - a thin keyline that separates a photo from a white page or a busy background.
- 4-6% - a clean frame that reads as a print. Good for most social posts.
- 8-12% - a gallery mount. The photo looks small and deliberate, which suits a single strong image.
Different sizes on each side
Tick 'Set each side separately' and the single slider becomes four boxes: top, right, bottom and left, each showing its width in pixels. Your current border is copied into all four, so you start from an even frame and change only what you need.
The classic use is a deeper bottom edge, like an instant-camera print. Take a 1080x1080 photo with 5% on the top and sides (54px) and 20% at the bottom (216px). The result is 1188x1350: an even frame on three sides and a wide strip at the bottom where a caption or date would go. A deeper bottom also looks better on a wall print, where a frame of exactly even width tends to look as if the picture has slipped down.
Making a photo square for Instagram without cropping
Instagram and many profile-picture slots want a square. Upload a landscape photo and the app crops it to fit, cutting off the ends. Tick 'Make it square' and the tool pads the shorter side with the border colour instead, so the whole picture fits.
Worked through with a 4000x3000 landscape photo and a 5% white border:
- 5% of the shorter side (3000px) is 150px, so the framed photo is 4000 + 300 = 4300px wide and 3000 + 300 = 3300px tall.
- To be square it must be 4300px tall too, so 1,000px of extra border is needed, split evenly: 500px above and 500px below.
- The finished file is 4300x4300. The left and right borders stay at 150px; the top and bottom are 650px each, with the photo centred.
- Instagram shows a square post at 1080px, so it scales the file by 1080 / 4300. On screen the side borders come out at about 38px and the top and bottom at about 163px.
The border you set is the minimum on every side, so even the long edges keep a frame. Set the border to 0 if you want the picture to touch the left and right edges with bands only above and below. If the extra space would be odd by one pixel, the spare pixel goes to the right or bottom - not something you will see.
Instagram also accepts 4:5 portrait posts, which show more of a tall photo than a square does. Square padding is for square posts, grids and profile pictures, and for WhatsApp and other apps that crop a display picture to a circle - a square with even space around the face survives that crop. To cut a photo into a circle directly, use Circle Crop Image.
Rounded corners
The Rounded corners slider rounds the outside of the whole frame. Its value is a percentage of the finished image's shorter side, up to 50%, where the short ends become full semicircles. At 10% on that 4300x3300 example, each corner has a radius of 330px.
The corners are cut with an anti-aliased mask applied last, after the border and the photo are drawn, so both share one smooth edge. What happens outside the curve depends on the format: a PNG keeps it transparent, so the rounded frame sits cleanly on any page, while a JPG cannot store transparency and fills it with white.
PNG or JPG
The download matches your original by default: a JPG stays a JPG, saved at high quality, and anything else becomes a PNG. For photos, JPG keeps the file small. PNG is lossless and keeps transparency - both around rounded corners and inside the picture itself, so a logo on a transparent background stays see-through inside its frame rather than picking up the border colour.
The output carries no EXIF data, so the original's GPS position and camera details are not copied across. If you want to check what a photo is carrying before you share it, the EXIF viewer shows every field.
Large photos
Browsers limit how big a single canvas can be, at roughly 40 million pixels. A 7000x5000 photo is already 35 million, and a wide border or a square pad can push it past the limit. If that happens the tool says so instead of producing a blank file; use a thinner border, or shrink the picture first with the image resizer - for a social post, 2000px on the long side is plenty.
Frame it now
Drop in a photo, choose a width and colour, and download it framed at full size. Open the Add Border to Image tool - free, no sign-up, and nothing ever leaves your browser.
Frequently asked questions
- How do I add a white border to a photo?
- Load the photo into the Add Border to Image tool, leave the colour on White and drag the Border slider - 4-6% of the picture gives a clean, print-like frame. Then download. The photo keeps its full resolution; the border is added around it, so the file gets slightly larger in each dimension.
- How do I post a full photo on Instagram without it being cropped?
- Tick 'Make it square' before downloading. The shorter side is padded with the border colour until the image is square, so a landscape or portrait photo fits Instagram's square frame whole. A 4000x3000 photo with a 5% border becomes 4300x4300, with 150px at the sides and 650px above and below.
- Why are my rounded corners white instead of transparent?
- Because the download is a JPG, and JPG cannot store transparency, so the area outside the curve is filled with white. Switch the output format to PNG and the corners stay see-through, which is what you want for a frame that sits on a coloured page or in a presentation.