FreeToolGrid

Images & files

How to Resize an Image Without Stretching It

Open Image Resizer

Resizing an image changes its pixel dimensions. To avoid stretching, keep the ratio between width and height constant. A 4,000 by 3,000 image has a 4:3 aspect ratio. Reducing its width to 1,200 pixels should give a height of 900 pixels, not an arbitrary square or banner height.

Resizing, cropping, and compressing solve different problems. Resizing changes dimensions, cropping removes part of the picture, and compression changes how the image is stored. Decide which problem you need to solve before exporting a new file.

Image Resizer input controls on FreeToolGrid
Image Resizer

Calculate the proportional height

Divide the target width by the original width to find the scale factor. Multiply the original height by that factor. For 4,000 x 3,000 reduced to 1,200 pixels wide, the factor is 0.3 and the new height is 900. Rounding to whole pixels is normal when the exact result is fractional.

The Image Resizer takes a target width and preserves proportions. Use the Aspect Ratio Calculator if you need to compare a required format with your source image. A proportional resize does not turn a portrait composition into a landscape composition.

scale = target width / original width
target height = original height x scale
example: 3000 x (1200 / 4000) = 900

Choose between fitting and cropping

If a website requires a square image but your source is 4:3, there are several options. Fit the entire picture within the square and leave unused space, crop the long side, or redesign the container. Forcing both dimensions without preserving the ratio stretches the subject.

Cropping can be appropriate for thumbnails, but check that faces, labels, and important details remain visible. A product photo or document scan may need the full frame. The right choice depends on what the reader needs to inspect, not just the dimensions specified by a template.

Match pixel dimensions to the display

An image displayed at 600 CSS pixels wide may benefit from a 1,200-pixel source on a high-density screen. Sending the original 4,000-pixel file for that small placement can waste bandwidth. Responsive websites often provide several source sizes so the browser can choose an appropriate one.

DPI metadata alone does not determine how large an image appears in a web layout. Pixel dimensions and CSS sizing are the practical starting points. Print work has different requirements because the physical output size and printer resolution also matter.

Inspect the exported image

Upload a copy of the original, choose a target width smaller than the source for downscaling, and inspect the output at its intended display size. Check fine lines, text, transparency, and orientation. Upscaling creates more pixels but cannot recover detail that was never present.

Keep the original for future exports rather than repeatedly resizing an already reduced copy. If the pixel dimensions are appropriate but the file remains large, use the Image Compressor and inspect its result separately. A filename extension or small byte count alone does not prove that the picture is visually acceptable.

  1. Record the original width and height.
  2. Choose a target width based on the real display size.
  3. Preserve the aspect ratio or crop deliberately.
  4. Compare the exported image with the original before replacing it.

Proportional resize examples

Proportional resize examples
Original sizeTarget widthResulting size
4000 x 300012001200 x 900
1920 x 1080960960 x 540
1200 x 1800400400 x 600

Common questions

Will resizing always make the file smaller?

Not necessarily. Output format, compression settings, metadata, and image content also affect bytes. Compare the downloaded file size as well as its dimensions.

Can I enlarge a blurry photo and recover detail?

A standard resizer interpolates pixels; it does not recover missing original detail. Use a higher-resolution source when possible.

Further reading

Business

Money

Everyday math

Developer workflows

Writing

Browse all guides