LighterPics
English

Back to all tools

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

How to check your photo's shape

  1. Open the photo in our resizer. It shows the width and height in pixels under the original.
  2. 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.
  3. 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

TargetWayExactly that sizeShape change, largestPicture kept, medianFile, medianTime, medianRefused
1080 × 1080Stretch24/2570.7%100%244.8 KB24 ms1/25
1080 × 1080Fit0/250.1%100%167.1 KB16 ms0/25
1080 × 1080Crop then resize24/250%67%264.4 KB51 ms1/25
1920 × 1080Stretch24/25166.7%100%432.2 KB36 ms1/25
1920 × 1080Fit1/25under 0.1%100%361.4 KB31 ms0/25
1920 × 1080Crop then resize24/25under 0.1%84%450.2 KB68 ms1/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

  1. Pick the box: the pixel size the form or site asks for, and the shape that goes with it.
  2. If losing the edges is fine, crop to that shape. Move the box so faces and text stay inside.
  3. Resize to the exact numbers. The warning should not appear; if it does, the crop's shape is off by a pixel or more.
  4. 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.
  5. 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.

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

User reports

Last updated: