Add Image Border Online
Add custom borders to images with color and width settings.
Drop images here or click to upload
Supports JPG, PNG, GIF, WEBP, SVG
What Add Border Does
Add Border works directly on the canvas, not as a filter over your photo. It loads the image into an in-memory HTML canvas sized larger than the original — the canvas width and height both grow by exactly twice the Border Width value, once per side — then strokes a rectangular frame in Border Color around that outer edge before drawing your source image, at full resolution and unaltered, centered inside the new padding. Nothing about the photo's own pixels is touched; the tool adds material around it rather than painting over or resampling it. Solid style draws one continuous stroke at the full Border Width. Double style splits that same width into three roughly equal bands — an outer ring, a gap, and an inner ring — using the same Border Color for both rings, which gives a classic picture-framing look with a thin reveal of empty space between the two lines. Because each of those three segments needs at least a pixel to render, the double effect only reads as two distinct lines once the width is generous enough, roughly 15px or above; at small widths the segments compress and it looks like one thick stroke instead. The border is uniform in a specific sense: one Border Width value applies to all four sides at once, and the corners always stay square, regardless of what shape the photo itself is — this tool does not round corners, and it has no control for a different width per edge or an asymmetric mat. Output keeps the original file's type, so a border added to a JPEG stays a JPEG and one added to a PNG stays a PNG, which matters for the double style's gap: that gap isn't filled with any color, so it renders as transparent on a PNG but as solid black on a JPEG, since JPEG has no alpha channel.
Why Use Add Border
A border is compositional, not cosmetic, in several common workflows. Photographers matting an image for print or a portfolio site need a frame that reads as part of the piece — a wide, even white margin around a photo, sized in real pixels rather than approximated with padding elsewhere in a layout tool. Print prep is a related but distinct case: adding an exact-pixel safety margin before a file goes to a printer that trims to a fixed size, so nothing near the original edges gets cut away. Brand and catalog work is another — keying Border Color to an exact hex value so a batch of product photos all carry the identical frame color instead of a shade that's merely close, which is the kind of mismatch that stands out immediately in a grid of thumbnails. And because the tool accepts multiple files in one pass, it's the fast way to stamp an entire shoot or gallery with the same width, color, and style rather than repeating the same three settings by hand across dozens of exports.
How to Add a Border
The workflow is four settings and one action, all on the Add Border page.
Open the Add Border tool and add one or more images — the same settings apply to every file you add.
Drag Border Width (1-50px) to set the frame thickness in pixels.
Set Border Color with the color picker, or paste in a brand hex code for an exact match.
Pick Solid or Double for the style, then apply — Processing... shows briefly while the canvas renders and the image is resized to fit the new frame.
Frequently Asked Questions
More Image Tools
Explore other powerful tools for your image editing needs
Compress Image
Reduce file size
Resize Image
Change dimensions
Crop Image
Cut out area
Convert Format
Change format
Photo Editor
Edit photos
Rotate Image
Rotate image
Flip Image
Horizontal/Vertical
Add Watermark
Add watermark
Rounded Corners
Add rounded corners
Filters
Brightness/Contrast
Blur Face
Hide faces
Mosaic
Blur regions
Remove Background
Remove BG
Enhance Image
AI upscale
Add Text
Add text to image
Collage
Combine multiple images
HTML to Image
Webpage to image
GIF to Image
Extract frames
Trim Image
Remove empty edges
Batch Rename Images
Safely rename files in bulk
Circle Crop
Crop images into circles
Black & White
Convert images to grayscale
Split Image
Cut an image into a grid
Merge Images
Combine images into one
Change DPI
Set image DPI metadata
Image to Base64
Encode images as Base64
Image to PDF
Combine images into one PDF
HEIC to JPG
Convert iPhone HEIC photos to JPG
EXIF Remover
View and strip hidden photo metadata, including GPS location
Favicon Generator
Full icon set plus HTML
Color Palette
Extract colors from an image
Base64 to Image
Decode Base64 back to an image
HEIC to PNG
Convert iPhone HEIC photos to lossless PNG
Text Behind Image
Put text behind the subject of a photo, entirely in your browser
Color Picker
Get the HEX, RGB and HSL of any pixel
Signature Maker
Draw a signature and download it as a transparent PNG
Signature Background Remover
Ink from paper, on transparency
Transparent Background Maker
Make a background transparent