How to resize an image: pixels, aspect ratio and quality
Learn how to resize an image by pixels or percentage, preserve the aspect ratio, choose Fit or Fill, avoid unnecessary quality loss and export the right format.
An explanatory example, not a watermark-removal result or performance benchmark.
| Goal | Suggested mode | Inspect |
|---|---|---|
| Show the full image in 1200 × 1200 | Fit | Unused space |
| Cover 1200 × 1200 | Fill | Cropped edges |
| Force exactly 1200 × 1200 | Stretch | Distorted subjects |
Start with the destination
Before changing dimensions, check where the image will be used. A website card, profile image, email attachment and print layout can require different widths, heights and file sizes. Use the destination's current specification when it is available instead of relying on a universal preset. Keep the original file so you can generate another size later.
Pixel dimensions are not file size
Width and height describe how many pixels the image contains. File size describes how much storage the encoded file uses. A 1600×900 JPEG can be smaller than an 800×800 PNG because format, transparency, detail and compression also matter. Resize first when the image has more pixels than the destination needs; compress after resizing when a separate KB or MB limit still applies.
Keep the aspect ratio unless distortion is intentional
The aspect ratio is the relationship between width and height. Keeping it prevents faces, circles and products from appearing stretched. If the target ratio differs from the source, choose between fitting the full image inside the target, filling the target and cropping overflow, or cropping the composition first. Stretch should be reserved for cases where changed proportions are acceptable.
Understand Fit, Fill and Stretch
Fit scales the image until the whole source is visible inside the target dimensions. It can leave unused space when the ratios differ. Fill scales until the target is covered, which can place part of the source outside the frame. Stretch forces the exact width and height without preserving the source ratio. Preview the result and pay special attention to faces, text, logos and circular objects.
Enlarging cannot recreate missing detail
Making an image smaller removes pixels. Making it larger creates new pixels based on the existing image, but it does not recover detail that was never captured. Enlarged images can look soft or pixelated around text and sharp edges. Use the smallest dimensions that satisfy the destination and compare the output at its actual display size.
Choose an export format
JPEG is widely supported for photos and uses lossy compression. PNG preserves transparency and sharp graphic edges but can be larger. WebP can support photos and transparency with efficient file sizes, but the destination must support it. If file size still matters after resizing, compare JPEG or WebP outputs in the compression tool instead of repeatedly resizing the same exported file.
Before you finish
- Confirm the destination's width, height and file-size requirements
- Keep the aspect ratio unless distortion is intentional
- Check faces, text and thin edges at the intended display size
- Keep the original and avoid repeatedly editing an already compressed output
Keep editing your image
Save your result before opening another tool. Mark a selection to remove people, objects, text or logos.
