Quality tried
q_k = round((b_min + b_max) ÷ 2)
If the size exceeds the target, b_max = q_k − 1; otherwise b_min = q_k + 1.
Optimize a JPEG, PNG or WebP image locally: choose the format, the quality or a target size, and compare the estimated size with the original.
Drop an image here
Add a PNG, JPEG, or WebP image. The file stays on your device and all edits run locally in your browser.
Need more editing options?
Use multiple editing tools in one workspace, with your open file and its current edits.
Open the full editorA camera photo often weighs several megabytes, far more than a web page, an email or a size-limited form needs. This optimizer re-encodes the image at the quality you choose or aims straight for a size in kilobytes, and shows the resulting size before you download, without uploading the photo.
Choose the Output format: Keep current format, PNG, JPEG, WebP, AVIF, BMP or GIF. For JPEG, WebP and AVIF, the Quality slider runs from 20 to 100% (82% by default); for PNG, BMP and GIF, which have no quality setting, a note says so. The Estimated size comes from actually encoding the image, with the change in percent compared with the original file.
The Target size (KB) field first shows the current size. Enter a lower value: the tool looks for the quality that comes closest in seven attempts, by halving the 20–100% range, then sets the slider and shows the size actually reached. The target only applies to JPEG, WebP and AVIF.
Dimensions do not change; to reduce the resolution, use the resizer first. AVIF, BMP and GIF use an FFmpeg module downloaded on first use. The file is saved with -edited added to its name.
Drop a PNG, JPEG or WebP photo or screenshot.
Choose WebP or JPEG for a photo, then adjust the quality or enter a target size.
Compare the estimated size with the original file, look at the preview, then download.
Quality is found by binary search: each attempt halves the remaining range, enough to cover 81 values in seven attempts.
q_k = round((b_min + b_max) ÷ 2)
If the size exceeds the target, b_max = q_k − 1; otherwise b_min = q_k + 1.
Δ = S_estimated ÷ S_source − 1
Negative when the optimised file is lighter.
Lighten the photos of an article or a shop so they load faster on mobile.
Bring a photo under the 500 KB required by an application form or an administration.
Reduce the size of screenshots and photos before archiving them or emailing them.
First attempt at round((20 + 100) ÷ 2) = 60%. If the file is too heavy, the upper bound becomes 59 and the next attempt is round((20 + 59) ÷ 2) = 40%; otherwise the search goes up. After seven attempts, the quality closest to 300 KB is kept.
Input
JPEG photo, WebP format, target size 300 KBResult
Quality adjusted automatically, then the size actually reached shown in the fieldPNG has no quality setting: to make it much lighter, switch to WebP, which keeps transparency and compresses large flat areas far better.
Input
1,920 × 1,080 px PNG screenshot, format keptResult
Quality disabled, "lossless format" noteQuality sets the compression level directly. Target size works the other way round: you give a size and the tool finds the quality that comes closest.
PNG is a lossless format: it keeps every pixel. To reduce its size significantly, convert it to WebP or JPEG.
No. The search tests seven qualities and keeps the closest; a very detailed image may stay above it even at 20%.
No. The optimizer only changes compression; use the resizer to reduce width and height.
A re-encoded image loses its EXIF metadata, including the GPS position. Use the metadata reader to check.
No. Every estimate and the final export are encoded in your browser.
Related tools
Tools similar or complementary to this one.
Convert an image to PNG, JPEG, or WebP and adjust output quality before download.
Resize an image by setting its exact width and height before downloading the result.
See a photo’s EXIF and GPS data, then download a copy that no longer contains it.
Resize, compress and choose between WebP, AVIF and other formats with a practical workflow that reduces file size without unnecessary visual loss.
Reduce image file size with appropriate dimensions, format, and controlled quality while avoiding unnecessary visible degradation.
WebP, AVIF and JPEG XL have different strengths. Compare compatibility, compression, transparency, HDR and fallback strategies in 2026.
Choose the right image format for photos, screenshots, transparent graphics, and interfaces without sacrificing quality or performance unnecessarily.