Border / frame
Solid border in any colour and width.
This runs in your browser. Nothing is uploaded.
About Border / frame
Strokes a solid frame of a width and colour you choose around an image, painted inside the existing canvas in your browser so the pixel dimensions stay exactly the same.
A photo with pale edges vanishes into a white page. Screenshots pasted into a document run together. Product shots on a listing look scrappy when some have an edge and some do not. A frame fixes all three, and it is a small enough job that people reach for whatever website appears first rather than opening an editor.
The frame is stroked along the boundary of the image at the width you set, between four and eighty pixels, in the colour from the swatch. Because it is stroked inside the canvas rather than around it, your output has the same dimensions as your input. An 1800 by 1200 photo comes back 1800 by 1200 with its outermost pixels painted over.
That is the tradeoff worth understanding. If detail runs right to the edge of your photo, a forty-pixel border eats forty pixels of it. When you want the frame to add space rather than cover content, pad the image first — resize to a larger canvas, or place it on a coloured background with the merge tool — and then run the border over that.
How to use Border / frame
- 1Drop the image onto the panel.
- 2Set the border width in pixels and pick a colour.
- 3Click Apply, then Download.
What it won't do
- The border covers the outer pixels of the image; it does not add canvas.
- Square corners and a single flat colour only.
- The same width on all four sides — no separate top, bottom or side values.
Common questions
Does adding a border change the image dimensions?
No. The frame is drawn inside the image you already have, so the width and height of the file you download match the original exactly. The cost of that is that the border sits on top of your outermost pixels rather than adding new ones around them.
How do I add a white margin around a photo instead?
Enlarge the canvas before framing, because this tool only paints inwards. Resize the image to smaller dimensions, then use the merge tool to place it on a larger plain background, and the surrounding space becomes a genuine margin with none of your photo covered.
Can I get rounded corners or a polaroid frame?
No. The frame is a square-cornered rectangle in one flat colour. There is no rounding, no drop shadow and no wide bottom edge for a polaroid look. Those need a compositing step rather than a stroke, and this tool does not do one.
Related tools
Why this one doesn't upload your file
There is no server to upload to. This page is a static file, and the work happens in your browser using the same graphics and WebAssembly code that renders every other site you visit. Your file is read from disk into memory, processed, and handed back as a download. Once the page has loaded you can disconnect from the network entirely and it keeps working. The longer explanation