Skip to content
ALL IMAGE TOOLS56
HEIC to JPGHEIC → JPGHEIC to WebPHEIC → WEBPWebP to JPGWEBP → JPGWebP to PNGWEBP → PNGPNG to JPGPNG → JPGJPG to PNGJPG → PNGJPG to WebPJPG → WEBPPNG to WebPPNG → WEBPSVG to PNGSVG → PNGSVG to JPGSVG → JPGSVG to WebPSVG → WEBPAVIF to JPGAVIF → JPGAVIF to PNGAVIF → PNGAVIF to WebPAVIF → WEBPBMP to JPGBMP → JPGBMP to PNGBMP → PNGTIFF to JPGTIFF → JPGTIFF to PNGTIFF → PNGJFIF to JPGJFIF → JPGImage CompressorIMG → JPG · WEBPCompress Image to 100 KBIMG → JPG · WEBPCompress Image to 200 KBIMG → JPG · WEBPCompress Image to 1 MBIMG → JPG · WEBPCompress Image to 20 KBIMG → JPG · WEBPCompress Image to 50 KBIMG → JPG · WEBPCompress Image to 500 KBIMG → JPG · WEBPCompress Image to Target SizeIMG → JPG · WEBPImage ResizerIMG → IMGResize Image to 20 KBIMG → JPG · WEBPResize Image to 50 KBIMG → JPG · WEBPResize Image to 100 KBIMG → JPG · WEBPPhoto Resizer in KBIMG → JPG · WEBPImage CropperIMG → PNG · JPG · WEBPEXIF Data Viewer & RemoverIMG → DATAImage to Base64IMG → TXTPNG to ICOPNG → ICOFavicon GeneratorPNG → ZIPImage Color PaletteIMG → HEXRotate ImageIMG → PNG · JPG · WEBPFlip ImageIMG → PNG · JPG · WEBPAdd Border to ImageIMG → PNG · JPG · WEBPImage WatermarkerIMG → PNG · JPG · WEBPImage PixelatorIMG → PNG · JPG · WEBPCircle Image CropperIMG → PNG · WEBPImage SplitterIMG → ZIPSocial Media Image ResizerIMG → PNG · JPG · WEBPCompress PNGPNG → PNGICO to PNGICO → PNGBase64 to ImageTXT → IMGChange Image DPIIMG → IMGImage to TextIMG → TEXTResize GIFGIF → GIFGIF Speed ChangerGIF → GIFReverse GIFGIF → GIFSplit GIF into FramesGIF → ZIPGIF MakerIMAGES → GIF
ENGINE CANVAS 2DACCEPTS JPG PNG WEBP AVIF BMP GIF

Add Border to Image

CANVAS 2DTOOL 41 OF 190

Add a Border to an Image — Any Colour, Any Edge

Paint a solid frame around a picture: one width on every edge, or a different width per edge.

ENGINECANVAS 2D
ACCEPTSJPG PNG WEBP AVIF BMP GIF
MAX SIZENONE
UPLOADNEVER
01Upload your image by dragging it into the drop zone or clicking to browse.
02Set All edges under BORDER, or break the link so Top, Right, Bottom and Left take their own widths, then choose a COLOUR.
03Check the size line on the canvas, click Add border, then click Download to save it.

About Add Border to Image

A border here is pure addition. The canvas is made larger than your picture, filled with the colour you choose, and your image is drawn whole inside it — nothing is cropped, nothing is scaled, and every pixel of the original is still an original pixel. Because the arithmetic is the one thing you cannot check by eye, the page writes it out: an 800 × 600 photo with 20 pixels on every edge becomes 840 × 640, and that line updates as you type. The edges start linked, so a single number frames the whole picture; break the link and Top, Right, Bottom and Left each take their own width, which is what a caption strip or an off-centre matte needs. The colour is a six-digit hex, typed or picked from the swatch. Output can be PNG, JPG or WebP and starts on the format you brought. The image is decoded, redrawn and re-encoded, so EXIF and GPS are not carried through and colour is written as sRGB. Everything runs in this tab; no file is uploaded.

Questions

How much bigger does the image get?

Exactly the sum of the edges, and the page shows the sum before you run it. An 800 × 600 picture with 20 pixels on every edge becomes 840 × 640: the width gains left plus right, the height gains top plus bottom. Nothing is resampled, so the picture inside the frame is the same size it always was.

Can each edge have a different width?

Yes. The edges start linked so one number frames the whole picture. Click the chain-link button under BORDER and the single All edges field becomes four — Top, Right, Bottom and Left — each with its own width. That is how you build a caption strip along the bottom or an off-centre matte for printing.

Can the border be transparent?

No. The frame is filled with the six-digit hex colour you choose, so it is always painted. A transparent margin is a different operation from painting one, and this tool does not offer it rather than pretending a white fill is the same thing.

Does adding a border crop or shrink my picture?

Neither. The canvas is enlarged and your image is drawn into it whole at its original size, so the border is added around the picture rather than over it. If you want the frame to eat into the edges instead, crop first and then add the border.

Which output format should I pick for a bordered image?

The page starts on whatever you dropped. PNG re-encodes losslessly and keeps any transparency inside the picture, but a photo written as PNG can be much larger than the JPEG you started with. JPG is smaller and cannot store an alpha channel, so anything transparent is painted white on the way out. WebP usually lands smallest.

Is my file uploaded to a server?

No. Transmute processes everything locally in your browser using JavaScript and WebAssembly. Your files never leave your device — there is no server, no upload, no cloud processing.

Related