Compress Images: JPEG vs WebP vs PNG, Quality and Size
Short answer: to compress an image, lower its dimensions first, then its quality, and pick the right format. The Image Compressor & Converter re-encodes a picture as JPEG, WebP or PNG at a quality and maximum size you choose and shows the sizes before you download. Your image is processed on your device and never uploaded.
Which format?
- JPEG: best for photos, supported everywhere. Transparent areas are filled with the background colour you choose.
- WebP: usually smaller than JPEG at similar quality, and supports transparency.
- PNG: lossless, so the quality slider does not apply. It suits screenshots, logos and graphics with sharp edges.
- AVIF: listed only when your browser can create AVIF files, which many cannot yet.
Resize first, then lower quality
Lowering the dimensions saves far more space than lowering quality. Photos straight from a phone are often much larger than any screen needs. Set a maximum width or height: the aspect ratio is kept and images are never enlarged.
What to expect
In testing, a 1200 × 800 px photo of about 700 KB came out near 315 KB as JPEG at 80%, near 160 KB at 50% and near 38 KB at 10%. Setting the maximum width to 400 px brought it to roughly 15 KB. Results depend on the picture, so judge by the before-and-after sizes the page shows.
Two surprises
- The result can be larger. Converting a JPEG photo to PNG can make it several times bigger, because PNG is lossless. The status line warns you when the output is bigger than the original.
- Metadata is not kept. The picture is redrawn and re-encoded, so camera, location and other embedded tags do not carry over. That makes it a way to drop EXIF; see removing EXIF and GPS data.
Batch, ZIP and compare
- Batch: add up to 30 images (25 MB each) and press Compress all. They are converted one at a time to keep memory low, and you see each file's before and after size and the total saving. Images above 100 megapixels are skipped with a message.
- ZIP: Download ZIP puts the converted images in one file, built on your device.
- Compare: a slider shows the original on the left and the converted picture on the right.
What it does not handle
Animated GIFs keep only their first frame. SVG files are not accepted, because they are already vector graphics: use the SVG Optimizer and read how to optimize SVG safely.
How to compress an image with the Image Compressor
- Open the Image Compressor & Converter.
- Choose an image, or several.
- Pick the format, quality, and maximum width or height.
- Compare sizes and the slider.
- Download the file or the ZIP.
To embed a small result straight in HTML or CSS, convert it with Image to Base64, and see Base64 explained for the size cost. To check which media type a format uses, see the MIME Type Lookup.
Limits to know
- If your browser cannot create a format, the tool says so rather than saving a different one.
- Quality re-encodes when you release the slider.
- Everything runs in your browser.
Frequently asked questions
Which image format is smallest? Usually WebP for photos, but test your image.
Does resizing reduce size more than quality? Yes, in most cases.
Why did my PNG get bigger? PNG is lossless, so photos can grow a lot.
Is EXIF kept? No, the new file has no embedded tags.
Is my image uploaded? No.