Skip to main content

Compress and resize images

Compress JPG, PNG, WebP, and AVIF right in your browser. Optionally set a target size, for example under 1 MB, and resize and download everything as a ZIP. Your images stay on your device.
Compression settings
Adjust quality, format, and size

Lower values mean smaller files but lower quality

WebP gives the best compression at good quality

Each image should end up no larger than this. To get there, the tool tries up to seven quality levels and reduces the dimensions if needed.

Scale images down to maximum dimensions

Upload images. Drag images here or click to choose

Format comparison

WebP

All-round format

Modern format with very good compression. Supports transparency and animation. The tool's default.

Default choice for many images

JPEG

For photos

Suited to photos and realistic images. Lossy compression with good quality, but no transparency.

Good for classic photos

PNG

Lossless

Lossless compression. Suited to graphics, logos, and images with transparency. Files are usually much larger than WebP or AVIF.

Good for graphics and transparency

Reduce image size in four steps

You don't need an account or an installation. Everything runs in your browser, and your images don't leave your device. If you want an image to end up at a specific size, enter a target size.

  1. Drag your images into the upload area or choose them. You can load several at once.
  2. Set the quality. The defaults are 80% and the WebP format. Optionally, enter a value in KB or MB under "Target size".
  3. If you need it, turn on "Resize" and enter a maximum width or height.
  4. Check the size before and after in the results list, and download each image or all of them as a ZIP.

Get an image to a specific size, e.g. under 2 MB

Enter a value under "Target size", for example 500 KB, 1 MB, or 2 MB. The presets set the value and the unit with one click. After compression, each image is then no larger than that, as long as the target is reachable.

  1. Choose JPEG, WebP, or AVIF. The quality you set then acts as the upper limit.
  2. Enter the target size or click a preset, then upload your images. The setting applies to all images in that run.
  3. The tool encodes the image several times with different quality levels, at most seven times per image, and keeps the highest quality that stays under the target. This is an approximation by halving the quality interval, not always the exact highest possible level.
  4. If even a low quality isn't enough, the tool also reduces the dimensions in steps. The aspect ratio is kept, and the image is never enlarged. Next to the image you can see what percentage of the original dimensions the tool went down to.

If the tool can't get under the target, it says so next to the image and keeps the smallest result. A target below 1 KB is ignored, and the image is compressed with the quality you set. Missing the target happens with a very small target, and with PNG when reducing the dimensions isn't enough either. Quality has no effect on PNG because PNG is lossless, so the tool only reduces the dimensions there. If you want PNG images under a limit and want to keep their dimensions, switch to WebP or JPEG.

KB and MB are calculated with 1,024, like the sizes shown in the tool. A target of 1 MB is therefore 1,048,576 bytes. Some upload forms count with 1,000, so set the target a little lower in that case.

Compressing and resizing images, what is the difference?

In everyday speech both words often mean the same thing, but technically they are two separate levers. The tool offers both.

LeverWhat changesWhere you set it
CompressThe file gets smaller and the pixel count stays the same. With lossy formats, detail is lost in exchange.Quality and output format
ResizeThe image has fewer pixels in width and height. If you halve both sides, a quarter of the pixels remain, and the file usually gets much smaller."Resize" with a maximum width and height

Resizing only makes images smaller. An image that is already smaller than your maximum stays unchanged, and the tool never enlarges. With the aspect ratio kept, the image is scaled down proportionally.

Resize images for email

How much your email provider allows in attachments differs from provider to provider. Check there and add up the images.

  • Upload all the images for the email together. The summary shows the total before and after.
  • Choose JPEG as the output format if you're not sure what the recipient will open the file with. Almost every program can open JPEG, which isn't true for WebP and AVIF everywhere.
  • For screenshots and phone photos, a maximum width of 1920 pixels is often enough, because the recipient mostly looks at them on a screen.
  • If someone should be able to print the image, keep the dimensions larger and lower only the quality.

JPG, PNG, WebP, or AVIF, which format fits?

FormatGood forKeep in mind
JPEGPhotos and email attachmentsNo transparency
PNGLogos, graphics, and images with transparencyLossless, the quality slider has no effect, and the file often stays large
WebPImages for your websiteThe tool's default
AVIFImages for your website when they should be especially smallOnly selectable if your browser can export AVIF

All images in one run end up in the same output format. If you want photos as JPEG and a logo as PNG, do two runs. The tool processes animated GIFs as a single still image.

