Set a target in KB or MB — our binary search algorithm automatically finds the highest JPEG quality that fits. No slider guessing. Runs entirely in your browser with zero uploads.
Binary search finds the optimal quality automatically. Processed 100% in your browser.
Drop your JPEG, PNG or WebP file. The image loads into browser memory — nothing is transmitted.
Enter the maximum file size in KB. Common targets: 200 KB (web), 500 KB (email attachment), 2000 KB (MLS listing). Quick preset buttons apply these instantly.
The tool runs 14 iterations, each halving or doubling the quality to rapidly converge on the highest quality that produces a file within your target.
Click Compress & Download. The result panel shows your original size, compressed size, savings percentage, and JPEG quality level achieved.
| Platform / use case | Recommended max size | Notes |
|---|---|---|
| Gmail attachment | 500 KB per image | 25 MB total per email |
| Outlook attachment | 500 KB per image | 20 MB total limit |
| WhatsApp image | 1 MB | Compressed further on send — start higher quality |
| Zillow / MLS listing | 2 MB per photo | Use 2 MB preset |
| Amazon product image | 2 MB recommended | 10 MB technically allowed |
| Shopify product | 1 MB recommended | 20 MB limit — small images load faster |
| WordPress upload | 500 KB–1 MB | Default limit often 2 MB; compress before upload |
| Web page hero image | 200 KB | Under 200 KB = fast LCP (Core Web Vitals) |
| Pinterest pin | 500 KB | Smaller files load faster in feed |
| Instagram post | 1 MB | Instagram re-compresses on upload anyway |
Instead of one quality setting, the algorithm runs 14 compressions — each halving or doubling the quality based on whether the result is above or below your target. This guarantees the highest possible quality within your limit.
Manual quality sliders (like Photoshop "Save for Web") require trial and error. The algorithm converges automatically — no guessing required.
Each iteration runs in the browser using the Canvas API. 14 iterations on a 10 MB image typically completes in under 2 seconds with no network latency.
Tools like TinyPNG, Squoosh (Google), and most cloud compressors upload your image to their servers. myPixelVault compresses entirely in your browser — your image data never leaves your device.