Image Compressor & Resizer

Shrink a photo's file size or dimensions before you upload or share it — MozJPEG, WebP, AVIF or optimised PNG.

Last updated

🔒 Your files never leave this device. It all happens in your browser, which is told to block this page from sending anything to other websites. Try it with airplane mode on: it still works. Check for yourself

Sent to other websites from this page: 0

Drop an image here, or click to choose one

How to compress an image

  1. Choose or drop a photo or image.
  2. Set a maximum width or height, pick the format and quality, or type a target size in KB.
  3. Click Compress & download.

About this tool

Set a max width and/or height and the image is scaled down to fit (never up), keeping its aspect ratio — leave either blank to only constrain the other. Resizing uses a Lanczos3 filter in linear light, which keeps fine detail sharper than a browser's own scaling. Or give a target file size and the tool searches for the highest quality that fits, which is handy for upload forms with a size limit.

Encoding uses the same WebAssembly codecs as Google's Squoosh app. MozJPEG makes JPEGs typically 10–20% smaller than a browser's built-in encoder at the same quality, and they open everywhere. WebP is smaller again and supported by every current browser. AVIF is usually the smallest of all — often half the size of a JPEG — but takes longer to encode and some older apps can't open it. PNG stays lossless, run through OxiPNG to squeeze out every byte without changing a pixel.

Compressing also removes the photo's metadata (camera details, GPS location). Nothing is uploaded anywhere — the file never leaves your device; all the work happens in a background worker in your browser tab.

Questions about compressing images

How do I make a photo smaller than 200 KB?

Type 200 in the target file size box. The tool finds the highest quality that fits, which is ideal for upload forms with a size limit. Lowering the maximum width helps too.

Which format makes the smallest file?

AVIF is usually smallest, often half the size of a JPEG, but slower to make and not supported by some older apps. WebP is a good middle ground; JPEG opens everywhere.

Will compressing reduce the quality?

JPEG, WebP and AVIF trade a little quality for size; around 75% usually looks the same to the eye. PNG stays lossless and pixel-perfect.

Does it remove location data from photos?

Yes. Compressing removes the photo’s metadata, including camera details and GPS location.

Are my photos uploaded?

No. They’re compressed on your device, in your browser, and never sent anywhere.

☕ Support toolcrate