Utilumo
LightDarkSystem
Guide1 min readUpdated June 25, 2026

How to compress images for the web

Short answer

To compress an image, resize it to the dimensions you actually need, choose the right format (JPG or WebP for photos, PNG for sharp graphics), and lower the quality setting until the file is small but still looks clean.

Lossy vs lossless compression

Lossless compression makes a file smaller while keeping every pixel identical. Lossy compression throws away detail the eye is unlikely to notice in exchange for much smaller files. Photos almost always use lossy formats; sharp graphics, logos, and screenshots often look better with lossless.

Step by step

  1. Resize before you compressA 4000px photo displayed at 800px wastes most of its data. Reducing dimensions to the real display size is the single biggest size win.
  2. Pick the right formatUse JPG or WebP for photographs. Use PNG for screenshots, line art, and anything with text or transparency.
  3. Lower the quality settingFor lossy formats, quality around 75 to 85 percent usually looks identical to the original at a fraction of the size. Drop further only if the file still needs to be smaller.
  4. Check the resultCompare the preview against the original. Watch for blocky artifacts in skies and gradients, and fuzzy edges around text.
Try it: Image CompressorCompress JPG, PNG, and WebP locally, with a live preview and batch ZIP download.Open tool

Resize vs compress

These are different operations that work well together. Resizing changes the pixel dimensions; compressing changes how efficiently those pixels are stored. For the smallest result, resize to the needed dimensions first, then compress.

If you also plan to share the photo publicly, strip its metadata. See What is EXIF metadata?.

Common mistakes

  • Compressing a giant image without resizing it first.
  • Re-saving the same JPG many times, which compounds quality loss each time.
  • Using PNG for photographs, which produces huge files for little benefit.

References

Questions

What quality setting should I use?

For most web photos, 75 to 85 percent quality is a good balance. Lower it further only if you need a smaller file and can accept slightly softer detail.

Will compressing reduce the image dimensions?

No. Compression changes file size, not pixel dimensions. To change dimensions, resize the image. Doing both gives the smallest file.

Do these tools upload my images?

No. Utilumo's image tools decode, edit, and export pictures inside the browser tab. The files are never uploaded or stored on a server.

Keep reading