Image resizer & compressor

Resize and compress images locally with custom dimensions, percentage scaling and common presets.

The interactive form is ready when JavaScript is enabled.

How to use

Choose a JPEG, PNG or WebP image of up to 30 MB. The tool shows the original with its dimensions and file size, and lets you set the new size in pixels, pick a scale (25%, 50%, 75% or 100%) or a preset that fits the image inside 800 × 600, 1080 × 1080, 1280 × 720 or 1920 × 1080. With Keep aspect ratio ticked, changing the width updates the height and the other way round, so the picture is not stretched; untick it to set both freely, and a preset then sets exactly that size, which can stretch the picture.

Choose the output format, which starts as the original’s, and, for JPEG and WebP, the quality (10–100%, 82% by default), then press Resize & compress. The result shows the new dimensions, the file size and how much smaller or larger it is than the original, and Download image saves it under the original name plus -resized, for example photo-resized.jpg; spaces and accented letters in the name become hyphens. Changing any setting clears the previous result, so what you download always matches what is shown.

Resizing and compressing are two different levers, and the first is usually the bigger win. Halving both the width and the height leaves a quarter of the pixels before quality is even considered; a 4000-pixel photo displayed 800 pixels wide sends most of its data for nothing. Then comes quality: JPEG and WebP discard detail the eye barely notices, while PNG is lossless, so the quality setting does not apply to it and photos saved as PNG are usually much larger.

The output can be up to 12,000 pixels on each side and 40 megapixels in total; on iPhone and iPad, very large outputs may still fail because of the browser’s memory limits, so choose a smaller size if that happens. Enlarging is allowed, and the presets enlarge a smaller image to fill them, but no detail is added: the extra pixels are interpolated, so the result looks softer. Transparent areas become white in JPEG, which has no transparency; PNG and WebP keep them. Safari, and every browser on iPhone and iPad, cannot create WebP files this way and produces PNG instead; the downloaded file name shows the format you actually got.

The image is redrawn in the browser, so camera metadata such as the date, the camera model and the GPS location is not copied to the new file, and photos that the camera marked as rotated are saved the right way up. Nothing is uploaded: the whole process runs on your device.

Example

  • 4000 × 3000 at 50%2000 × 1500: a quarter of the pixels, 3 million instead of 12 million.
  • 4000 × 3000 → Fit within 1920 × 10801440 × 1080: the height is the limit, and the proportions are kept.
  • 3000 × 4000 portrait → Fit within 1080 × 1080810 × 1080.
  • 600 × 400 → Fit within 1920 × 10801620 × 1080: enlarged, so it will look softer, not sharper.
  • Logo with a transparent background, PNG → JPEGThe transparent background becomes white; keep PNG or choose WebP to preserve it.

Frequently asked questions

What width should I use for a website?

The width at which the image is displayed, or about twice that for sharp results on high-density screens. Phones and many laptops have two to three times the pixel density of a standard screen, and twice the displayed width looks sharp on almost all of them: a photo shown 800 pixels wide needs about 1,600 pixels.

Why is my PNG so much bigger than a JPEG?

PNG stores every pixel exactly and works best for flat graphics — logos, screenshots, line art — where large areas repeat. A photograph has little repetition, so lossless storage saves little. JPEG discards detail the eye is poor at noticing, which is why photos belong in it.

Does resizing lose quality permanently?

Yes. Scaling down throws pixels away, and scaling back up cannot invent them again — it only guesses. Keep the original file and resize copies from it, rather than resizing the same image twice.

Why did the file get bigger?

Usually because a well-compressed JPEG was saved again at a higher quality, a photo was saved as PNG, an already optimised PNG was saved again (browsers compress PNG less tightly than specialised tools), or the image was enlarged. Lower the quality, choose JPEG or WebP, or reduce the dimensions.

Is my image uploaded?

No. It is read and redrawn in your browser, and the download is created on your device.

Related tools