Add Border to Image Online – Frame a Photo with Color

Add a border to an image online in seconds — frame a photo with a border of any width and colour, inside the edges or outside as a frame, or switch to White border mode for the classic clean white frame.

100% In-Browser Privacy — Zero Server Uploads

Drop an image here, paste it, or choose a file

JPG, PNG, WebP, GIF and BMP, up to 25 MB. Your image never leaves this browser — nothing is uploaded.

Effect

Everything runs in your browser, so your photos are never uploaded. Set the width and colour, check the preview, and download the result.

How to Use Add Border To Image Online

Adding a border takes three quick steps: add your picture, set the width, colour and position, and download. There is nothing to install and no account to create, and the tool works the same way on a phone as on a computer.

Prepare Input Files or Images

Click "Choose an image" to pick a file from your device, drag it onto the drop area, or copy an image and paste it straight into the page. JPG, PNG, WebP, GIF and BMP files are accepted, and each file must be under 25 MB. The border works on any picture, but it shows best on photos with a clear subject and a little space around the edges.

Choose Settings and Preview Changes

Set the width in pixels, pick a colour, and choose the position: "Outside" grows the image by twice the border width on each side, adding a frame around the untouched photo; "Inside" keeps the dimensions and draws the border over the outer edge of the picture. White border mode fixes the colour to white — the classic frame for social posts — and leaves you the width and position.

Download and Verify the Output

Click "Download bordered image" to save the result. The download name starts with "bordered-" and your original file is never changed. Check the downloaded file's dimensions if you used an outside border: a 1200 × 800 px photo with a 40 px outside border comes out at 1280 × 880 px.

Add Border To Image: Editing Controls and Preview Options

The width slider runs from 0 to 200 px. A thin border of 2–10 px reads as a neat edge or a keyline; 20–40 px reads as a frame; 100 px and above is a bold mat, like a printed photograph in a mount. The colour picker takes any colour — white and black are the classics, but a colour pulled from the photo itself (a sky blue, a warm brown) can tie a frame to the picture.

For a social post, a white outside border of 20–40 px is the safe, clean choice. For a product photo, a thin inside border of 2–5 px in a dark colour sharpens the edge without changing the size. For a printed look, a wide white outside border (60–100 px) with the photo centred inside it mimics a mounted print.

Add Border To Image: Examples and Use Cases

People add borders to frame photos for social posts, to give product pictures a consistent edge, to make a screenshot stand out on a light background, and to prepare images for print. A white border is the most common request: it separates a photo from a white page or feed, and it is the standard frame for gallery-style posts.

Real Input and Output Example

Take a 1200 × 800 px landscape photo. Add a 40 px white outside border and it becomes a 1280 × 880 px image with a clean white frame — ready to post as-is. Add a 4 px black inside border instead and the dimensions stay 1200 × 800 px, with a thin dark keyline that makes the photo pop against a white web page.

Supported Formats, File Sizes and Browser Limits

The border tool accepts JPG, PNG, WebP, GIF and BMP uploads and exports to PNG, JPG or WebP. An outside border grows the dimensions by twice the border width on each side; an inside border keeps them. The output is capped at 8,192 pixels on a side, so a very wide border on a very large photo can hit the limit — the tool says so plainly if it does.

Image Quality, Size and Compatibility Checks

Adding a border never re-compresses the picture itself in PNG export — the original pixels are copied exactly, and only the frame is new. JPG export at 90% quality is visually identical for photographs. A border on a transparent PNG keeps the transparency of the picture; the border itself is always solid.

Common Add Border To Image Problems and Fixes

The most common surprise is a border that covers part of the picture — that is the inside position doing its job. Switch to "Outside" if the photo must stay fully visible. The opposite surprise is a download larger than expected, which is the outside border growing the dimensions; check the output size readout before downloading.

Troubleshooting Upload, Preview or Export Issues

A file that refuses to load is usually an unsupported type or a damaged file — the tool names the file and says what is wrong. If the border looks invisible, the colour may match the photo's edge or the page background — try black or a strong colour to confirm the border is there. If a download does not start, check that your browser is not blocking downloads from this site, then try again.

Merge Images, Round Corners, Add Text to Image, Photo Collage Maker.

Frequently Asked Questions About Add Border To Image

Mobile Support, File Privacy and Download Options

The border tool works in any modern mobile or desktop browser with JavaScript enabled: tap "Choose an image" to pick a photo from your phone, or drag a file in on a computer. Your pictures are processed locally and never uploaded, and they disappear when you close or refresh the page. The download saves straight to your device.

What is the difference between an inside and an outside border?

An outside border adds a frame around the photo and grows the image — a 40 px outside border adds 80 px to the width and 80 px to the height. An inside border draws over the outer edge of the picture and keeps the dimensions exactly the same, but it covers a strip of the photo itself.

How do I add a white border to an image?

Use the "White border" mode on this page: the colour is fixed to white, and you set only the width and position. A white outside border of 20–40 px is the classic frame for social posts; a wider one (60–100 px) mimics a mounted print.

Can I add a border without changing the image size?

Yes — choose the "Inside" position. The dimensions stay exactly the same; the border is drawn over the outer edge of the picture. Use a thin width (2–10 px) so it reads as an edge rather than covering the photo.

Does the border work on transparent PNGs?

Yes. The picture keeps its transparency in PNG and WebP downloads, and the border itself is always solid. In JPG downloads the transparent areas are filled with the background colour you choose, because JPG has no transparency.

Check border thickness on the final canvas

Use a narrow border when the image is already close to the maximum pixel dimensions. Reopen the downloaded image to check the outer dimensions and see how the border appears against the intended background.

Add border to image workspace with an example ready to inspect.
Add border to image workspace with an example ready to inspect.

Choose a border that separates the subject from the page

When you add a border to an image for a light page, a thin dark outline can preserve the edge of an otherwise white photo. For a dark page, preview a lighter frame. If the image belongs on a website you control, a CSS border gives you an editable frame without exporting a second image.

W3C specifies how CSS borders work for images and other page elements.

Compare the image before and after a contrasting border

The preview uses a dark frame around a synthetic image. Compare the amount of space it takes up with the original, then choose a width that still leaves the subject prominent when the image appears at thumbnail size.

Add border to image comparison showing the original card and a 42-pixel dark border.
Add border to image comparison showing the original card and a 42-pixel dark border.

Example