Resize Canvas Without Stretching an Image (Free Tool)
To resize the canvas of an image without stretching it, open the free Canvas & Border tool, choose “Expand the canvas”, type the width and height you want, pick one of nine positions and download. The photo keeps its exact pixels and the new space is a color you pick or transparent. Nothing is uploaded. The surprises are all in what the tool does not do, so the tests below show them: it never scales the photo, a smaller canvas cuts it, and JPG cannot be transparent.
The short answer
- Tool: Canvas & Border. Free, no account, no watermark, runs in the browser.
- Three modes: Add a border (an equal width on all four sides), Expand the canvas (an exact width and height) and Pad to a square.
- The photo is never scaled. A 360 pixel photo on a 1,080 pixel canvas is still 360 pixels.
- A canvas smaller than the photo cuts it, from the side the position points at.
- Transparent works in PNG and WebP. JPG fills the space with white.
- To fill a new shape with the whole photo, scale first with the Image Resizer, or crop with the Image Cropper.
What is the difference between canvas size and image size?
An image is a grid of pixels. Image size is how many pixels that grid has, and changing it scales the picture: every pixel is stretched, squeezed or invented. Canvas size is the area the grid sits on. Making the canvas bigger leaves the picture exactly as it was and adds room around it. Making it smaller cuts the picture off at the new edge. That is why canvas resizing is the answer when you want to change the shape without stretching: the faces stay the right proportion because the picture itself is untouched.
| You change | The picture | The extra space | Tool |
|---|---|---|---|
| Image size | Scaled up or down | None | Image Resizer |
| Canvas bigger | Unchanged | Filled with a color or left transparent | Canvas & Border |
| Canvas smaller | Cut at the edge | None | Canvas & Border, or the Image Cropper |
How do you resize the canvas in five steps?
- Open Canvas & Border in any current browser.
- Drop in a picture, or tap to choose one. The result appears at once and updates as you change a setting.
- Pick the mode. “Add a border” for the same space on every side, “Expand the canvas” for an exact size, “Pad to a square” for a square.
- Set the size, the position and the background. For an exact size type the Canvas width and height. Choose a color, or tick Transparent background.
- Choose PNG, JPG or WebP and download. The page shows the size before and after, for example 360 × 492 → 600 × 600.
Everything happens on your device, so a private photo is never uploaded.
Where does the photo sit? The nine positions
The Position setting decides where the photo goes inside a canvas that is bigger than it: top left, top centre, top right, middle left, centre, middle right, bottom left, bottom centre or bottom right. We put the same 360 × 492 photo on a 600 × 600 canvas at all nine. At Top left the photo’s first pixel is the canvas’s first pixel, and at Bottom right its last pixel is the canvas’s last; at Centre there are 120 pixels of space on each side and 54 above and below.
When is each useful? Centre is the neutral choice. Bottom centre leaves headroom, for a title above a product. Left or right leaves room for text or a logo beside a portrait. Top centre keeps a person’s head near the top and adds space below, which is where captions go. If you plan to add words, see how to add text to a picture.
How do you add a border instead?
“Add a border” skips the width and height arithmetic. The Border width slider runs from 0 to 300 pixels and the same width is added on all four sides, so the photo stays in the middle. On our photo the default of 40 pixels gave 440 × 572, and 300 gave 960 × 1,092, a frame bigger than the picture. A width of 0 returns the picture at its own size.
Tick “Border as % of width” to think in proportions: the slider becomes a share of the photo’s width, so the border looks the same on a thumbnail and a large photo. In our test 5 percent of a 360 pixel photo was 18 pixels (396 × 528), and 10 percent of the tram photo, also 360 pixels wide, was 36 pixels (432 × 564). The percentage is of the width even on the top and bottom, which keeps the frame an even thickness.
The background color is a free picker. A white border looks like a print margin, a dark one like a mat, and a bright color is a simple frame: we checked that #c0392b gave exact red-brown border pixels (192, 57, 43). For decorative frames, patterns and shadows see how to add a frame to a photo and how to add a drop shadow.
Why does the photo look small on a bigger canvas?
Because it was never scaled. We placed the 360 pixel wide photo on 1,080 × 1,080, 1,080 × 1,350 (a 4:5 shape) and 1,920 × 1,080 (16:9) canvases. Each time the photo stayed 360 × 492 pixels, a third of the width of the first two and under a fifth of the width of the 1,920 canvas, with background around it. That is correct for padding but surprising if you expected the photo to fill the shape.
| You want | Do this |
|---|---|
| The whole photo, with space around it | Canvas & Border at the size you need |
| The photo as large as possible inside the new shape, with bars | Scale the photo to the new width or height with the Image Resizer, then expand the canvas to the exact size |
| The new shape completely filled, and part of the photo may go | Crop to the shape with the Image Cropper, which has fixed ratios |
| The new shape filled with an AI continuation of the scene | See how to uncrop a photo |
The pixel sizes of the shapes people ask for are listed in the social media image sizes guide, and the idea behind choosing between fitting and filling is explained in aspect ratios explained. For a worked example of padding for Instagram, see how to post a full picture on Instagram without cropping.
What happens if the canvas is smaller than the photo?
The photo is cut, and nothing is scaled down to fit. A 300 × 300 canvas on our 360 × 492 photo kept the middle 300 × 300 pixels at Centre, which cut 30 pixels off each side and 96 off the top and the bottom, and the top left corner at Top left. With a 600 × 300 canvas the two directions behave differently: the width was padded from 360 to 600 and the height was cut from 492 to 300. Each direction is handled on its own.
This is useful for an exact crop to a pixel size, but the Image Cropper is easier when you want to see and move the crop. Use the canvas for a quick, predictable cut where the position alone is enough, for example “the top 300 pixels”. If you do not want to lose any of the photo, make sure both numbers are at least as big as the photo, or leave one of them at 0.
That last point is a shortcut: a Canvas width or height left at 0 keeps the photo’s own size in that direction. With only a width of 600 typed in, our photo came out 600 × 492, so you can add space to the sides only.
How do you pad an image to a square without cropping?
Choose “Pad to a square”. The canvas becomes as wide and tall as the longer side of the photo. Our 360 × 492 photo became 492 × 492 with the whole photo inside and 66 pixels of background on the left and the right. The Position decides which side the extra room goes to: at Top left the photo moved to the left edge and all 132 pixels of space ended up on the right. A photo that is already square comes out unchanged.
A square is what most profile pictures and many marketplace listings want. The one-click make square preset opens the tool on this mode. If the listing also has a minimum size, check it before you pad, since padding makes the canvas larger but not the photo; the marketplace product photo requirements guide lists them.
How do you add transparent space, and which format keeps it?
Tick “Transparent background” and the added area has no color at all. We read the corner pixel of the output: in PNG and WebP it was fully transparent (alpha 0), and in JPG it was white (255, 255, 255), because JPG has no transparency and the tool fills the space with white when saving as JPG. The Background colour setting is ignored while the box is ticked. If you need a transparent margin, save PNG or WebP.
| Format | Size of the 440 × 572 bordered photo | Transparent space |
|---|---|---|
| PNG | 367,716 bytes | Yes |
| JPG | 52,046 bytes | No, white |
| WebP | 27,678 bytes | Yes |
Notice the sizes. Our source photo was 21.3 KB, and the same photo with a border saved as PNG was about 359 KB, a jump of 17 times. PNG stores every pixel without loss, which is right for graphics and wasteful for photos. Save as JPG or WebP unless you need transparency in a format that every program reads, and shrink a file that is too big with the Image Compressor. The differences are explained in image formats explained. A transparent PNG is also what you want for a sticker or a layer, see transparent images explained.
Which tool should you use?
| You want | Use |
|---|---|
| Space around a photo, an exact canvas size or a square, with the photo untouched | Canvas & Border |
| A bigger or smaller picture (more or fewer pixels) | Image Resizer |
| To cut the picture to a shape, choosing what stays | Image Cropper |
| A decorative frame, pattern or shadow | Photo Frames or Drop Shadow |
| A photo placed on a 4 × 6 print or several photos on one sheet | Photo Collage Maker |
A tip for prints: a 4 × 6 inch print is 1,200 × 1,800 pixels at 300 pixels per inch, so a canvas that size gives a print-shaped page. Scale the photo to fit inside it first, otherwise a small photo will print small, with a wide margin. The DPI and print size guide explains the numbers.
Troubleshooting
| What you see | Cause | Fix |
|---|---|---|
| The photo is tiny in the middle of a big canvas | The photo is never scaled | Scale it with the Image Resizer first, then expand the canvas |
| Part of the photo is gone | The canvas is smaller than the photo in one direction | Make both numbers at least the photo size, or leave one at 0 |
| The border is white, not transparent | JPG was chosen | Tick Transparent background and save as PNG or WebP |
| The background color has no effect | Transparent background is ticked | Untick it |
| The photo is not centred | A position other than Centre is chosen | Set Position to Centre |
| The border looks too thick on a big photo | The width is in pixels, not a percentage | Tick Border as % of width |
| The file jumped in size | PNG stores every pixel without loss | Save as JPG or WebP |
| The position does nothing in Pad to a square | The photo is already as long as the square on that side | Expected: the position only matters on the shorter side |
Questions
How do I resize the canvas of an image without stretching it?
Open the free Canvas & Border tool, drop in your picture, choose Expand the canvas, type the width and height you want and pick a position. The picture keeps its original pixels and the new space is filled with the color you choose, or left transparent. Nothing is uploaded.
What is the difference between canvas size and image size?
Image size is the number of pixels the picture itself is made of, and changing it scales the picture. Canvas size is the size of the area the picture sits on. Making the canvas bigger adds empty space around the picture without changing it, and making it smaller cuts the picture. Use the Image Resizer to scale and Canvas & Border to add or cut space.
Why does my photo look small on a bigger canvas?
Because the canvas tool never scales the photo. In our test a 360 pixel wide photo on a 1,080 pixel wide canvas took one third of the width. If you want the photo to fill the new shape, scale it first with the Image Resizer, then pad it, or crop it to the new shape instead.
What happens if the canvas is smaller than the photo?
The photo is cut. A 300 by 300 canvas on our 360 by 492 photo kept only the middle 300 by 300 pixels at the Centre position and the top left corner at Top left. Nothing is scaled down to fit, so use the Image Resizer first if you want the whole picture in a smaller frame.
How do I add a transparent border to an image?
Tick Transparent background and save as PNG or WebP. In our test the added area had an alpha value of 0 in both formats. JPG cannot store transparency, so the same border came out white. Open the file on a checkerboard background to see the transparency.
How do I make an image square without cropping it?
Choose Pad to a square. The canvas becomes as wide and as tall as the longer side of the photo, so a 360 by 492 photo becomes 492 by 492 with the full photo inside and 66 pixels of background on each side. The Position setting decides on which side the extra space goes.
Can I set the border width as a percentage?
Yes. Tick Border as % of width and the slider becomes a share of the photo width, added on all four sides. In our test 5 percent of a 360 pixel wide photo was an 18 pixel border and the result was 396 by 528 pixels. More help: ImgVX AI help docs.
Is it safe to use Canvas & Border on private photos?
Yes. The tool runs in your browser and the picture is never uploaded. It is free, with no account, watermark or daily limit.