Add White Border & Expand Canvas Around an Image

Expand the canvas around an image online for free: add white or colored padding, make photos square for Instagram or frame them. No upload, no signup.

How to use Add White Border & Expand Canvas

  1. 1Upload the image you want to add a border or padding to.
  2. 2Choose a padding color (white by default) and how much padding to add on every side.
  3. 3Optionally select Make Square to pad the shorter side automatically.
  4. 4Click Download PNG to save the result — no upload required.

Features

  • Adds a solid border without scaling or cropping your image
  • One click to pad a photo into a perfect square for Instagram
  • Choose white, black or any solid color, added evenly on all sides
  • 100% client-side, free, no signup, works on mobile

Expand the canvas and add a border around your image

Expanding the canvas means adding extra space around your existing image rather than changing the image itself. Your original photo stays exactly the same size and sharpness — Pixohub simply draws a larger rectangle behind it and fills the new area with the color you pick. This is fundamentally different from resizing or scaling: nothing is stretched, squeezed, or interpolated, so there is no loss of quality. The pixels of your photo are preserved pixel-for-pixel and surrounded by a clean margin.

The classic use is adding a white border, the kind you see on framed prints and gallery-style social posts. A crisp white margin gives an image room to breathe, separates it from a busy background, and looks tidy and intentional. You can also use a black border for a cinematic look, or any color you like to match a brand or a slide deck. You control how much padding to add, and it is always the same on all four sides, giving an even frame all around.

Pixohub builds the expanded canvas entirely in your browser using the HTML Canvas API. A new canvas is created at the larger dimensions, filled with your chosen color, and your original image is drawn on top at its native size, centred. The result is encoded as a PNG, which keeps the border color exact. The fill is always a solid color; a transparent margin is not available. Nothing is uploaded to a server, so it is instant, private, and works offline once the page has loaded.

How to use Add White Border & Expand Canvas, step by step

  • Add the picture that needs extra space with Drop an image. A 40px margin is added on every side straight away.
  • Drag Padding (0–300px) to set the margin. It is the same on all four sides and is measured in the image's own pixels.
  • Choose Padding color; it starts as white (#FFFFFF).
  • Tick Make square to extend the shorter side until the canvas is square, with the photo centred. The padding still applies to the longer side.
  • Read Output canvas next to Original to confirm the final pixel size before you download.
  • Press Download PNG.

Real example: making a tall phone photo square

We used a 2268 × 4032 iPhone 14 photo of the Aulanko observation tower (2.79 MB JPG). With the default 40px white padding, the output canvas was 2348 × 4112. Ticking Make square changed it to 4112 × 4112: the photo stayed at full size in the middle, with 922 pixels of white on the left and right and 40 on the top and bottom.

Nothing was scaled or cropped, so the photo pixels are the original ones. Both downloads were PNG, at 11.8 MB and 12.2 MB.

SettingOutput canvasPNG size
Original2268 × 40322.79 MB (JPG)
Padding 40px (default)2348 × 411211.8 MB
40px + Make square4112 × 411212.2 MB

Last updated

Add White Border & Expand Canvas compared with other ways to do it

Photoshop and GIMP

Image › Canvas Size in Photoshop and GIMP lets you anchor the photo to any side, add different amounts to width and height, or fill with transparency. That is what you need for a caption strip along one edge. This tool always centres the photo with equal padding, which covers framing and squaring in two controls.

Paint and Preview

In Paint you can drag the canvas edge outwards, but the extra space only appears on the right and bottom, so centring takes extra steps. This tool centres the photo for you. For a single quick margin on a Windows PC, Paint still works without opening a browser.

Upload-based square-photo apps

Square-fit apps and sites often offer a blurred copy of the photo as the background, which this tool does not. They usually need the photo uploaded. Here the padding is a solid colour you choose, applied on your device at the photo's full resolution.

Make any photo square for Instagram and more

One of the most useful things this tool does is turn a non-square photo into a square without cropping anything out. Instagram feed posts and many other layouts prefer a 1:1 square, but most photos are rectangular. If you upload a wide landscape shot, Instagram will crop the sides; if you upload a tall portrait, it crops the top and bottom. By padding the shorter dimension with a border instead, you fit the whole image inside a square frame and lose none of the content. Turn on Make Square and the tool automatically adds equal margins to the shorter side so the final canvas is a perfect 1:1.

White padding is the most popular choice for this because it blends into Instagram's white interface and looks like a deliberate matte frame, but you can pick any color to suit your feed's aesthetic. The same technique works for other platforms and purposes: pad a screenshot to give it whitespace before dropping it into a presentation, add a margin around a product shot so it sits comfortably inside a catalog cell, or frame a logo with breathing room.

Because expanding the canvas never scales the original, it is also a safe way to standardize a set of images to the same dimensions. You can give several differently sized photos the same square or 4:5 canvas so they line up neatly in a grid, all without cropping or distorting any of them. Combined with a consistent border color, this is a simple way to make a collection of images look like a matching set. Export each as a PNG and they are ready to post, print, or place into a design.

Frequently asked questions

Can I add padding to only one side?

No. Padding is the same on all four sides, and Make square adds equal space to both ends of the shorter side. For uneven margins, use a desktop editor's canvas-size command with an anchor.

How big will the square be?

The longer side plus twice the padding. Our 2268 × 4032 photo with 40px padding became 4112 × 4112. Set Padding to 0 for a square exactly as long as the photo's longer side.

Can the padding be transparent?

No. The colour picker sets a solid colour, so the added area is always opaque. If you need a transparent margin, a desktop editor's canvas-size command can leave it empty.

Does adding a border scale or crop my image?

No. Expanding the canvas keeps your original image at its exact size and sharpness and simply adds a colored margin around it. Nothing is stretched, squeezed, or cut off, so there is no quality loss.

How do I make a photo square for Instagram?

Upload the photo and turn on Make Square. The tool automatically pads the shorter side with your chosen border color so the whole image fits inside a 1:1 square with nothing cropped out.

Can I choose a color other than white?

Yes. White is the default because it suits framed prints and Instagram's interface, but you can pick black for a cinematic look or any custom color to match your brand or slides.

Can I add the border to only some sides?

No. Padding is always the same on all four sides, and Make Square adds equal space to both ends of the shorter side. For uneven margins, such as extra space only at the bottom, use a desktop editor's canvas-size command with an anchor.

Why is the output a PNG?

PNG keeps the border color exact and avoids the compression artifacts JPG can introduce along the border edge. The padding is always a solid color, and any transparent areas in your original are filled with that color too.

Are my images uploaded anywhere?

No. The canvas is built entirely in your browser using the Canvas API, so your image never leaves your device. It is instant, private, and works offline once the page has loaded.

Is it free and does it work on mobile?

Yes. The tool is completely free with no signup or watermark and runs in any modern mobile browser, including Safari on iOS and Chrome on Android.

From the blog

More resize & crop tools

Batch: expand canvas many images at once

Same processing as above, run across a set of files. Pro returns the whole batch as one ZIP. Still entirely in your browser.

Free · up to 20

PRONeed more than 20 at a time?

Pro runs up to 150 images per batch as one ZIP, keeps your brand mark on every export, and lifts the file ceiling to 200 MB.

Unlock with Pro