Add Border to Image

100% Free

Add a white, black, or custom-color border around JPG, PNG, or WebP images with an exact pixel width and no server upload.

  • Exact Pixels
  • Custom Color
  • No Upload
  • No Watermark

Upload Image

Your images are safe

The border is created locally in your browser. Your file is never uploaded.

Choose Border

px

Adds this width to every side. A 20px border increases width and height by 40px.

Source
Output

Upload an image to begin.

Preview & Download

Your bordered image will appear here

Choose a width and color, then add the border locally.

  • Exact Pixel Border

    Add the same measured border to all four sides.

  • Any Solid Color

    Use the color picker or enter an exact six-digit hex value.

  • JPG, PNG or WebP

    Keep the source format or choose a different browser-supported output.

  • Private Processing

    Canvas processing and download happen on your device.

Add space without cropping the photo

A border grows the canvas while preserving the source pixels. Use the crop tool when you need to remove edges, or the image resizer when you need a different pixel scale.

Frequently Asked Questions

Does adding a border change image dimensions?

Yes. A border is added outside the original image. A 20px border adds 40 pixels to both the width and height.

How do I add a white border to an image?

Upload the image, keep the color at #FFFFFF, enter the border width in pixels, and click Add Border.

Will the image be cropped or stretched?

No. The original image is drawn at its existing pixel dimensions in the center of the larger bordered canvas.

Which output format should I use?

Use PNG when transparency or lossless edges matter, JPG for broad photo compatibility, or WebP for a smaller modern web image.

Is the image uploaded?

No. The image is processed locally in your browser.