What it does
Choose an image, pick an output format and quality, and optionally set a maximum width or height. The image is redrawn by your browser at the new size and re-encoded, and you can compare file sizes before downloading.
Which format?
- JPEG is best for photos and is supported everywhere. Transparent areas are filled with the background color you choose.
- WebP is usually smaller than JPEG at similar quality and supports transparency.
- PNG is lossless, so quality does not apply. It suits screenshots, logos and graphics with sharp edges.
- AVIF is listed only when your browser can create AVIF files from an image. Many browsers cannot yet, and then it does not appear.
Tips
- Lowering the dimensions saves far more space than lowering quality. Photos straight from a phone are often much larger than any screen needs.
- Images are never enlarged. Animated GIFs keep only their first frame, and SVG files are not supported because they are already vector graphics.
Several images, ZIP and comparison
- Batch. Use “Several images at once” to add up to 30 images (25 MB each). Press Compress all and they are converted one at a time with the format, quality and size options above, so memory use stays low. You see the size before and after for each file and the total saving, and you can remove a file from the list before starting. Images above 100 megapixels are skipped with a message; convert those one by one above.
- ZIP. Download ZIP puts the converted images in one file. The files are stored without further compression (they are already compressed), each has a CRC-32 check, and duplicate names get a number. The ZIP is built on your device.
- Compare. After converting, a slider shows the original on the left and the converted picture on the right. It works with the arrow keys, Page Up, Page Down, Home and End, and by dragging on the picture. Very large pictures are drawn smaller for the comparison only; the files themselves are not changed.
Example and what to expect
A 1200 × 800 px photo of about 700 KB re-encoded as JPEG at 80% came out near 315 KB, at 50% near 160 KB and at 10% near 38 KB in testing, while setting the maximum width to 400 px brought it down to roughly 15 KB. Results depend on the picture, and the page shows the original and new sizes so you can judge the trade-off before you download. The quality slider re-encodes when you release it.
- The result can be larger. PNG is lossless, so converting a JPEG photo to PNG can make it several times bigger. When the output is larger than the original the status line warns you.
- Metadata is not kept. The picture is redrawn and re-encoded, so camera, location and other embedded tags do not carry over to the new file.
- Max width and height keep the aspect ratio and only shrink an image, never enlarge it.
- Browser support. If your browser cannot create a format, such as WebP in some older browsers, the tool says so instead of saving something else.
SVG files are not accepted here; the SVG Optimizer is the tool for those. To embed a small image directly in HTML or CSS, convert the result with Image to Base64, and to check which media type a format uses, see the MIME Type Lookup.
Privacy
This tool runs entirely in your browser. Files you choose are read on your device and are never uploaded.