Home

Add Border to Image

Frame any image with a solid colour, a two-colour gradient, or a blurred photo-style border. Adjust the border width and colours with a live preview. Download as PNG. Everything runs in your browser | no upload required.

Drop your image here

or click to browse · exports as PNG

All processing happens locally in your browser. No files leave your device.

How to add a border to an image

  1. 1

    Upload your image

    Drop any JPEG, PNG, or WebP file onto the upload area, or click to browse. A live preview appears immediately.

  2. 2

    Set the border width

    Drag the width slider from 2px to 120px. The preview updates in real time so you can judge the proportions before exporting.

  3. 3

    Choose a style

    Solid fills the border with a single colour. Gradient blends two colours in one of four directions. Blur extends the image itself, blurred and darkened, as the border | ideal for photos.

  4. 4

    Download

    Click Add Border to export a PNG with the border baked in. The output canvas is the original image size plus the border width on all four sides.

Choosing the right border style

Solid is the classic choice | a clean, uniform colour frame. White is the most common for prints and presentations; black for editorial or high-contrast looks. Any custom colour works.

Gradient transitions smoothly between two colours. This works well for social media headers, event flyers, and branded content where the border reinforces a colour palette. Choose a complementary colour pair and the diagonal direction for the most dynamic result.

Blur extends the image outward, then blurs and darkens it to create a soft halo effect. This style is popular on Instagram and YouTube thumbnails where photos have backgrounds that clash with the platform’s white or black background. The result feels cohesive because the border colours come from the image itself.

Frequently asked questions

How is the output size calculated?

The output canvas is the original image width + 2×border width, and the original image height + 2×border height. A 1000×800px image with a 40px border becomes 1080×880px.

Why is the output always PNG?

PNG is the only common web format that supports full-colour lossless encoding with any background colour. If you need a JPEG, open the exported PNG in another tool and save as JPEG.

Does the blur border look different on the preview vs. the export?

The preview is approximate | it uses CSS filter and overflow:hidden which behaves differently from the Canvas API blur. The exported PNG uses a precise canvas blur. Both look similar for most images, but the export is the authoritative result.

Can I combine a border with rounded corners?

Yes. Add the border here first, then take the result and apply rounded corners in the Rounded Corners tool. The corner clip will follow the outer edge of the bordered image.

Is there a maximum border width?

The slider goes up to 120px. For very large borders, consider reducing the border width and upscaling the image first using the Image Resizer tool to maintain proportions.

Page share preview

More free image tools