Add a border to an image
Put a solid frame around a photo, or place it on a square canvas so nothing gets cropped. Any colour, in px or %, processed in your browser.
Add a border to images
Choose the images to frame. They are processed in your browser.
Drop images here, or tap to select
JPG, PNG, WebP or BMP · up to 10 images, 50 MB each · Up to 50 MB each
Pick a width and a colour and the border shows up in the preview straight away. By default it goes outside the photo, so no pixel of the picture is covered: a 1200 × 800 image with the default 20 px border comes out at 1240 × 840. The same settings apply to every image in the list, up to 10 files of 50 MB each, and you can save them one at a time or as a single ZIP. The frame is drawn on a canvas inside your browser, so the photos are never uploaded.

Outside, inside or square canvas
Outside is the classic mat: the canvas grows by the border width on all four sides and the photo stays intact. Use it for prints and blog images.
Inside keeps the original dimensions and paints the border over the outer edge of the photo instead. Pick it when a slot demands an exact size, such as a 1080 × 1080 post, and the edges can spare a few pixels.
Square canvas centres the photo on a square whose side is the longer edge plus twice the border. A 1200 × 800 landscape with a 20 px border becomes 1240 × 1240, with 220 px of colour above and below the picture. That is how you post a whole landscape or portrait photo in a square feed without losing the sides, and it lines up product shots of different shapes in a square shop grid.
Pixels or percent of the shorter side
A border in px is exact. At 300 dpi, a quarter-inch white edge on a print is 75 px. A 1 or 2 px light grey line, on the other hand, is enough to stop a screenshot with a white background from blending into a white document or slide.
Percent is measured against the shorter side of each image, so a batch of mixed sizes gets borders that look the same. At 5 %, a 4000 × 3000 camera photo gets 150 px and a 1080 × 1080 phone picture gets 54 px; the settings panel shows the pixel value for the image you are previewing. The slider runs from 0 to 500 px or 0 to 50 %.
Colours, formats and file size
The swatches cover white, black, an off-white (#f4f1ea), a light grey (#e5e5e5) and charcoal (#333333). The picker or the hex field takes any other colour.
Same as original keeps a JPG as JPG, a PNG as PNG and a WebP as WebP; BMP files are saved as PNG. JPG and WebP are re-encoded at quality 92 by default (adjustable from 10 to 100). A JPG with a plain border stays close to its original size, since a flat strip of colour costs few bytes, and WebP is usually smaller still. A PNG can grow a lot, because the browser’s PNG encoder compresses less tightly than the program that made the original.
Transparent areas of a PNG or WebP stay transparent; only the frame itself is coloured. Save as JPG and those areas take the border colour, since JPG has no transparency.
How to add a border to an image
Add your images
Drop up to 10 JPG, PNG, WebP or BMP files onto the page, or click to choose them.
Set the width
Drag the Border width slider or type a value, in px or as a percent of the shorter side.
Choose position and colour
Pick Outside, Inside or Square canvas, then a swatch, the colour picker or a hex code. The preview updates as you go.
Download
Choose the output format and save each image, or download all of them as a ZIP. Files are named like photo-border.jpg.
Frequently asked questions
- How do I post a whole photo on Instagram without cropping it?
- Choose Square canvas with a white border. The photo is centred on a square and the shorter direction is filled with the border colour, so a 1:1 frame shows the full picture. Set the border to 0 if you want colour only on the short sides.
- Does the border change the size of my image?
- With Outside, yes: width and height each grow by twice the border, so 20 px on a 1200 × 800 photo gives 1240 × 840. Inside keeps 1200 × 800 and covers the outer 20 px of the photo. Square canvas makes both sides equal to the longer side plus twice the border.
- Can I add a border to a transparent PNG or logo?
- Yes. As PNG or WebP, the transparent pixels inside the frame stay transparent. As JPG, they are filled with the border colour.
- Is the camera data kept?
- No. Redrawing on a canvas drops EXIF data such as the camera model and GPS position. The rotation stored by phone cameras is applied first, so upright photos stay upright.
- Why did one of my images fail?
- A browser canvas has a size limit, 32,767 px per side in Chrome, and some mobile browsers, iPhones among them, cap the total pixel count at a much lower number. A very large photo plus a wide border can go past that. Use a smaller border, or shrink the image with the resize tool first.
- Are my photos uploaded?
- No. Decoding, drawing the border and encoding the result all happen in your browser tab. Nothing is sent to a server and closing the tab discards the images.
Recommended tools
Based on your current tool, you might also find these useful