How to Add a Border or Frame to a Photo (Solid, Gradient or Blurred)

Add a clean border, mat-style padding, rounded frame or blurred-photo edge to any picture. Learn how border width, colour and format affect the final image.

Updated September 29, 2026 6 min read

Use the free Add Border to ImageFrame photos with solid, gradient or blurred-photo borders and padding

A border is one of the smallest edits you can make to a photo and one of the most effective. A thin white edge makes a product shot look catalogue-ready. A wide cream mat turns a snapshot into something that looks printed and framed. A coloured frame in your brand colour ties a set of social posts together, and a blurred-photo edge lets a picture of any shape fill a space without awkward bars.

This guide covers what makes a border look deliberate rather than accidental, how to size it, the difference between a border and padding, and how to add one in your browser without cropping a single pixel of the original.

Border, padding and frame: the vocabulary

It helps to separate three ideas that editors often blur together:

  • Border: the outer band of colour around the picture.
  • Padding (or a mat): a second band between the border and the photo, like the card mat inside a picture frame. It is often white or off-white.
  • Corner radius and shadow: finishing touches that make the whole piece look like a card or a physical print lifted off the page.

Importantly, adding a border makes the image larger. A 1000 × 800 px photo with a 40 px border on every side becomes 1080 × 880 px. Nothing is cropped. That is the key difference between a border and simply drawing a frame over the edges of the picture.

Choosing width and colour

Width

Think of the border in relation to the shorter side of the image:

Look Border width
Hairline edge for product photos on white pages 0.5-1%
Classic print-style border 3-5%
Gallery mat, lots of breathing room 8-15%

Borders are easier to judge as a percentage than in pixels, because the same 40 px looks generous on a small image and invisible on a large camera photo.

Colour

  • White or off-white is timeless and suits almost everything, especially on dark website backgrounds.
  • Black adds drama and suits high-contrast or night photos.
  • A colour taken from the photo looks cohesive and intentional. The average colour of the image is often a safe, harmonious choice.
  • A gradient works for social graphics and presentation slides, less so for fine-art prints.
  • A blurred copy of the photo fills the border with the picture's own colours. It is the same trick video apps use to put a vertical clip in a horizontal frame.

Add a border in your browser

The Add Border to Image tool builds the frame on your own device and saves at full resolution.

  1. Open Add Border to Image and drop a photo onto the page. A starting width of about 4% of the shorter side is set automatically.
  2. Set the Border width slider.
  3. Under Border fill, choose Solid, Gradient or Blurred photo.
  4. For solid and gradient borders, set the Border colour (or Start colour and End colour plus the Gradient angle). The Use the photo's average colour button fills in a matching tone for you.
  5. Add Inner padding for a mat effect and choose its Padding colour.
  6. Optionally round the frame with Rounded corners and switch on Drop shadow.
  7. Pick a format under Save as and click Download image. The final pixel size is shown beneath the button.

If you use rounded corners or a shadow, the area outside the frame is transparent, so JPG is not offered; the tool reminds you that PNG or WebP is needed to keep that transparency.

Other ways to add a border

Phone editors

Some phone gallery apps and many free photo apps include frames. They are fine for quick posts but often crop the image to a fixed shape, and a few add their own watermark.

Word processors and slides

Word, Google Docs, PowerPoint and Keynote can draw a border around an inserted picture. The border exists only inside that document; the image file itself is unchanged. That is ideal when the picture only lives in that document, and not when you need a bordered file to upload somewhere else.

Photo editors

In Photoshop, Image → Canvas Size with a fill colour, or a Stroke layer style, adds a border. In GIMP, Image → Canvas Size followed by filling the new area, or Filters → Decor → Add Border, does the same. These give fine control for print layouts.

CSS

For web pages, a CSS border, padding and border-radius on the <img> element produce the same look without editing the image. The Border Radius Generator helps with rounded corners in code. Editing the file is still better when the image will be shared outside your site.

Command line

ImageMagick adds a simple border in one line, which is useful for batches:

magick input.jpg -bordercolor white -border 40 output.jpg

Tips and troubleshooting

The border looks thin on social media

Platforms often crop or shrink images, so thin borders can vanish or become uneven. For Instagram in particular, a border that pads the photo to a supported shape works better; the Instagram Image Resizer is built for that job.

The border changes the aspect ratio

A border of equal width on all sides slightly changes the proportions of a non-square image. If you need an exact final size, for example 1080 × 1080, add the border and then resize, or use a tool that fits to a fixed canvas.

Black corners after saving

If you use rounded corners and save as JPG in another program, the transparent corners may turn black or white. Keep the file as PNG or WebP.

The blurred border looks dark

The blurred-photo fill is slightly darkened so that the sharp image stands out. On already dark photos, a solid light border may give more contrast.

Printing

If a print lab trims the edges, a thin border may be cut unevenly. Leave a wider border than you think you need, or ask the lab about bleed and trim.

Screenshots

For app or website screenshots, a gradient background with a window frame and shadow usually looks better than a plain border; Screenshot Beautifier is designed for that.

Frequently asked questions

Does adding a border crop my photo?

No. The border is added around the outside, so the image gets larger and every original pixel is kept.

What colour border looks best?

White or off-white suits most photos. For a cohesive look, use a colour taken from the photo itself, such as its average colour.

How do I add a white mat inside a coloured frame?

Set a coloured border, then add inner padding and choose white as the padding colour. The padding sits between the border and the photo, like a mat in a picture frame.

Why can't I save a rounded border as JPG?

JPG does not support transparency. Rounded corners and shadows leave transparent areas outside the frame, so they need PNG or WebP.

Can I add a border without changing the image size?

Not with this method, because the border is added outside the picture. If the final size must stay the same, resize or crop the bordered image afterwards.

Try it now: Add Border to Image

Loading tool…