Feedback

Image Compressor for Websites

This image compressor shrinks JPG, PNG, WebP and AVIF files for websites, one at a time or hundreds at once. It keeps the format or converts it, creates several widths if you want and writes the matching picture markup with width, height and fetchpriority.

Drop images or folders here

or

Images are processed in your browser and never uploaded. Metadata (including GPS) is removed unless you choose “Keep metadata”.

Output format

With nothing selected, each file keeps its format. Several formats produce a picture element. Only a few browsers show JPEG XL by default so far (Safari 17 and later). It only appears in the markup as an extra source.

Size, multiple formats and markup
Size
Markup for your site

Replace alt="" with a fitting alternative text.

Before After

From the Solo plan

Once the images are replaced, daily measurement in a plan shows the effect: lab and field data per URL over time, with an email on drops and optionally on improvements.

Smaller images, faster pages

Images are the largest part of page weight on many pages and often the LCP element. Smaller files arrive sooner, especially on phones over mobile networks. The biggest gain usually comes from the right width plus a modern format: a photo at screen width instead of camera resolution, as WebP or AVIF instead of PNG.

Images for websites: sizes, formats and srcset

An image should only be as wide as it is displayed. The responsive series creates widths from 480 to 1,920 pixels, and the browser picks the right one through srcset and sizes. The picture element lists AVIF first, then WebP, with JPG or PNG in the img element as the fallback.

width and height on the img element reserve the space before the image loads and so prevent layout shifts (CLS). For the largest image in the visible area, usually the LCP element, the "LCP image" option sets fetchpriority="high" and leaves out loading="lazy".

Processing in your browser

All images are processed on your device, nothing is uploaded. Metadata such as camera data and GPS coordinates is removed unless you choose “Keep metadata”, and the orientation is applied to the pixels first. The limit is your device's memory and processor; images over 50 megapixels are skipped.

After a run the compressor can send anonymous numbers: format, size, pixel dimensions, savings and duration, never file names or images. The switch below the drop zone turns this off; with Global Privacy Control active it is off from the start.

Other formats

FAQ

Which format is best for photos?

For photos, AVIF and WebP usually produce smaller files than JPG at similar quality. JPG stays in the img element as the fallback for old browsers.

Does compression make images look worse?

Lossy formats drop detail the eye barely notices. The "Balanced" level is meant for websites; the before and after view shows every image enlarged.

What is the difference between compressing and resizing?

Compressing stores the same image more efficiently, resizing reduces its pixel dimensions. For websites, both usually pay off: only as wide as displayed, then well compressed.

Are my images uploaded?

No. Processing runs entirely in your browser. At most anonymous numbers (format, size, savings) go to PerfDelta, and you can turn that off.

How many images can I compress at once?

There is no fixed limit. Your device's memory and processor set the limit.

More free tools

All free tools →

Third-party licenses

Encoding uses jSquash (Apache-2.0) with mozjpeg, libwebp, libavif, libjxl and oxipng, plus UPNG.js and fflate (MIT). Full license texts: THIRD_PARTY_LICENSES.txt

A free account saves your tests and shows how your values change from one test to the next. Daily monitoring with field data and alerts starts with the Solo plan.