Home / Guides / Image compression

IMAGE COMPRESSION · PRACTICAL GUIDE

How to compress images online

A practical guide from MrGIF · Updated 20 November 2026

Image compression reduces the amount of data needed to store or send a picture. Smaller images can upload faster, take less storage and help pages load more efficiently. The right settings depend on the image: a photograph, logo, screenshot and transparent graphic do not all compress in the same way.

Ready to compress an image?

Open the MrGIF image compressor, select one or more JPG, PNG or WebP images, choose the output format and adjust quality or dimensions.

1. Choose the right image format

JPG / JPEG

JPG is commonly used for photographs and images with many colours. It uses lossy compression, which means reducing file size can discard some image information. Lower quality settings usually create smaller files, but excessive compression can make edges look blocky or create visible artefacts.

PNG

PNG is useful for graphics, screenshots, text and images that need transparency. It is often larger than a compressed JPG for photographs. Converting a photo to PNG does not automatically make it smaller, so compare the output size before choosing it.

WebP

WebP supports lossy and lossless compression and can also support transparency. It can produce smaller files than older formats for many web images, but the result varies with the source and quality setting. Check that the websites or apps where you plan to use the image accept WebP.

2. Adjust quality carefully

For JPG and lossy WebP, quality is a balance between appearance and file size. Start with a moderate setting, inspect the result at the size it will actually be displayed, and adjust only if necessary. A tiny thumbnail may tolerate stronger compression than a large product photo or detailed illustration.

PNG behaves differently: a quality slider may not have the same effect as it does for JPG. The resulting size depends on the image content and the encoder.

3. Resize before or during compression

If an image will only appear at 800 pixels wide on a webpage, exporting a 4,000-pixel-wide version may be unnecessary. Reducing dimensions can make a substantial difference to file size. Keep the original file as a backup, especially when resizing photographs or artwork that may later be needed at a larger size.

4. Can you compress an image to 100KB?

A target size can be a useful guide when a form or website has an upload limit. However, no single quality setting can guarantee that every image will fit under 100KB. A detailed photograph may need a smaller dimension or lower quality than a simple graphic. If the result is still too large, try reducing the dimensions, changing to a suitable format or simplifying the image.

5. Keep transparency in mind

PNG and WebP can preserve transparency. JPG does not support transparent pixels, so transparent areas must be replaced by a solid background when exporting to JPG. If a logo or icon needs a transparent background, choose PNG or WebP and check the exported file before using it.

6. Compare the result before downloading

Look for blurred text, jagged edges, colour banding and halos around sharp details. Compare the compressed version with the original at its intended display size. The smallest file is not always the best file if important details become difficult to see.

Does MrGIF upload my images?

MrGIF is designed to process selected images locally in your browser rather than upload them to a MrGIF image-processing server. The site and its supporting scripts still load through the network, but the selected image files are processed on your device. Browser and device capabilities can affect performance and output.

Try the image compressor

Use the free online image compressor to compress JPG, PNG and WebP images. Need an animated image instead? Try the video-to-GIF converter.

Quick checklist

  1. Keep an original copy of the image.
  2. Choose JPG for many photos, PNG for graphics or transparency, and WebP where supported.
  3. Set dimensions close to the size you actually need.
  4. Adjust quality gradually and inspect the result.
  5. Check transparency and file size before uploading or sharing.