HeyDreaming

Free · processed in your browser · free account to download

Add a Border to a Photo

Loading the tool…

Drop an image, choose a border thickness and color, and place the frame either outside the photo so nothing is covered or inside to keep the exact pixel dimensions. Your photo is not uploaded.

How do I add a border to a photo online?

Drop a JPG, PNG, WebP, AVIF or HEIC file (up to 50 MB) into the box above. The tool starts with a 24 px white border outside the image. Adjust the Border slider from 0 px to 200 px, pick any color, optionally check "Draw the border inside the photo," and the full-size file is rendered by itself a moment after your last change, ready to download.

How it works

01

Add your photo

Drag a JPG, PNG, WebP, AVIF or HEIC (.heif) file up to 50 MB into the box, or click to select one from your device.

02

Set width, color and placement

Slide Border between 0 px and 200 px (default 24 px), choose a color with the picker, and decide whether the border sits outside or inside the photo.

03

Let the full-size image build

A moment after your last change, the frame is drawn on the full-resolution image by itself (inputs above 4096 px on the long side are scaled to 4096 px first).

04

Download the framed photo

Check the output dimensions and file size change, then download with a free HeyDreaming account. The file keeps your original name with -border added before the extension.

Outside border vs. inside border

By default, the border is added outside your photo on all four sides, so a 24 px border increases both the canvas width and height by 48 px and leaves every pixel of your original photo visible. This works well for print-style white mats or separating a dark screenshot from a dark page background.

If you need the output to stay at the exact same pixel dimensions and aspect ratio—for example, a 1080×1080 social post or a fixed upload slot—check "Draw the border inside the photo." Inside mode keeps the original width and height and paints the four border bands over the outer edge of the image. In both modes, only the border bands are filled with the border color, so any transparent interior areas in a PNG or WebP remain transparent.

Preview, formats and what changes in the file

While you adjust the controls, the live preview draws on a copy capped at 1200 px on the longer side and scales the border thickness proportionally so it matches the final appearance. The full-size file is then rendered automatically from the full-resolution image (inputs larger than 4096 px on the longer side are capped at 4096 px on load).

Opaque JPG, PNG, WebP and AVIF photos are saved back in their original format when your browser can encode them (JPG at 92% quality); if the browser cannot write WebP or AVIF, or if the input is HEIC or contains transparency, the tool saves a lossless PNG and explains why on screen. EXIF metadata, GPS coordinates and embedded color profiles are removed, and wide-gamut colors are converted to standard sRGB.

What this tool does not do

It draws one uniform solid-color border on all four sides; it does not set different widths per side, add drop shadows or text captions, or draw patterned picture frames.

See all free tools

Keep exploring

Related free tools

Questions

Add Border to Photo: FAQ

Is my photo uploaded to a server?

No. Decoding, framing and encoding happen in your browser, so your image stays on your device. The page sends usage events to Google Analytics, such as which tool ran, but never the image.

Does adding a border change my image dimensions?

By default, yes: an outside border of N pixels adds 2N pixels to both the width and the height so nothing in the photo is covered. Check "Draw the border inside the photo" if you want the width and height to stay unchanged.

Why was my photo saved as a PNG instead of its original format?

The tool saves as PNG in three cases: when your image has transparent pixels (so transparency is preserved), when the input is HEIC/HEIF (which browsers cannot encode), or when your browser cannot encode the input format (such as WebP in Safari or AVIF in browsers without AVIF canvas encoding). A note on screen explains whenever the format changes, and you can still choose another format in the Format menu at download.

Can I make a thicker bottom border like a Polaroid print?

This tool draws the same thickness on all four sides. For a wider bottom bar (18% on the bottom and 6% on the top and sides), use the Polaroid look in the Photo Filters or Vintage Filter tool.

What happens if my photo has a transparent background?

Only the four border strips are painted with your chosen border color. The transparent area inside the frame stays transparent, and the output is saved as a PNG by default. If you pick JPG or PDF in the Format menu at download, the transparent area turns white.

Can I add a blurred background frame instead of a solid color?

Yes—use the Blurred Photo Borders tool to fit a photo into 1:1, 4:5, 9:16 or 16:9 canvases over a blurred copy of itself.