Images & Design

Image Border Generator

Give a photo a clean solid-color frame. Add the border outside the image to keep all source pixels visible, or draw it inside the existing edges to keep the original dimensions. Export a finished PNG, JPEG, or WebP.

Free online tool

Loading tool…

Source images

Up to 12 images, 20 MB per file, 24 megapixels per image; 60 MB and 48 megapixels per batch. SVG is not accepted. GIF and animated formats export as still images.

Frame your image

Outside borders add twice the thickness to the width and height. Inside borders cover the photo edges and keep the dimensions.

Maximum output: 32 megapixels per image, 64 megapixels / 64 MB per batch. Newly encoded downloads may lose metadata and color profiles.

Selected files are processed in your browser. This tool does not upload image bytes or fetch remote image URLs. Clear the tool to release its local image previews.

GET STARTED

How to use the Image Border Generator

  1. 01

    Choose one image or a batch of images.

  2. 02

    Enter the border thickness in pixels and choose a color.

  3. 03

    Select inside borders if you want to keep the original canvas size.

  4. 04

    Generate the borders, inspect the previews, and download the images.

Examples

White frame around a photo

A 1,200 × 800 image with a 24-pixel outside border becomes 1,248 × 848. The original photo remains at full size in the center.

A fixed-size thumbnail

Apply a 6-pixel inside border to a 400 × 400 thumbnail. The output stays 400 × 400, while the outermost photo pixels are covered by the frame.

Outside borders add canvas space

An outside border adds the chosen thickness on all four sides. Output width is source width plus twice the thickness; height follows the same rule. Transparent source areas remain transparent in PNG and WebP output.

Inside borders cover the edges

An inside border is drawn over the photo along all four sides. Thickness must be less than half the shortest source edge, ensuring that part of the image remains visible. This does not crop or rescale the photo.

Use pixels intentionally

Border thickness is measured in image pixels, not CSS pixels or physical print units. The same 24-pixel border appears proportionally heavier on a 400-pixel image than on a 4,000-pixel image. Batch settings apply the same absolute thickness to every file.

What to know

  • Uniform solid rectangular frames only; no rounded, gradient, or decorative borders.
  • Inside borders permanently cover source edge pixels in the exported copy.
  • Image editing accepts raster files up to 20 MB and 24 megapixels each, with 60 MB and 48 megapixels total source limits.
  • Canvas output is limited to 16,384 pixels per edge and 32 megapixels per image; browser memory limits can be lower.
  • Newly encoded exports are still images. Metadata and color-profile retention are not guaranteed.

Common questions

Will an outside border crop my photo?

No. It expands the canvas and places the unscaled photo inside the frame.

Can I add different colors on each side?

This tool uses one solid color and one thickness on all four sides.

Can I make the border transparent?

The color picker selects a solid color. Source transparency can remain in PNG or WebP, but the added border itself is opaque.

What happens if the border makes the image too large?

The tool checks the final dimensions and pixel count before allocating the output canvas and asks for a smaller border or image.

Sources & references