Image Border

How to use 4 steps
  1. Press Choose an image.
  2. Set the Border width, Inner padding and Style.
  3. Pick the Border colour and Padding colour.
  4. Press Add border, then download the result.
Processed entirely in your browser. Nothing is uploaded.
A mat between the picture and the border, in the padding colour.
Result

The border is added outside the picture rather than drawn over it, so the canvas grows and no part of the original is covered. Border widths are in pixels of the source image, which means the same setting looks thinner on a large photo than on a small one — check the reported output size before printing. The polaroid style widens only the bottom edge, in the classic 1:1.2 proportion.

How this tool works

A border is drawn around the image and, separately, padding can be added between the image and that border. The two are independent, which is what allows the matted look of a framed print: a band of one colour immediately around the image, and a line of another colour outside it. Using only one gives a plain frame.

The image is not cropped — the canvas grows to accommodate whatever is added, so nothing is lost from the edges. Several border styles are available, and the output format is yours, with formats lacking transparency flattened onto the padding colour first.

Framing without overwhelming

  • The canvas grows, the image does not shrink: the exported file is larger in dimensions than the original by the border and padding on each side. Account for that where the result goes into a fixed space.
  • Padding is the mat, the border is the frame: a white or off-white band immediately around a photograph is what makes it read as framed. Going straight to a coloured line looks like a web element rather than a print.
  • Scale the border to the image: a ten-pixel border is a heavy frame on a thumbnail and invisible on a full-resolution photograph. Judge it against the size the image will be seen at.
  • Consider CSS instead where you control the page: a border applied in the stylesheet leaves the file untouched and adapts to any size. Add it to the file when the image is going somewhere you do not control.

Two settings, and the difference between them

A border is the line around the image. Padding is the space between the image and that line. They are independent, and using both is what produces the matted look of a framed print: a band of one colour immediately around the picture, and a line of another colour outside it.

Using only the border gives a plain frame. Using only the padding gives a mat with no edge. The [msm_tool slug="image-border"] offers both because the combination is what most people are actually after when they say a photograph needs a frame.

The canvas grows — nothing is cropped

Adding a border does not eat into the image. The canvas expands to make room, so the exported file is larger in dimensions than the original by the border and padding on each side.

That matters where the result goes into a fixed space. A 1000-pixel image with 20 pixels of padding and a 4-pixel border comes out at 1048 pixels square, and a slot expecting 1000 will scale it down — making the border thinner than you designed.

Scale the border to the image

A ten-pixel border is a heavy frame on a 200-pixel thumbnail and effectively invisible on a 4000-pixel photograph.

Judge it against the size the image will actually be viewed at, not the size of the file. If the same image serves a thumbnail and a full-width hero, it needs two different borders, or none — which is the argument for doing it in CSS instead.

Padding is the mat, and it does most of the work

A white or off-white band immediately around a photograph is what makes it read as framed rather than as a web element with an outline. Going straight to a coloured line without the mat looks like a table cell.

Gallery convention is a generous mat — considerably more space than feels necessary — with a thin frame outside it. That proportion translates well to screen: something like twenty parts padding to one part border.

Transparency and format

PNG and WebP keep an alpha channel, so a transparent image stays transparent and the padding can be transparent too.

JPEG cannot, so the image is flattened onto the padding colour first. If you add a transparent border and export as JPEG, the result is a solid-coloured band rather than nothing — which is the sensible outcome, but worth knowing before it surprises you.

CSS is usually the better answer

Where you control the page, a border in the stylesheet leaves the file untouched, adapts to any display size, and can be changed without re-exporting anything. It also does not affect the image's dimensions, so nothing downstream needs adjusting.

Bake the border into the file when the image is going somewhere you do not control: an email, a marketplace listing, a social post, a print, or a document someone else will lay out. Everywhere else, let the display do it.

A note on polaroid-style frames

The classic look — even padding on three sides and a deeper band at the bottom — needs uneven padding, which this does not do. Add the even border here and extend the bottom in an editor, or build it in CSS where the four sides can differ.

Frequently Asked Questions

Specific to the Image Border. Broader questions about this category are answered on the category page.

No. The canvas grows to make room, so the final file is larger in dimensions and nothing is lost from the edges.
Padding sits between the image and the border, like the mat in a picture frame. The border is the outer line.
In proportion to the image at the size it will be viewed. The same thickness that frames a thumbnail is invisible on a large photograph.
CSS where you control the page — it is non-destructive and adapts. Add it to the file when the image is going elsewhere.
In PNG and WebP, yes. JPEG has no transparency, so the image is flattened onto the padding colour first.

Subscribe to receive notifications about new tools, features, and productivity tips.