Image Compressor — Resize, Quality & Target Size Local
Compress photos in your browser with max dimension, quality, and optional target KB. Steps: choose an image, set resize/quality or a size cap, then download WebP or JPEG. Example: shrink a phone JPEG toward ~200 KB for email — files stay on your device; EXIF is usually dropped by re-encode.
How it works
Pick a photo, optionally cap the longest side, set quality or a target KB, and choose WebP/JPEG/PNG. The page decodes pixels here, scales down if needed, draws on a canvas, then encodes with toBlob. For a size cap it searches quality downward. Re-encoding usually removes EXIF.
Rules you should expect
Three knobs do different jobs. Use this checklist before you chase a tiny target size.
- Longest side: scales down proportionally; never upscales in this tool. Smaller pixels often cut bytes more than quality alone.
- Quality (JPEG/WebP): maps to the encoder’s lossy setting. PNG ignores quality. WebP/JPEG usually beat PNG for photos.
- Target KB: binary-search quality down to 0.5. If still too large, you get the smallest attempt plus a clear miss warning — not a fake “success”.
- Privacy & metadata: bytes stay in this tab. Canvas export typically drops EXIF; use the EXIF tool if you need to inspect tags first.
Example
A ~4 MB phone JPEG with longest side 1920 and WebP quality ~0.8 often lands in the hundreds of KB (range varies by content). Enable a 200 KB target to iterate quality; if the floor still exceeds 200 KB, you see a miss warning with the closest file. Transparent PNG → JPEG uses your chosen matte.
Good fits
- Web delivery: shrink hero or product photos before CMS/CDN upload.
- Email or forms: aim near an attachment size limit with the target KB control.
- Social posts: cap longest side and lower quality to reduce failed uploads.
Frequently asked questions
Does my image leave the browser?
No. Decode, resize, and encode run locally. Confirm in DevTools Network that the image is not POSTed.
Can I always hit any target KB?
No. Already-small or noisy photos have a floor. We stop at quality 0.5 and warn if the target is still missed.
Why is PNG still large?
PNG is lossless. For photos, switch to WebP or JPEG. PNG is better when you must keep sharp UI with alpha.
Will EXIF survive?
Usually not. Canvas re-encode drops metadata. Inspect or strip deliberately with the EXIF tool if needed.
How is this different from the format converter?
Format converter focuses on changing MIME with transparency rules. This page focuses on smaller files via resize, quality, and target size.
Questions or feedback
Something unclear, broken, or missing? Draft a message below — we read every note about these tools.