What adding a border actually does to an image
To add a border to an image is to place the picture, unchanged and at its original size, in the centre of a new, larger canvas, and to paint the extra area around it in a chosen colour. That one sentence explains everything this tool does and everything it refuses to do. The photograph itself is not edited: no pixel of it is recoloured, cropped, stretched or sharpened. What changes is the canvas. If your photo is 1000 × 500 pixels and you ask for a 50-pixel border, the result is a 1100 × 600 canvas whose middle 1000 × 500 is your exact original photo and whose outer ring — 50 pixels deep on every side — is the border. People search for this under several names that all mean the same operation: add border to image, add frame to photo online, photo border maker, add white border to image. A frame is simply a border with presentation ambitions — wider, often coloured, sometimes doubled — and the machinery underneath is identical.
Why do such a simple thing so often? Because a border does real visual work. It separates a photograph from whatever sits behind it, creates a consistent edge across images shot at different sizes, and signals care — a framed image reads as finished on a certificate, an invitation, a memorial page or a shop listing. None of that requires editing the photo. All of it is done by the ring around it.
There is also a practical reason to prefer growing the canvas over the alternative some editors use — shrinking the photo inside its existing canvas. Shrinking throws away resolution and re-samples every pixel; growing keeps every original pixel and adds new ones only where the border goes. That is why the output size is always predictable to the pixel: original size, plus twice the border thickness, in each dimension. The rest of this guide works through the choices that follow — width in pixels or percent, single or double borders, colour, corners, and the one genuine trade-off, PNG versus JPEG.
How to add a border or frame to a photo, step by step
Start with the cleanest version of the image you have. A border frames the file exactly as it stands, so crop first if the photo still carries a screenshot frame or scanner edge — the Image Cropper on this site handles it. When you upload, the tool reports the image's true pixel dimensions; every later number on the page is built from those two figures.
Next, the width. If you are framing one image for a known destination — a print, a listing, a slide — pixels are the honest unit. If you are framing a set of images of different sizes and want them to look like a family, percent is better, because a 5 percent border is proportionally identical on every shot. Then the colour: white for the printed-photo look, black for a cinema frame, or any custom colour from the picker. The presets encode the combinations people actually ask for — thin white, classic white, the Instagram white frame, cinema black and a gallery double frame — and each is only a starting point that leaves every control in your hands.
Finish with the optional layers. A double border adds a gap and a thin inner line inside the main frame; rounded corners soften the outside of the finished image; and the format choice decides how transparency is treated, which the format section below explains in full. Watch the live preview and the output readout as you work — the readout always states the final dimensions your download will have. When it matches what you intended, click Add Border and download. If you are framing several photos to match, write down the settings you used; percent mode plus a hex colour is a complete, repeatable recipe.
The maths: pixels, percent and the exact output size
A border is added on all four sides, so it is counted twice in each dimension. The whole arithmetic of this tool fits in two lines: output width = image width + 2 × (border per side) and output height = image height + 2 × (border per side). The worked example this page is built around: a 1000 × 500 image with a 50-pixel border. Per side, 50 pixels. Width: 1000 + 2 × 50 = 1100. Height: 500 + 2 × 50 = 600. The framed image is 1100 × 600 pixels, and the photo inside it is still exactly 1000 × 500. If a tool ever hands you a bordered file whose dimensions do not satisfy that equation, it has done something else to your photo — usually shrunk it — and it should have told you.
Percent mode changes only how the per-side figure is found. The border is a percentage of the shorter side of the image: border pixels = shorter side × percent ÷ 100, rounded to the nearest whole pixel because a canvas cannot hold half a pixel. For the same 1000 × 500 image at 10 percent: the shorter side is 500, 10 percent of 500 is exactly 50, and the output is again 1100 × 600. The shorter side is the right reference because it is the dimension that constrains how deep a frame can look before it overwhelms the picture; a percentage of the longer side would produce borders that feel twice as heavy on a panoramic photo as on a square one at the same setting. Percent mode is also self-scaling: drop in a 4000 × 3000 camera original at 5 percent and the border is 150 pixels, which looks the same, proportionally, as 50 pixels on a 1200 × 900 export at the same 5 percent. One setting, a matched set.
Double borders extend the per-side total rather than changing the rule. Per side, the total is outer border + gap + inner line. Take an outer border of 40 pixels, a gap of 10 pixels and an inner line of 5 pixels: the total is 55 pixels per side, and the 1000 × 500 image becomes 1000 + 110 = 1110 wide and 500 + 110 = 610 tall. The readout in the workbench performs this addition for you and states the per-side total and the final dimensions together, so the number you download is the number you checked. And the edge case behaves as it should: a border of zero adds nothing, and the output dimensions equal the input dimensions exactly — useful to know if you ever use this tool only to convert a format or flatten a transparent image onto a background.
Preset sizes: common photos and their framed outputs
The table below applies the formula to the image sizes that arrive here most often. Use it to choose a width before you upload: find your photo's size, read across to the framed output, and check that the result still suits its destination — a framed 1080-pixel square is no longer a 1080-pixel square, which matters on platforms that resize uploads above a stated size.
| Starting image | Border setting | Per side | Framed output |
|---|---|---|---|
| 1000 × 500 px — web banner photo | 50 px | 50 px | 1100 × 600 px |
| 1000 × 500 px — web banner photo | 10% of shorter side | 50 px | 1100 × 600 px |
| 1000 × 500 px — web banner photo | Double: 40 px + 10 px gap + 5 px line | 55 px | 1110 × 610 px |
| 1920 × 1080 px — HD photo or still | 5% of shorter side | 54 px | 2028 × 1188 px |
| 1080 × 1350 px — Instagram portrait | White, 40 px | 40 px | 1160 × 1430 px |
| 1080 × 1080 px — square post | White, 10% of shorter side | 108 px | 1296 × 1296 px |
| 4000 × 3000 px — camera original | 5% of shorter side | 150 px | 4300 × 3300 px |
| 800 × 800 px — product photo | White, 25 px | 25 px | 850 × 850 px |
Two patterns in the table are worth noticing. First, pixel and percent settings can land on exactly the same frame — 50 pixels and 10 percent coincide on a 1000 × 500 image — because percent is only a way of deriving the pixel figure from the image itself. Second, percentage borders grow with the image: the same 5 percent that adds a modest 54 pixels to an HD still adds 150 pixels to a camera original. That is the point of the mode, but it also means a percent-framed original intended for print carries a genuinely print-weight frame, while a pixel setting chosen for the screen would nearly vanish at that size. Match the unit to the job: pixels for a fixed destination, percent for a family of images or a print-size frame.
Double borders: the outer frame, the gap and the inner line
A double border is three concentric decisions. The outer border is the main frame — the widest band, in the main colour. Inside it sits the gap, painted in its own colour, acting as the mount board in a physical frame. Closest to the photo is the inner line, a thin rule that crisply separates mount from image. Certificates, invitations, memorial portraits and gallery prints have used this structure for a century because it reads as formal at almost any size.
In this tool each layer has its own width and colour, and the per-side total — outer plus gap plus inner — is what the output formula consumes. Practical guidance: keep the inner line thin (3 to 8 pixels at web sizes), make the gap at least as wide as the inner line, and let the outer border carry the colour statement while the gap stays neutral. If the result looks busy, subtract — a thinner inner line or a wider, quieter gap — rather than adding colour.
Choosing a border colour: white, black and everything else
White is the default for a reason: it imitates paper. A white border tells the viewer the image is a print, a page or a photograph in an album, and it separates the picture from any background without introducing a colour of its own — which is why add white border to image is the most common form of this search, and why the classic presets in the workbench are white. White also forgives: it suits colour and monochrome photos alike and never clashes with the subject. Its one weakness is invisibility on a white page, where the frame is felt rather than seen — sometimes exactly the effect wanted, sometimes a reason to add a hairline inner line in a soft grey or black through the double-border option.
Black is the other classic, and it behaves oppositely: it darkens and intensifies, the way a cinema surround makes the picture glow, and it suits night photography, screenshots and dark pages. Between the two classics sits the whole spectrum, available from the colour picker with its exact hex value displayed — match a border to a brand colour or a page background and note the hex so the next image matches to the digit. Two cautions: a saturated border competes with the photo, so strong colours work best thin; and a border colour sampled from inside the photo itself almost always looks more designed than an unrelated colour at the same width.
Borders for Instagram and social feeds
The white border became a social signature for a practical reason: feeds scroll fast, backgrounds are white or near-white, and an unframed photo whose edges are pale — a beach, a bright room, a product on white — dissolves into the app around it. A deliberate white frame gives the picture an edge again, and a consistent frame across a grid turns separate posts into a recognisable set, which is why border for Instagram photos remains a standing search years after the look first spread. The Instagram white preset in this tool sets an 8 percent white border, a depth that reads clearly at feed size without eating the photo; JPEG is the right download format for posting, and the guide's table shows what common Instagram sizes become once framed.
Honesty about scope matters here. This tool adds an even border on all four sides; it does not crop a landscape photo into a portrait, pad a photo into a square, or resize anything — those are different operations, and the padded-square look in particular is a resize, not a border. If you need it, the Instagram Image Resizer on this site prepares the canvas first, then bring the result here and add the frame last. Size first and border last is the right sequence generally: a border added before a resize gets resized too, while a border added last is exactly the width you set.
Rounded corners, done honestly
The corner radius rounds the outside corners of the finished image — frame and photo together — by the number of pixels you set. A small radius, 12 to 24 pixels at web sizes, takes the sting out of a sharp rectangle and matches the rounded cards and avatars most modern interfaces use; a large radius moves toward a circular-crop feel on square images, though it never changes the image's rectangular dimensions. What happens to the cut-off corner triangles depends on the format, and this is stated plainly because tools often hide it: with PNG output those corners are transparent, so the image composites naturally over any background. With JPEG output transparency is impossible, so the corners are filled with the JPEG background colour you selected — choose the colour of the page or document the image will sit on, or the rounded corners will announce themselves as little coloured wedges.
PNG or JPEG: transparency and the flattening rule
The flattening rule deserves exact language, because it is arithmetic, not a vague warning. When a pixel is fully transparent, its flattened colour is exactly the chosen background — a transparent pixel over a white background becomes white, full stop. When a pixel is half transparent, its flattened colour is an even blend: half its own colour, half the background. This compositing is what every JPEG export must do, since the format has no alpha channel to store; the only choice a tool really offers is which background colour to flatten onto, and this tool puts that choice in front of you rather than silently assuming white. If your transparent logo will sit on a dark page, set the background to that dark colour before choosing JPEG, and the edges will blend the way the designer intended instead of showing a pale fringe. Or keep PNG and sidestep flattening altogether — for a logo, that is usually the right call.
Quality follows the same split. PNG is lossless: the bordered file's photo area is bit-for-bit your original, and the price is file size, which on a large photograph can be several megabytes. JPEG re-encodes the entire canvas — photo and border together — with lossy compression controlled by the quality slider; at the default 92 percent a photograph shows no visible change, while fine text and hard graphic edges are where any softening would appear first. Neither format touches the dimensions or the border maths. And one archival habit is worth adopting whatever you choose: keep your unframed original. A border can always be added again at a different width or colour; it cannot be cleanly removed from a flattened JPEG.
Limits and honest warnings
What this tool cannot do, stated plainly. It cannot add an uneven border — more space at the bottom than the top, in the instant-photo style — because its borders are even on all four sides by design. It cannot animate: an animated GIF or WebP is read as its first frame and downloaded as a still. It cannot recover quality: framing a small, soft image produces a larger canvas around the same small, soft image. And its practical ceiling is your device's memory: extremely large images with wide percentage borders can strain a low-memory phone, in which case framing a sensibly sized export gives the same visual result.
A word on colour accuracy completes the honesty list. The border colour you pick is the colour that is painted — the hex value in the workbench is the value in the file. But a JPEG download re-encodes the whole canvas, and flat colour areas survive that process essentially unchanged at high quality, while a screenshot or system colour picker measuring the result may report a value one step off due to its own sampling. If an exact brand colour must survive to the digit — for print or a strict brand portal — download as PNG, where no re-encode stands between the colour you chose and the file you receive.
Sources & References
The behaviour described in this guide — canvas drawing, image decoding, file reading and the PNG and JPEG encoding used for downloads — is documented in the web platform references below. All seven sources were checked in November 2026. Note on the HTML specification: the canvas element is specified in the WHATWG HTML Standard, the maintained successor to the W3C HTML specification, and that living standard is the version cited here.
- MDN Web Docs — Canvas API — developer.mozilla.org/en-US/docs/Web/API/Canvas_API (the 2D canvas drawing model this tool uses to build the larger framed canvas and paint the border.)
- MDN Web Docs — HTMLCanvasElement: toBlob() method — developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob (the browser encoding that produces the PNG and JPEG downloads; its quality parameter applies to lossy formats such as JPEG.)
- MDN Web Docs — File API — developer.mozilla.org/en-US/docs/Web/API/File_API (the File, Blob and FileReader interfaces used to read your image and produce the download entirely on your device.)
- WHATWG — HTML Standard, the canvas element — html.spec.whatwg.org/multipage/canvas.html (the specification of the canvas element and its 2D context; the WHATWG HTML Standard is the maintained successor to the W3C HTML specification.)
- MDN Web Docs — Window: createImageBitmap() method — developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap (the asynchronous image decoding path browsers provide for drawing uploaded images to a canvas.)
- web.dev — Reading files in JavaScript — web.dev/articles/read-files (how web applications read user-selected files locally with the File API, without sending them to a server.)
- MDN Web Docs — ImageData — developer.mozilla.org/en-US/docs/Web/API/ImageData (the pixel data model, including the alpha channel, behind the transparency flattening described in this guide.)