A border does three jobs: it separates the image from a white page, it mimics the look of a physical print, and it lets you fit any photo into a fixed aspect ratio without cropping.

Pick a Width in Percent, Not Pixels

A 20-pixel border looks chunky on a 400 px thumbnail and invisible on a 4000 px photo. Think in proportion instead:

  • Hairline (0.3–0.5% of the width) — a subtle 1–3 px rule that just separates the photo from a white background. Use a light grey, not black.
  • Print look (2–4%) — the classic white margin that makes a photo look like a physical print.
  • Polaroid (4% sides and top, 12–15% bottom) — the heavy bottom margin is what makes it read as instant film. Leave the bottom empty or put a short caption there.

Choose the Color With Intent

  • White is the default and disappears on light pages, letting the photo float.
  • Black adds drama and works when the photo has dark edges; it can also hide poor edge exposure.
  • A color pulled from the photo looks the most designed. Sample a muted tone from within the image itself rather than picking an arbitrary brand color.
  • Avoid gradients, drop shadows and multiple stacked borders — they date an image instantly.

Use a Border to Fix an Aspect Ratio

This is the underrated use. A platform wants a square, but your photo is 3:2 and cropping would cut off heads. Instead of cropping, pad the photo: place it on a square canvas and let the border fill the leftover space. Nothing is lost, and the layout stays consistent.

The practical way to do this is to add uneven margins — enough on the top and bottom (or sides) to reach the target ratio, then equal small margins on the other pair. Choose a padding color that matches the platform's background so the padding reads as intentional negative space.

Order of Operations

  1. Crop the composition you want first.
  2. Add the border/padding second, since it changes the final dimensions.
  3. Resize to the target pixel size last, so the border scales proportionally with the image.
  4. Compress at the end — flat border areas cost almost nothing in file size.

One caution for the web: a border baked into the image file can't adapt to dark mode. If the border is purely decorative on your own site, use CSS instead so it can change with the theme; bake it in only when the image will travel to platforms you don't control.