The fastest way to add a border depends on what kind of border you want

A border in Photoshop is usually a stroke — a colored line drawn around the edge of your image or selection. The quickest method is to expand your canvas, fill the new space with color, and flatten the layers. If you want the border to sit on top of your image instead of pushing it outward, you can use the Stroke command on a selection. Both take under a minute once you know which one fits what you're making.

The canvas method works best when you want the border to be part of the final image size — like a mat around a photo. The stroke method works better when you're adding a decorative line to a graphic or when you need the border to sit exactly on top of existing content without changing dimensions.

Key Takeaways

  • The canvas method expands your image size, adds color in the new space, and works well for photo mats or frames.
  • The stroke method draws a line on top of your image using a selection, and doesn't change your final image dimensions.
  • Both methods start with choosing your border color in the foreground or background swatch before you begin.
  • Flattening your image at the end merges all layers into one, which you must do before saving as JPG or PNG.

Adding a border by expanding the canvas

Open your image in Photoshop. Go to Image in the menu bar, then select Canvas Size. A dialog box will open showing your current width and height in pixels. Decide how thick you want your border — if you want a 20-pixel border on all sides, add 40 pixels to both the width and height (20 on each side). Type the new dimensions into the width and height fields.

Before you click OK, look at the anchor grid in the dialog — it shows a small square in the center by default. This anchor tells Photoshop where to position your original image on the new canvas. Leave it centered so the border appears evenly on all sides. Choose your border color by clicking the canvas extension color dropdown and selecting a color, or set your background color first and let Photoshop use that. Click OK.

Your image now sits on a larger canvas with colored space around it. If the border color doesn't match what you wanted, undo (Ctrl+Z or Cmd+Z) and try again with a different color selected. Once the border looks right, flatten the image by going to Image > Flatten Image. This merges all layers into one, which is necessary before you save.

Adding a border using the stroke method

This method draws a line on top of your image without changing its size. Start by selecting the area you want to border. If you want a border around the entire image, go to Select > All. If you want to border only part of the image, use the rectangular selection tool or lasso tool to draw your selection first.

With your selection active, go to Edit > Stroke. A dialog opens asking for stroke width (in pixels), location (inside, center, or outside the selection), and color. Choose your width — 3 to 5 pixels is typical for a visible but not overwhelming border. Pick Inside if you want the stroke to sit within your selection boundary, or Outside if you want it to sit beyond the edge. Set your color by clicking the color box and choosing from the color picker.

Click OK and your border appears. If you don't like it, undo and try again with different settings. The stroke method leaves your image dimensions unchanged, so it's useful when you're compositing multiple elements or when the final size matters.

Choosing border color before you start

Both methods work faster if you set your color first. In Photoshop's toolbox on the left side, you'll see two overlapping squares — the foreground and background colors. Click the foreground square (the one on top) to open the color picker, then choose your border color. For the canvas method, you can also click the canvas extension color dropdown in the Canvas Size dialog and pick directly there.

If you're not sure what color to use, sample from your image itself. With the eyedropper tool (or by holding Alt while any selection tool is active), click on a color in your image to make it your foreground color. This ensures your border matches something already in the photo.

Adjusting border thickness and appearance

Border thickness is measured in pixels. A 10-pixel border is thin and subtle; a 40-pixel border is bold and prominent. For photos, 15 to 25 pixels usually looks balanced. For graphics or social media posts, you might go thicker — 30 to 50 pixels — depending on the overall size of your image.

If you want a softer, feathered border instead of a hard edge, use the stroke method and feather your selection before stroking. Go to Select > Modify > Feather, enter a feather radius (5 to 15 pixels is typical), then explore the stroke. The feathering blurs the border edge slightly, which can look more polished on certain images.

For a double border or a border with multiple colors, explore the stroke method twice with different selections. Make your first selection, stroke it, then make a smaller or larger selection and stroke again with a different color.

Saving your image after adding a border

Once your border is complete and you've flattened the image, save it in the format you need. Go to File > Export As (not Save As — Save As keeps it in Photoshop's native PSD format). Choose JPG for photos, PNG for graphics with transparency, or TIFF if you need lossless quality. Name your file and click Export.

If you think you might want to edit the border later, save a copy as a PSD file first (File > Save As) before you flatten and export. That way you keep the layered version in case you need to adjust anything.

Frequently Asked Questions

Can I add a border that's a different color on each side?

Not easily with the built-in border tools. The canvas method applies one color to all sides. To create a multi-color border, you'd need to expand the canvas, then manually paint or fill each side with a different color using the paintbrush or bucket fill tool. For most projects, a single-color border is simpler and looks cleaner.

What if I want a textured or patterned border instead of solid color?

Use the stroke method with a selection, then fill the stroke with a pattern instead of a solid color. After explore the stroke, go to Edit > Fill and choose Pattern from the dropdown, then pick a pattern from the library. Alternatively, expand the canvas and fill the border area with a pattern using the bucket fill tool set to Pattern mode.

How do I add a border to only one side of my image?

Use the rectangular selection tool to select just the area along one edge, then explore the stroke method. For example, to add a border to the bottom only, drag a thin rectangular selection along the bottom edge and stroke it. You can also expand the canvas and manually paint or fill only the side you want using the paintbrush.

Does adding a border change the file size?

Yes, slightly. A larger image (from the canvas method) will have a larger file size than the original. The stroke method doesn't change dimensions, so file size stays roughly the same. The difference is usually small — a few kilobytes — unless you're working with very large images.

Can I undo a border after I've flattened the image?

No, flattening merges all layers permanently. If you flatten and then realize you don't like the border, undo back to before you flattened (Ctrl+Z or Cmd+Z repeatedly), delete the border layer, and start over. This is why saving a PSD version before flattening is useful — you can always go back to the layered file and make changes.