🗜️ Compress an image to 1MB
How it works in your browser
To hit 1MB, the tool re-encodes your image several times at different quality settings and runs a binary search: each pass picks a quality level, measures the resulting file size, then narrows in until it lands the highest quality that still stays at or under 1MB. If even the lowest quality is still too big, it keeps the smallest version it could make. All of this happens in a background worker on your device.
How target-size compression works
To hit 1MB, the tool re-encodes your image several times at different quality settings and runs a binary search: each pass picks a quality level, measures the resulting file size, then narrows in until it lands the highest quality that still stays at or under 1MB. If even the lowest quality is still too big, it keeps the smallest version it could make. All of this happens in a background worker on your device.
A 1MB target is roomy, so even large, detailed photos should fit with little or no visible loss. Use it for upload limits that allow bigger files.
You can output JPEG or WebP. WebP generally reaches a given target at higher visual quality than JPEG, so it is the better pick for hitting 1MB when your destination accepts WebP; choose JPEG when you need maximum compatibility.
How to compress to 1mb
- Drop your image (or click to choose).
- Click Compress to size - we search for the best quality under 1MB.
- Download the result, created locally.
FAQ
Are my files uploaded anywhere?
No. The whole process runs inside your browser. Your images never leave your device and nothing is sent to a server.
How do you compress to exactly 1MB?
The tool repeatedly re-encodes the image at different quality levels and keeps the best one that stays at or under 1MB.
Will quality drop?
It picks the highest quality that still fits your target size. Smaller targets mean more compression, so set a realistic size for your image.