Resize a photo to an exact size without stretching
A form, a profile or a screen asks for an exact pixel size, such as 1080 × 1080 or 1920 × 1080. Your photo has another shape. Type both numbers into a resizer and faces come out wide or thin. YouTube's help page, for one, recommends thumbnails of 3840 × 2160, a 16:9 shape.
There are four ways to reach an exact size: crop, fit, pad and stretch. Below is what each one does to the picture, which of them our tools can do today, and what happened when we ran them on 25 photos.
What people run into
- On Graphic Design Stack Exchange someone needs a picture at a set width and height without stretching it. The answer: first cut the photo to the right shape, then scale it with the ratio locked. (user report, posted 2021-09-25) That is our crop-then-resize route: 24 of 25 photos came out at exactly 1080 × 1080, and none was squashed.
- Another Graphic Design Stack Exchange question asks how to change a picture's shape without stretching. The answer: make a blank picture at the size you need, shrink the photo until it fits, and paste it in. (user report, posted 2015-06-12) That is padding. None of our tools adds a blank border, so we could not test it.
- In a third thread a user needs exact pixel proportions without squeezing. The replies again say: put the image on a canvas of the right size and fit it inside. (user report, posted 2016-01-23)
- On Quora people ask how to make a photo fit Instagram's size without changing its shape or cropping it. Most answers add a white or blurred border around it. (user report, posted 2026-02-01) Instagram's help page says a feed photo keeps any shape from 1.91:1 to 3:4, so a border is only needed outside that range.
How to check your photo's shape
- Open the photo in our resizer. It shows the width and height in pixels under the original.
- Divide the width by the height, and do the same for the size you need. 1080 × 1080 gives 1.00; 1920 × 1080 gives 1.78. If the two numbers differ, the shapes differ.
- Untick Keep aspect ratio and type both numbers. If the shapes differ, the resizer warns you: “The aspect ratio changed. The image may look stretched.” That warning means the picture will be stretched.
Crop, fit, pad or stretch
Crop, then resize
Cut the photo to the shape of the box, then resize it to the exact size. Nothing is squashed. What lies outside the box is gone.
Our tools: yes. Use Crop with the 1:1, 4:3 and 16:9 buttons, or type the box into its pixel fields, then Resize with both numbers.
Fit inside the box
Shrink the whole photo until it fits inside the box, keeping its shape. Nothing is cut or squashed, but one side comes out shorter than asked. A TV shows such a picture with black bars, the letterbox.
Our tools: the shrinking part. The resizer with Keep aspect ratio ticked fits the photo if you type the side that limits it. It does not draw the bars, so the file is smaller than the box on one side.
Pad with a border
Fit the photo, then fill the empty strips with a plain colour or a blurred copy so the file is exactly the size asked. Nothing is cut or squashed; the border is part of the picture.
Our tools: no. None of them adds bars or a border.
Stretch
Type both numbers with the ratio unlocked. You get the exact size, and round things turn oval.
Our tools: yes, and the resizer warns you before it does it.
What we measured
We took each of our 25 photos to 1080 × 1080 and to 1920 × 1080 three ways with this site's own code: stretch (both numbers typed, Keep aspect ratio off), fit (Keep aspect ratio on, the limiting side typed) and crop then resize (the largest centred box of the target shape, then both numbers). Allow enlargement stayed off, as when the page opens. Our photos: 23 wider than tall and 2 taller than wide; 2 are panoramas, wider in shape than 1920 × 1080.
Three ways to an exact size, on 25 photos
| Target | Way | Exactly that size | Shape change, largest | Picture kept, median | File, median | Time, median | Refused |
|---|---|---|---|---|---|---|---|
| 1080 × 1080 | Stretch | 24/25 | 70.7% | 100% | 244.8 KB | 24 ms | 1/25 |
| 1080 × 1080 | Fit | 0/25 | 0.1% | 100% | 167.1 KB | 16 ms | 0/25 |
| 1080 × 1080 | Crop then resize | 24/25 | 0% | 67% | 264.4 KB | 51 ms | 1/25 |
| 1920 × 1080 | Stretch | 24/25 | 166.7% | 100% | 432.2 KB | 36 ms | 1/25 |
| 1920 × 1080 | Fit | 1/25 | under 0.1% | 100% | 361.4 KB | 31 ms | 0/25 |
| 1920 × 1080 | Crop then resize | 24/25 | under 0.1% | 84% | 450.2 KB | 68 ms | 1/25 |
Shape change compares the result's width-to-height ratio with the part of the photo that went in: zero means nothing was squashed. Picture kept is the share of the original photo's area still in the result. Refused means the photo was smaller than the box on one side, so the resizer would have had to enlarge it.
Source: our test on 2026-11-11 (harness 349005d, site code eacd79c), headless Chromium 145 on a desktop Mac, 25 CC0 photos. Times are the tool's own work on a desktop Mac, without opening the file; phones are slower. How we test
Stretching gave the exact size every time it ran. It changed the shape by a median 33% at 1080 × 1080 and 19% at 1920 × 1080, and by up to 167% for a portrait photo forced into 1920 × 1080.
Fitting kept every shape, give or take 0.1% from rounding, and all of the picture. But a median photo came out at 1080 × 720 instead of 1080 × 1080, and at 1620 × 1080 instead of 1920 × 1080. Only 1 photo already had the shape of 1920 × 1080.
Crop then resize gave the exact size to 24 photos at 1080 × 1080 and 24 at 1920 × 1080, and kept a median 67% and 84% of the picture. Stretch and crop both refused the same photo at both sizes: a panorama only 864 px tall, smaller than the box.
What to do
- Pick the box: the pixel size the form or site asks for, and the shape that goes with it.
- If losing the edges is fine, crop to that shape. Move the box so faces and text stay inside.
- Resize to the exact numbers. The warning should not appear; if it does, the crop's shape is off by a pixel or more.
- If nothing may be cut, fit the photo with Keep aspect ratio on and add the border in another app, or ask whether the site accepts a smaller size. Many sites shrink a photo that is larger than they need.
- If the resizer refuses, the photo is smaller than the box. Tick Allow enlargement only if the site insists on that size: the extra pixels are guesses, not new detail.
What our test covers
All numbers come from one run of our benchmark harness, which runs this site's own resize and crop code in a browser on a desktop Mac. We ran it a second time; the results matched in 175 of 175 runs, with only the times different.
We ran no pad test, because our tools have no pad mode. Our photos are JPG; a PNG keeps its transparency in these tools, and its file sizes differ from these.
Other pages for this job: Resize image · Crop image · Photo upload rejected? · Image size guide
Sources
Official pages say what the company states. User reports are what people describe on forums; they are not rules, and we use no number from them.
Official
- Instagram Help Center: When I share a photo on Instagram, what's the image resolution?, archived copy, saved 2026-10-17 (the live page refused our test machine)
- YouTube Help: Add video thumbnails, read 2026-11-10
User reports
- Graphic Design Stack Exchange: I want to resize a picture with specific dimension without stretching it, posted 2021-09-25
- Graphic Design Stack Exchange: Resize or Scale Images changing aspect ratio without stretching?, posted 2015-06-12
- Graphic Design Stack Exchange: Resizing an image to an exact pixel proportion without getting a squeezing distortion, posted 2016-01-23
- Quora: How do I change my picture to Instagram size without changing its shape and cropping it?, posted 2026-02-01
Last updated: