Don's Tools · Image · Resize Image to Exact Size

Resize an image to an exact size

Drop a photo, type the width and height you need, choose how it fits, then download. Nothing is uploaded.

Drop an image here
or tap to choose · set exact pixels, lock the ratio, crop or pad · stays on your device
Drop an image to see its size and file size
Resize Image to Exact Size lets you change any image to exact pixel dimensions entirely in your browser, with nothing uploaded. Set the width and height, lock or unlock the aspect ratio, stretch to the exact size, crop to fill, or fit with a padding colour, or compress to a target file size as JPEG, then download the result as PNG or JPEG.

Files are processed in your browser and never uploaded.

How to use Resize an image to an exact size

  1. Add your file

    Drop your image file onto the upload area, or tap the area to choose it from your device.

  2. Run it

    Press Download, Don →. The button stays disabled until there is something to work on, and each file shows its own progress and result.

  3. Save the result

    Press Download, Don →. Each finished file keeps a name based on the one you started with, so you can tell the versions apart.

What this tool does

Resize to exact pixel width and height

Type the width and height you need in pixels and that is exactly what comes out, which is what a form with a fixed size wants.

Lock or unlock the aspect ratio

Lock ratio keeps the proportions while you type one dimension, and unlocking it lets you set both independently.

Stretch, fill (crop) or fit (pad) modes

Stretch fills the box regardless of shape, Fill crops to cover it, and Fit pads to keep the whole image visible without distortion.

Choose a padding colour

When you use Fit, the padding colour is yours to choose, so it can match the background it will sit on.

Compress JPEG to a target file size

Max KB compresses the JPEG towards a size limit, for the uploads that enforce one alongside the dimensions.

Export PNG or JPEG, nothing uploaded

Save as PNG or JPEG. The resizing is done by your browser and the image is never uploaded.

Frequently asked questions

Are my images uploaded when I resize them?

No. The image is resized entirely in your browser on your device, so nothing is uploaded and it works offline.

How do I keep the aspect ratio?

Turn on Lock ratio. With it on, changing the width sets the height automatically (and the other way round), so the image is never stretched out of shape.

What is the difference between Stretch, Fill and Fit?

Stretch forces the exact size and may distort the image. Fill scales up and crops the overflow so it covers the whole size. Fit scales the image to sit inside the size and pads the rest with your chosen colour.

Will resizing reduce the quality?

Making an image smaller stays crisp. Making it much larger than the original can look soft, since there are no extra details to invent. High-quality smoothing is used either way.

Can I resize for a specific platform?

Yes. Type the exact pixels you need, such as 1080 by 1080 for a square post or 1920 by 1080 for a banner, and pick Fill or Fit to control any cropping.

Can I hit a target file size?

Yes. Set Save as to JPEG and type a Max KB value. Just type a Max KB value and the tool switches Save as to JPEG for you, then tries different quality levels to download the best-looking version under your target. (PNG is lossless, so a size target only applies to JPEG.)

Last updated: