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.
| Setting | Output canvas | PNG size |
|---|---|---|
| Original | 2268 × 4032 | 2.79 MB (JPG) |
| Padding 40px (default) | 2348 × 4112 | 11.8 MB |
| 40px + Make square | 4112 × 4112 | 12.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.