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.
This browser does not support background processing. Please use a current version of Chrome, Edge, Firefox or Safari.
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”.
Your browser sends Global Privacy Control, so no numbers are shared.
Many files: processing runs in your browser, and how long it takes depends on your device.
From the Solo plan
Measure whether smaller images improve LCP
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
- Website Speed Test: Tests several pages of a site on mobile and desktop and shows real-user data, lab findings and competitors in one report.
- Hosting Checker: Finds the host, CDN, server country and CMS of a site and places its real-user server response among other sites at the same host.
- Core Web Vitals Test: Checks LCP, INP and CLS of real visitors against Google's thresholds and shows which pages fail and why.
- Mobile Website Speed Test: Measures how fast a site loads on phones, with real-user data from mobile Chrome and a throttled lab test.
- TTFB Test: Shows how long real visitors wait for the first byte of a URL and of the whole origin, from Chrome UX Report data.
- Performance Budget Calculator: Turns medians of comparable sites into limits for page weight, scripts and Core Web Vitals, with ready-to-use Lighthouse CI files.
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.