The simplest way to add a border depends on what you already have

You can add a border to a picture in three places: inside the image file itself using photo editing software, as a frame around the image in a document or webpage, or by resizing the canvas and filling the new space with color. Which one you choose depends on whether you want the border to travel with the image file (editing software), stay flexible while you work (document or web tools), or be permanent and part of the image itself (canvas resize).

Most people use photo editing software because it gives you the most control over color, width, and style. But if you are putting the picture in a document or on a website, adding the border there instead means you can change it later without re-editing the original file.

Key Takeaways

  • Photo editing software like Photoshop, GIMP, or Photopea lets you add a border by expanding the canvas and filling the new space with color or a pattern.
  • Document software like Microsoft Word or Google Docs can add a border around an image without changing the image file itself.
  • Online tools like Pixlr or Canva offer straightforward border templates if you do not want to learn a full editing program.
  • A border added in the image file is permanent; a border added in a document or webpage can be removed or changed later.

Adding a border in photo editing software

In Photoshop, open your image and go to Image > Canvas Size. Increase the width and height by the number of pixels you want the border to be — if you want a 20-pixel border on all sides, add 40 pixels to both the width and height. Make sure the image is centered in the new canvas (the anchor point should be in the middle). Then flatten the image, and the space around it will be filled with your foreground color. If you want a different color, set your foreground color before you flatten.

In GIMP (free software), the process is similar: Image > Canvas Size, increase the dimensions, center the layer, then flatten the image. GIMP will fill the new space with your background color, so set that first if you want something other than white.

In Photopea (free, browser-based), use Image > Canvas Size the same way. Photopea works almost identically to Photoshop, so if you know one, you know the other.

All three let you add a colored border this way. If you want a textured or patterned border instead, you can fill the new canvas space with a pattern or gradient after expanding the canvas but before flattening — the software will show you pattern options in the fill dialog.

Adding a border in a document

In Microsoft Word, insert your image, right-click it, and select "Format Picture" or "Picture Format" (the exact name varies by version). Look for a "Picture Border" or "Outline" option. You can set the color and width there. The border stays in the document but does not change the image file itself, so you can remove it or change it anytime.

In Google Docs, insert the image, click it, then click the border icon in the toolbar (it looks like a rectangle with a colored outline). Choose your color and width. Like Word, this border exists only in the document.

In Google Slides or PowerPoint, the process is the same: insert the image, right-click or click the format menu, and look for border or outline options.

This approach is useful if you are making a document you might change later, or if you want different borders on the same image in different places.

Adding a border on a website

If you are building a website with HTML and CSS, you can add a border to an image without editing the file. Use the CSS border property:

img { border: 5px solid black; }

This adds a 5-pixel black border to every image. You can change the color, width, and style (solid, dashed, dotted). If you use a website builder like Wix, Squarespace, or WordPress, you usually do not need to write code — click the image, look for a border or frame option in the settings panel, and adjust the width and color there.

A CSS border is useful because you can change it across your entire site by editing one line of code, and the original image file stays untouched.

Using online border tools

Canva has built-in border templates. Upload your image, click "Add frame" or look for border options in the left menu, choose a style, and read. Canva borders are often decorative — solid colors, gradients, or patterns — rather than straightforward lines.

Pixlr (free, browser-based) works like a simpler version of Photoshop. Open your image, go to Image > Canvas Size, expand it, and fill the new space with color. The steps are the same as GIMP or Photopea but with a slightly different interface.

Fotor and Photopea both have one-click border options in their menus, which is faster than manually expanding the canvas if you just want a straightforward colored border.

These tools are good if you do not want to install software or learn a full editing program, but they offer less control than Photoshop or GIMP.

Choosing between permanent and removable borders

A border added by expanding the canvas and flattening the image is permanent — it becomes part of the image file. If you change your mind later, you have to undo the edit or start over with the original file. This is fine if you are sure about the border and you want it to appear the same way everywhere the image is used.

A border added in a document, website, or as a frame in Canva is removable. You can delete it, change the color, or adjust the width without touching the original image. This is better if you are experimenting, or if you might want different borders in different places.

If you are not sure which you want, start with a document or website border. You can always edit the image file later if you decide the border should be permanent.

Common mistakes and how to avoid them

The most common mistake is forgetting to center the image when you expand the canvas. If the anchor point is in a corner instead of the middle, the border will be thicker on some sides than others. Always check that the image is centered before you flatten or fill.

Another mistake is expanding the canvas but forgetting to set your foreground or background color first. You end up with a white border when you wanted black, or vice versa. Set the color before you expand, or fill the new space with a specific color after expanding but before flattening.

If you are adding a border in a document and it looks blurry or pixelated, the image itself might be too small. Borders do not fix low resolution — they just frame it. If the image looks bad, resize it or use a higher-resolution version.

Frequently Asked Questions

Can I add a border to a picture without editing the original file?

Yes. Add the border in a document (Word, Google Docs), on a website (HTML/CSS or a website builder), or in Canva. The original image stays unchanged, and you can remove or change the border anytime. This is the best option if you might want to use the image elsewhere without the border.

What is the difference between a border and a frame?

A border is usually a straightforward line or solid color around the edge. A frame is often decorative — it might have texture, a pattern, or a beveled edge. Canva and Fotor call their decorative borders "frames." If you want just a straightforward line, use photo editing software or a document tool.

How do I add a white border to a picture?

In photo editing software, set your foreground or background color to white, expand the canvas, and flatten. In a document or website, set the border color to white. If you want a white border in Canva, upload the image, click the border or frame option, and choose white from the color picker.

Can I add a border to a picture on my phone?

Yes. Apps like Snapseed, PicsArt, and Pixlr have border tools. Open the image, look for a border, frame, or effects menu, choose your color and width, and save. Most phone apps work the same way as desktop software — expand the canvas and fill it with color.

What file format should I use after adding a border?

Save as JPEG if the image is a photo and file size matters. Save as PNG if you need transparency or if the image has text or graphics. Save as TIFF only if you need to edit it again later — TIFF files are much larger. Most of the time, JPEG or PNG is fine.