A website banner needs to be exactly 1200 × 400 pixels. A marketplace wants product photos at 1000 × 1000. A slide template has a placeholder 1920 pixels wide. Resizing an image sounds trivial, yet it is easy to end up with squashed faces, fuzzy text or a file that is bigger than the original.
This guide explains the handful of concepts that make resizing predictable (pixels, aspect ratio and resampling), then walks through resizing to exact dimensions in your browser and on your computer, with tips for the common problems.
Pixels, aspect ratio and resampling
Pixel dimensions
A digital image is a grid of pixels, described as width × height, for example 4032 × 3024. That grid is what websites and apps care about. Physical sizes such as centimetres or inches only matter when you print, and then depend on the print resolution (DPI).
Aspect ratio
The aspect ratio is the relationship between width and height. 4032 × 3024 is 4:3; 1920 × 1080 is 16:9; 1000 × 1000 is 1:1. If you change width and height by different proportions, the picture is stretched or squashed. People look wider or thinner, and circles become ovals.
To reach a different aspect ratio without distortion, you must crop part of the image, or add space (padding) around it. Resizing alone cannot do it.
The maths for keeping proportions is simple:
new height = new width × (original height ÷ original width)
So a 4032 × 3024 photo resized to 1600 wide becomes 1600 × 1200.
Resampling: why shrinking is safe and enlarging is not
When you resize, software calculates new pixel values from the old ones, a process called resampling.
- Downscaling (making smaller) combines several original pixels into each new one. Detail is lost, but the result looks sharp at its new size. This is the safe direction.
- Upscaling (making larger) has to invent pixels that never existed. Standard resampling spreads existing detail over more pixels, which looks soft or blurry. It cannot add real detail.
If you need a bigger version of a small image, dedicated upscalers like our Image Upscaler do a better job than plain resizing, but the best fix is always to find a larger original.
Resize an image in your browser
The Image Resizer changes the pixel dimensions on your device, without uploading the file.
- Open the Image Resizer.
- Drop an image onto the upload box, or click to choose one (up to 10 MB). The original size is shown, for example "Original: 4032 × 3024 px", and the width and height fields are filled in with those values.
- Make sure the button reads Aspect Ratio Locked. With the lock on, typing a new Width (px) updates the Height (px) automatically, and vice versa.
- Enter the dimension you need. Values from 1 to 10,000 pixels are accepted.
- If you genuinely need a different shape and accept some stretching (for example a plain texture), click the button to switch to Aspect Ratio Unlocked and enter both values.
- Click Resize Image. The New dimensions are displayed.
- Click Download Resized. The file is saved as PNG, with the new size in its name, for example
photo-resized-1600x1200.png.
About the PNG output
The resizer saves PNG so no compression loss is added during the resize. For photographs, this can mean the resized file is larger in bytes than your original JPG, even though it has fewer pixels. If you need a small photo, run the result through the Image Compressor or PNG to JPG afterwards.
Fitting a fixed box without distortion
When a destination requires an exact size in a different ratio from your photo, combine steps:
- Crop to the target aspect ratio first with the Image Cropper. For 1200 × 400, that is a 3:1 crop.
- Resize the cropped image to the exact pixel size with the aspect lock on.
For social media, the Social Media Image Resizer handles common platform sizes in one step, and the Bulk Image Resizer is the right choice when you have a folder of product shots to process.
Other ways to resize
Windows
In Paint, choose Resize (or press Ctrl+W), select Pixels, tick Maintain aspect ratio, and enter the new width. Save with File → Save as. The Photos app also offers resizing when saving a copy in recent versions.
Mac
In Preview, choose Tools → Adjust Size, set the units to pixels, keep Scale proportionally ticked, and enter the width. Preview shows the resulting file size before you confirm.
Command line
ImageMagick's -resize keeps proportions by default:
magick input.jpg -resize 1600x output.jpg
Add ! (as in 1600x900!) only if you deliberately want to ignore the aspect ratio.
Troubleshooting
My resized photo looks stretched
The aspect ratio lock was off, or the target size has a different ratio. Reload the original, keep Aspect Ratio Locked on, and crop if you need a different shape.
The resized image is blurry
You probably enlarged it. Check that the new dimensions are smaller than the original. If the image is displayed larger than its pixel size on a website, the browser upscales it, which also looks soft.
Text in a screenshot became hard to read
Shrinking a screenshot reduces the size of the text along with everything else. Crop to the relevant area instead of shrinking the whole screen.
The file is larger than before
The output is PNG. Compress it or convert it to JPG if file size matters more than lossless quality.
Frequently asked questions
How do I resize an image without losing quality?
Downscale rather than upscale, keep the aspect ratio locked, and resize from the original file rather than an already-reduced copy. Some detail is always discarded when shrinking, but the result looks sharp at its new size.
What is the difference between resizing and cropping?
Resizing scales the whole picture to new dimensions. Cropping cuts away the edges to keep only part of it. To change the shape without distortion, crop first and then resize.
Does resizing change the DPI?
Resizing changes the pixel count. DPI is only a print instruction stored in the file. To set it for printing, change the DPI value in an editor or a dedicated DPI tool; the pixels stay the same.
Why is my resized image saved as PNG?
PNG avoids adding compression artefacts during the resize. Convert or compress it afterwards if you need a smaller JPG.
Can I resize several images at once?
This tool handles one image at a time. For many files, use the Bulk Image Resizer.