Add Image Border Online

Add custom borders to images with color and width settings.

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.

Exact hex color matching for brand consistency
Pixel-precise width control, 1-50px
Solid or double frame styles
Processed locally, nothing uploaded

How to Add a Border

The workflow is four settings and one action, all on the Add Border page.

1

Open the Add Border tool and add one or more images — the same settings apply to every file you add.

2

Drag Border Width (1-50px) to set the frame thickness in pixels.

3

Set Border Color with the color picker, or paste in a brand hex code for an exact match.

4

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

Double style splits Border Width into three segments — an outer ring, a gap, and an inner ring — each of which needs at least a pixel to render. At low widths those segments compress into each other and read as a single stroke instead of a framed double line. Set Border Width to roughly 15-20px or higher to get a visually distinct double-ruled frame with a clear gap between the two lines.
Add Border only draws a rectangular frame — the outer corners of the border always stay square, even if the photo's own corners were already rounded. If you want a rounded border-and-photo combination, add the border first and run Rounded Corners on the bordered result afterward, so the rounding applies to the outer edge of the frame rather than leaving square frame corners around an already-rounded photo.
Border Width runs from 1 to 50 pixels in 1px steps. It's a fixed pixel amount, not a percentage of the image, so the same number looks very different depending on your source — 20px is a subtle edge on a 4000px photo but a heavy frame on a 300px thumbnail. Check the result on the actual image rather than reusing one width across photos of very different resolutions.
No. The frame is drawn using the HTML canvas API directly in your browser — the image is loaded into an in-memory canvas, the border is stroked around it, and the result is exported back to a file locally. Nothing is sent to a server, which is possible here because adding a border needs no AI or server-side processing, unlike tools such as background removal.
No — Border Width is a single value applied identically on all four sides. The tool expands the canvas by exactly twice that value, once per side, and centers the original image inside the new padding, so there's no way to make one edge thicker than the others within this tool.
It doesn't crop or scale the photo content. The canvas is enlarged by twice the Border Width in both directions — a 20px border adds 40px to both the width and height — and your original image is drawn at full resolution inside that larger canvas. The visible subject matter is unchanged; you just end up with a bigger final image.
No. Border Color uses a standard color picker that returns a solid hex value, and the frame itself is drawn as an opaque stroke, so there's no opacity control for the border. For a tinted or translucent overlay you'd need a different tool that supports alpha.
Yes — you can select multiple images and one Border Width, Border Color, and style setting is applied across the whole batch. The output keeps the source format, so a JPEG stays a JPEG and a PNG stays a PNG. That matters for double style specifically: the gap between the two rings isn't filled with any color, so it shows as transparent on a PNG but renders as solid black on a JPEG, since JPEG has no alpha channel.

More Image Tools

Explore other powerful tools for your image editing needs