Guide1 min readUpdated September 1, 2026
How to compress an image to a target size
Short answer
Start by resizing oversized images, then export as JPG or WebP and lower quality until the file is under the target. Exact byte sizes cannot be guaranteed by browser encoders, so verify the output size.
Use dimensions before heavy quality loss
A huge photo can stay too large even at low quality. Reducing max width first usually preserves a cleaner-looking result than crushing quality alone.
- Enter the upload limitUse the KB or MB target from the form, marketplace, CMS, or social platform.
- Choose JPG or WebPPhotos normally compress smaller as JPG or WebP. PNG is best for sharp graphics but often stays larger.
- Check the previewIf the result is still too large, lower max width before accepting a blurry export.
Try it: Compress Image to SizeSet a KB or MB target and download the browser-generated result.Open tool
Try it: Image CompressorUse the general image compressor when you want batch compression instead of one exact target.Open tool