Compress and resize a photo locally
When a JPG, PNG, or WebP is too big for email or a form, and what browser compression can and cannot promise.
What the format is
JPEG and WebP are lossy formats: they throw away detail to save bytes. PNG is lossless: it keeps pixels and usually stays large for photographs. “Compress” on this page means decode the image, optionally shrink the longest edge, and encode a new file at a quality you pick. The before/after numbers are the real byte sizes of those two files, not an estimate from the filename.
GIF and BMP can be opened as stills. A GIF animation is not preserved; the canvas path keeps a single frame.
When to use this tool
- Use it when an email bounces, a job form caps attachments around a few megabytes, or a CMS rejects a camera original. Shrinking the longest side (for example to 1920 pixels) usually matters more than chasing the last percent of quality.
- Do not use it as your only privacy step. Re-encoding tends to drop EXIF, but this page does not show you the GPS report. If location tags are the problem, use the stripper and read the report.
What local processing can do
- Open JPG, PNG, WebP, GIF, and BMP that your browser can decode, resize so the longest edge fits a limit you set, and encode JPG, PNG, or WebP.
- Show input bytes, output bytes, and the difference after the encode finishes, so you can try another quality if the file is still too big or looks soft.
- Keep the work on-device. The image is not uploaded.
What it cannot do
- It cannot compress an image without any quality tradeoff if you also need it much smaller. Very high JPEG quality, or PNG of a photo, can come out larger than the source.
- It does not accept HEIC or AVIF. Convert those to JPG or PNG first.
- WebP output depends on the browser. If this browser cannot encode WebP, pick JPG or PNG.
- Animated WebP and animated GIF become a still. Transparency in a JPEG is flattened onto white, because JPEG has no alpha channel.
- It does not batch a folder, and it does not promise a specific kilobyte target. You adjust quality and dimensions until the report fits.
FAQ
Why would the “compressed” file be bigger?
A PNG photo, or a JPEG saved near 100% after an extra decode, can grow. Lower the quality, or reduce the max edge, and convert again. Trust the size report on the page, not the hope that every pass shrinks.
Does compress remove the address in the photo?
A new encode usually omits the old EXIF block, but this tool does not display tags and is not the privacy checker. Run the EXIF / GPS stripper when you need to see whether GPS was present.
Will text in a screenshot stay sharp?
PNG or a high JPEG quality keeps UI text cleaner. Heavy JPEG compression smears small type. For screenshots, prefer PNG or a modest resize instead of a very low quality.
Is there a server I can fall back to for huge files?
No. There is a soft size guard so a huge image does not freeze the tab. If the file is over that guard, the page refuses it rather than uploading it.