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.

Your image is resized entirely in your browser. It is never uploaded to any server.

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