Keep an eye on the result, too. With a very small or already heavily compressed image, the new file can end up larger. The summary then shows "Larger", and you're better off keeping the original.

Frequently asked questions

Everything about image compression
How does the image compression work?
Compression happens entirely in your browser with the Canvas API. The image is loaded into a canvas element and then exported in the target format at the quality you chose.
Which image formats are supported?
You can upload JPG, PNG, WebP, GIF, and AVIF images and export them as JPG, PNG, WebP, or AVIF. The tool only offers AVIF as an output format if your browser can export it. That depends on the browser and its version. Otherwise the option is missing from the format list.
What is AVIF, and should I use it?
AVIF (AV1 Image File Format) is a modern image format with strong compression. It can produce files up to about 50% smaller than WebP at the same quality. Use it if you want very small files and the tool offers it in your browser. WebP is the safer default.
Are my images uploaded to a server?
No. All processing happens locally in your browser, and your images don't leave your computer.
Can I shrink an image to a specific size, for example under 1 MB?
Yes. Enter a value in KB or MB under "Target size", or use a preset. For JPEG, WebP, and AVIF, the tool lowers the quality only as far as needed and, if necessary, also reduces the dimensions. If it can't reach the target, it says so next to the image and you get the smallest result. A target below 1 KB is ignored, and the tool compresses with the quality you set.
Are EXIF data and GPS coordinates kept?
No. The tool draws the image onto a canvas and encodes it again, which removes all metadata, including EXIF data, camera information, and GPS coordinates. That is handy if you want to publish photos. If you need the metadata, keep the original.
Why doesn't my PNG reach the target size?
PNG is lossless, so quality has no effect. The tool can only reduce the dimensions, and it does that in a limited number of steps. If that isn't enough, switch to WebP or JPEG. For photos, these formats are usually much smaller.
How much can I reduce the file size?
It depends on the original image and your settings. Use the results list to see the size before and after for each image. If the new file turns out larger, the summary says "Larger".
How does resizing work?
You set a maximum width and/or height. With the aspect ratio kept, the image is scaled proportionally. Images that are already smaller than your maximum stay as they are.
What is the difference between the formats?
JPG suits photos, PNG suits graphics with transparency, WebP handles both with good compression, and AVIF often gives the smallest files. WebP is exported by all common browsers, AVIF only if your browser supports it. See the format comparison below the tool for details.
Is image quality lost during compression?
With lossy compression (JPG, WebP, AVIF), some quality is lost. PNG is lossless, but it compresses less. Compare the result with the original before you use it.

Related tools

All tools

Changelog

Latest updates and improvements to the image compressor
v1.4.0

November 20, 2026

Transparency in JPEG and text corrections

  • • Fixed: transparent PNG and WebP images turned black when exported as JPEG. Transparent areas are now filled with white.
  • • The FAQ now mentions AVIF only where the browser can export it, instead of crediting every browser with it.
  • • The target size texts describe the quality search as an approximation. A target below 1 KB is ignored, and the FAQ now says so.
  • • The FAQ explains that EXIF data and GPS coordinates are lost during compression.
v1.3.0

November 17, 2026

Target size

  • • Added an optional target size in KB or MB, with presets for 500 KB, 1 MB, and 2 MB
  • • For JPEG, WebP, and AVIF, the tool finds the highest quality that stays under the target by halving the quality interval, with at most seven encodes per image
  • • If quality isn't enough, the tool reduces the dimensions in steps and shows this next to the image
  • • If the target isn't reached, the tool says so next to the image and keeps the smallest result
  • • Added a guide with instructions and use cases below the tool
  • • Added related tools at the end of the page
v1.2.0

May 12, 2026

AVIF input and ZIP download

  • • AVIF as an input format (in addition to JPG, PNG, WebP, and GIF)
  • • Download of all compressed images as a ZIP file
  • • Better AVIF detection for more browsers
Show older versions
v1.1.0

December 20, 2025

AVIF format and resizing

  • • AVIF format for the best compression
  • • Resizing with a maximum width and height
  • • Option to keep the aspect ratio
  • • Automatic browser compatibility check
v1.0.0

December 17, 2025

Launch

  • • Compression of JPG, PNG, WebP, and GIF
  • • Export as JPG, PNG, or WebP
  • • Adjustable quality level
  • • Preview before and after compression
  • • Size comparison in percent
  • • Fully client-side processing