Image compressor: shrink JPEG, PNG and WebP images without uploading them
A free image compressor that converts up to 50 JPEG, PNG or WebP images at a time to WebP, AVIF or a smaller JPEG, scaled to the size your site shows. Nothing is uploaded.
Drop images here, or choose files (up to 50)
Processed in your browser. Your files are never uploaded. JPEG, PNG, WebP, AVIF, GIF (first frame) · settings apply to images you add next
- Free, no account
- Runs in your browser
- Up to 50 images at a time
What the image compressor does
The codecs Google's Squoosh uses, running on your computer. Your images never leave your browser.
WebP, AVIF or JPEG
Convert JPEG, PNG or WebP images to WebP, AVIF or a smaller JPEG, at the quality you choose.
Scaled to the size you show
Images larger than the longest side you pick are scaled down before they are encoded.
Squoosh's codecs
Encoded with the WebAssembly builds of libwebp, libavif and MozJPEG, the codecs Google’s Squoosh uses.
Before and after
A table shows the size of every image before and after. Download them one by one or as a zip.
Never worse than the original
When the new file would be larger than the original, the tool says so and keeps the original.
Orientation and transparency kept
Photos keep their orientation. Transparent PNGs keep transparency in WebP and AVIF and get a white background in JPEG.
Show 2 more checks
Never worse than the original
When the new file would be larger than the original, the tool says so and keeps the original.
Orientation and transparency kept
Photos keep their orientation. Transparent PNGs keep transparency in WebP and AVIF and get a white background in JPEG.
How the image compressor works
Choose the settings
Pick a format, a quality and the longest side your site shows.
Drop your images
Each image is decoded by your browser, scaled down if needed and encoded in a Web Worker, up to 50 at a time.
Download the results
Compare the sizes in the table and download the files one by one or as a zip.
AVIF encoding takes several seconds per photo, so a large batch in AVIF takes a while. WebP is the faster choice.
Image compressor questions
Should I use WebP or AVIF?
WebP for most images, AVIF where every kilobyte counts. AVIF files are usually smaller than WebP at similar quality, by how much depends on the image (try both here and compare), but encoding takes several seconds per photo here and some older software cannot open them. WebP works in every current browser and encodes quickly. Try both on one typical photo in the compressor and compare the sizes in the table.
What quality setting should I use for WebP?
Start at 75-80 for photos, which usually looks the same as the original at a fraction of the size. Go down to 60-70 for large background images where fine detail matters less, and up to 85-90 for product photos people zoom into. Judge the result at the size your site displays it, not zoomed in, and keep the lowest setting that looks right.
Can I convert PNG to WebP here?
Yes. Drop PNG, JPEG or WebP files, choose WebP as the format and download the results one by one or as a zip, up to 50 images at a time. Transparent PNGs keep their transparency in WebP and AVIF; only JPEG gets a white background. Everything runs in your browser, so the images are never uploaded.
How do I compress an image without losing visible quality?
Use lossy compression at a moderate quality and check the result at 100 % zoom. Around 75 for WebP or JPEG and 60 to 65 for AVIF looks the same as the original for most photos. Look at a detailed area such as hair, text or foliage; if you see smearing, go up five points. When the new file would be larger, the tool keeps the original.
Are my images uploaded?
No. Decoding, scaling and encoding happen in a Web Worker in your browser with the WebAssembly builds of the codecs Google's Squoosh uses. The page downloads the codecs once; your files never leave your computer, so there is no size cap, no account and nothing stored on our side.
Why compress images before you upload them to your site?
The largest element on most slow pages is a photo uploaded straight from a phone or a stock site. Compressing it first is the fastest way to improve Largest Contentful Paint, the Core Web Vital that measures when the main content appears. Plugins that compress after upload still keep the full-size original on your server.
Related free tools
All 59 tools →Free, funded by the people who use it
No account, no paid plan. Donations keep it running.