Image resizer
Fit an image inside maximum dimensions, preserving aspect ratio and preventing enlargement.
Input
Tip: press Ctrl + Enter to run
Saved settings
About this tool
Most upload forms, websites and email programs work best with images no larger than they need to be. A 12-megapixel phone photo is about 4000 × 3000 pixels: far more than a blog post, a listing or a slide can show. This resizer fits an image inside the maximum width and height you set, keeps its aspect ratio so nothing is stretched, and never makes an image larger than the original.
You can save the result as PNG, JPG or WebP, with a quality setting for JPG and WebP. Smaller dimensions are usually the single biggest file-size saving, more than compression alone.
How to use it
- Choose an image.
- Enter the maximum width and maximum height in pixels.
- Choose PNG, JPG or WebP and, for JPG or WebP, a quality.
- Run it and download the resized image.
How the calculation works
Scale = min(1, max width ÷ width, max height ÷ height). New size = original × scale, rounded to whole pixels. The image is redrawn on a canvas at that size with the browser’s built-in canvas scaling and encoded in the chosen format.
scale = min(maxWidth / width, maxHeight / height, 1)Worked example
A landlord’s listing site allows photos up to 1200 × 1200 px. A 2400 × 1600 photo of a living room is scaled by 0.5 to 1200 × 800: the width hits the limit first, so the height is reduced in proportion. Saved as JPG at 85%, it drops from several megabytes to a few hundred kilobytes.
Sample input and result
2400 × 1600 → 1200 × 800
Limitations
- One image at a time.
- Aspect ratio is always preserved; there is no stretch option.
- EXIF metadata is not copied to the output.
Last updated:
Frequently asked questions
Will it enlarge small images?
No. Images already within the limits keep their size; enlarging adds blur, not detail.
How do I get an exact size such as 1080 × 1080?
Crop to the right shape first with the image cropper, then resize.
Which format should I choose?
JPG or WebP for photos, PNG for screenshots and graphics with sharp edges or transparency.
Troubleshooting
The output is the same size as the input.
It was already smaller than the limits.
The file got bigger.
Saving a JPG as PNG increases size; choose JPG or WebP for photos.
The image is rotated.
Current browsers apply EXIF orientation automatically; update an older browser.
Privacy & Free to use
Are my inputs stored?
Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.
Is this tool free?
Yes. No signup or payment is required.
See also
Useful next steps
Image compressor
Re-encode JPG or WebP at adjustable quality. Output can be larger; always compare sizes.
Image toolsJPG, PNG & WebP converter
Convert images to JPG, PNG or WebP. JPG replaces transparency with white.
Image toolsRotate image
Rotate 90, 180 or 270 degrees clockwise and download a PNG.
Image tools