The fastest way to add a border in Photoshop

Open your image in Photoshop, then go to Image > Canvas Size. Increase the width and height by the same amount on all sides — if you want a 20-pixel border, add 40 pixels total to each dimension. Choose your border color under Canvas extension color, then click Center to place your image in the middle. Click OK. This method works best when you want a simple, even border around the entire image.

If you want more control over the border appearance — different colors, textures, or uneven widths — you can use the stroke method instead. Select Select > All, then go to Edit > Stroke. Choose your width, color, and position (inside, center, or outside the selection), then click OK. This gives you a border that sits on top of your image rather than expanding the canvas.

Key Takeaways

  • Canvas Size is the simplest method for adding a flat-color border that expands your image outward.
  • The Stroke method lets you place a border on top of your existing image without changing its dimensions.
  • You can use layer styles or adjustment layers to create textured or gradient borders for more visual interest.
  • Always work on a duplicate layer or flatten your image last so you can undo border changes if needed.

Using Canvas Size for a clean, even border

Canvas Size is the method most people reach for because it's straightforward and produces a clean result. Open your image, then navigate to Image > Canvas Size. A dialog box will appear showing your current dimensions.

Decide how thick you want your border. If you want a 30-pixel border on all sides, you'll add 60 pixels to both the width and height (30 on each side). Type the new dimensions into the width and height fields. Before you click OK, make sure the anchor point in the center grid is selected — this centers your image on the new canvas and creates an even border all around.

Under Canvas extension color, pick the color for your border. You can choose from the foreground color, background color, white, black, or a custom color by clicking the color swatch. Once you've set everything, click OK. Your image now has a border, and the canvas has expanded to accommodate it.

Creating a border with the Stroke method

The Stroke method places a border directly on your image without expanding the canvas. This is useful when you want to keep your image dimensions the same or when you want the border to overlap your image slightly.

Start by selecting Select > All to select the entire image. Then go to Edit > Stroke. A dialog will open asking for stroke width (in pixels), color, and position. The position option is important: Inside places the stroke inside your selection, Center straddles the edge, and Outside places it beyond the image boundary. For a traditional border effect, choose Inside. Pick your color and width, then click OK.

One drawback of Stroke is that it applies to a single layer. If you later want to adjust the border, you'll need to undo and start over. To avoid this, create a new layer before applying the stroke, so you can delete or modify it independently.

Adding texture or gradient borders with layer styles

For a more decorative border, use Photoshop's layer styles. Right-click your image layer and select Blending Options. In the Layer Style dialog, click Stroke on the left side. Set your width, color, and position as before, but now you can also choose a fill type — solid color, gradient, or pattern.

If you select Gradient as the fill type, you can create a border that fades from one color to another. Click on the gradient preview to open the gradient editor and customize the colors. If you choose Pattern, Photoshop will fill your border with a repeating pattern from its library. These options let you create borders that match your design without flattening your layers.

Layer styles are non-destructive, meaning you can turn them on and off or adjust them later without losing your original image. Double-click the layer to reopen the Layer Style dialog and make changes whenever you need to.

Borders with feathered or soft edges

If you want a border that fades into your image rather than having a hard edge, use a feathered selection. Go to Select > All, then Select > Modify > Border. Enter the width of your border in pixels. This creates a selection in the shape of a border around your image.

Now go to Select > Modify > Feather and enter a feather radius — 10 to 20 pixels usually works well for a soft fade. With your feathered border selected, create a new layer and fill it with your border color using Edit > Fill. The feather makes the edges blend smoothly into your image.

Saving your bordered image

Before you save, flatten your image if you want a single-layer file. Go to Image > Flatten Image. This merges all layers, including any border layers, into one. If you used layer styles for your border, flattening will bake them into the image permanently.

Save your file as a JPEG, PNG, or TIFF depending on your needs. Go to File > Export As (or Save As for PSD format). Choose your format and location, then click Export or Save. If you think you might want to adjust the border later, keep a PSD version with layers intact alongside your final export.

Frequently Asked Questions

Can I add a different colored border to each side?

Not with Canvas Size or Stroke alone — those methods apply one color to the entire border. To create multi-colored borders, use the selection and fill method: make separate rectangular selections for each side, feather them if you want soft edges, and fill each with a different color on separate layers.

What's the difference between Canvas Size and Stroke?

Canvas Size expands your image outward and adds space around it, so your final image is larger. Stroke places a border on top of your existing image without changing its overall dimensions. Use Canvas Size for a traditional mat effect; use Stroke when you need to keep your image size the same.

How do I add a border to just part of my image?

Make a selection of the area you want to border using the Rectangle Select or Lasso tool, then apply Stroke to that selection instead of selecting all. The border will only appear around the edges of your selection.

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

No — flattening merges all layers permanently, so the border becomes part of the image data. Always keep an unflattened PSD file if you think you might need to change the border later. You can flatten a copy for export while keeping the original editable.

What if my border looks pixelated or rough?

This usually happens when your image resolution is low or your border width is very small. Increase the border width, or work with a higher-resolution image. If you're using a pattern fill, try a pattern with smaller details. Feathering your selection before filling can also soften hard edges.