Image, File and Developer Tools
Image Resizer
Resize an image to an exact width and height in your browser, with an option to keep the original proportions.
Calculation History
Your recent calculations on this device. Stored only in your browser, never uploaded.
No calculations yet on this device.
How to Use
Choose an image (up to 20 MB), enter the target width and height, keep the aspect-ratio box ticked unless you want to stretch the image, and choose an output format. Press Resize, then download the result.
Formula and Methodology
With keep-aspect on, the image is scaled by the limiting dimension: scale = the smaller of target width / original width and target height / original height, then new width = original width x scale and new height = original height x scale. With keep-aspect off, the image is stretched to the exact target size.
Tips
Resize a photo down to the size it will actually be shown at before uploading it. A 4,000-pixel photo shown at 800 pixels wide wastes bandwidth for no visible gain.
Keep the aspect ratio ticked unless you deliberately want to change the shape. Stretching an image to a different shape distorts faces and objects.
Frequently Asked Questions
No. Resizing happens entirely in your browser using the canvas element. Your image never leaves your device.
It scales the image by the limiting dimension, so the proportions stay the same. If you ask for 800 by 600 and the image is wide, the height will come out smaller than 600 so nothing is stretched.
JPEG is best for photos, PNG is best for graphics with sharp edges or transparency, and WebP usually gives the smallest file for both when the site you upload to accepts it.