Image Resizer
Resize images by exact dimensions, percentage, or target file size. Free, instant, private.
Want to see why a square preset can squash a landscape photo? We measured it.
How to resize a photo without distorting itDrop your image here
JPG, PNG, WebP, GIF supported - or click to browse
What does the resizer actually do to your photo?
It redraws your image onto a canvas at the new width and height, with the browser's high-quality smoothing switched on, and saves the result as a new file. You can keep the original format or switch to JPG, PNG or WebP. The quality slider (60 to 100, default 85) shows up when the output is JPG, and WebP output quietly uses the same setting. PNG ignores it, because PNG is lossless.
There are three ways to set the size. By Dimensions takes an exact width and height. By Percentage scales both sides together. By File Size aims for a target in kilobytes instead of a pixel size. The tool handles one image at a time.
Why did the Instagram preset give me 1080 x 720?
Because the aspect ratio lock was on, and that's the safe default. With the lock on, a preset only sets the width, and the height follows your photo's own shape. Our 1800 x 1200 landscape photo came out 1080 x 720, not 1080 x 1080.
Switch the lock off and the preset forces both numbers. That gave us a 1080 x 1080 file, but the photo was squashed sideways to fit, because resizing never cuts anything off. If you want a true square, crop it to 1:1 in the image cropper first, then resize.
How does "By File Size" hit a target?
It searches for the highest quality that fits. It tries up to eight quality levels between 30 and 100 percent at full size. If none of them fits, it starts shrinking the dimensions in 8 percent steps at quality 80 until the file is small enough. With a 100 KB target, our 339.2 KB photo came back at 792 x 528 and 74.1 KB, so it had to give up pixels to get there. A 20 KB target ended at 360 x 240. The smallest target it accepts is 10 KB. If it still can't get under your target, it tells you instead of handing back something too big.
How large can you make an image?
Bigger than you'll probably need on a laptop, but there is a ceiling. In desktop Chromium, scaling our photo up to 16000 x 10667 (about 171 megapixels) worked and produced an 8.39 MB JPG in under three seconds. At 24000 x 16000 (384 megapixels) the browser refused to create the image. The page now says so instead of failing silently. Phones and tablets have less memory, and we haven't measured their limits, so expect them to give up sooner. Remember that upscaling only adds pixels. It can't add detail that wasn't in the original.
What happens to transparency, rotation and animation?
- Transparency survives when the output is PNG or WebP. Our transparent PNG kept its clear corners after resizing to 400 x 300.
- Sideways phone photos come out upright. Chromium reads the EXIF rotation flag before drawing, so the sideways test photo became a correctly oriented 900 x 600 file.
- All metadata is dropped, including camera details and GPS location. None of our output files contained an EXIF block.
- Animated GIFs stop moving. The browser can only draw one frame, so a GIF comes back as a still PNG of the first frame. It's now named .png so the extension matches what's inside.
How we tested: we ran this page's own code in headless Chromium using Playwright on public test images (an 1800 x 1200 JPEG photo, the same photo stored sideways with an EXIF rotation flag, an 800 x 600 PNG with a transparent background and a 400 x 400 animated GIF), and every row in the table below comes from one of those runs.
| Sample | Setting | Before | After | What we saw |
|---|---|---|---|---|
| Photo, 339.2 KB | Width 1080, lock on, quality 85 | 1800 x 1200 | 1080 x 720, 179.4 KB | Default settings |
| Photo | Instagram 1080 preset, lock on | 1800 x 1200 | 1080 x 720, 179.4 KB | Height follows the photo |
| Photo | Instagram 1080 preset, lock off | 1800 x 1200 | 1080 x 1080, 253.3 KB | Squashed to fit, not cropped |
| Photo | By Percentage, 50% | 1800 x 1200 | 900 x 600, 125.4 KB | |
| Photo | Width 1080, WebP output | 1800 x 1200 | 1080 x 720, 160.5 KB | 11% smaller than the JPG |
| Photo | By File Size, 100 KB | 339.2 KB | 792 x 528, 74.1 KB | Shrank dimensions to fit |
| Photo | By File Size, 20 KB | 339.2 KB | 360 x 240, 18.5 KB | |
| Sideways photo, 344.5 KB | Width 900 | Flag says rotate | 900 x 600, 125.9 KB | Upright, EXIF removed |
| Transparent PNG, 219.3 KB | Width 400, same format | 800 x 600 | 400 x 300, 99.6 KB | Transparency kept |
| Animated GIF, 978.2 KB | Width 200 | 400 x 400 | 200 x 200 PNG, 43.2 KB | First frame only |
| Photo | Upscale to 16000 x 10667 | 1800 x 1200 | 8.39 MB in 2.6 s | Worked |
| Photo | Upscale to 24000 x 16000 | 1800 x 1200 | No file | Browser refused, error shown |