Free image and GIF compressor
Choose an image or GIF up to 60 MB (common image/* types plus .heic / .heif / .tif / .tiff when MIME is missing). Decoding, scaling, and re-encoding stay in this tab. Safari may open HEIC natively; other browsers fall back to a bundled HEIC decoder. TIFF uses a first-page decoder. JPEG and WebP use lossy quality; PNG is lossless on the scaled bitmap and keeps alpha. GIF input can be re-encoded as an animated GIF in-browser, with a frame cap to protect memory.
How to use this tool
- 1
Open Image & GIF compressor
Use it for this task: PNG, JPEG, WebP, animated GIF, HEIC/HEIF, TIFF compression, high-fidelity output, lossless PNG, no upload.
- 2
Choose an image file
Drag an image into the upload area or click the button, then adjust the image options shown on the page.
- 3
Download or copy the image result
Preview the processed image first, then download it or copy it when the tool supports copying.
Quick facts
| Runs offline? | Yes — after this script loads, decoding and encoding use only your browser. |
|---|---|
| Upload to a server? | No. Safe Local Tools is static; bytes stay in this tab. |
| Transparency? | JPEG flattens transparent areas to white. WebP and PNG keep alpha through the canvas when your browser supports it. |
| Animated GIF? | Choose GIF output to re-encode the full animation in-browser (frame cap). Other formats decode the first frame only for preview. |
Top use cases
- PNG, JPEG, WebP, animated GIF, HEIC/HEIF, TIFF compression, high-fidelity output, lossless PNG, no upload.
- Runs offline?: Yes — after this script loads, decoding and encoding use only your browser.
- Upload to a server?: No. Safe Local Tools is static; bytes stay in this tab.
- Transparency?: JPEG flattens transparent areas to white. WebP and PNG keep alpha through the canvas when your browser supports it.
- Animated GIF?: Choose GIF output to re-encode the full animation in-browser (frame cap). Other formats decode the first frame only for preview.
FAQ
Why is WebP disabled?▾
Some browsers cannot export WebP from an HTML canvas. When disabled, use JPEG or PNG, or try another browser.
Will this always reduce file size?▾
Not guaranteed — PNG is often larger than a small JPEG. Very small inputs may grow when re-encoded. Check the size line before downloading.
Can I compress HEIC from iPhone?▾
Yes in most cases: Safari often decodes HEIC natively; Chromium-based browsers fall back to an in-page HEIC decoder after the native path fails. If both fail, export to JPEG in Photos.
Does EXIF orientation apply?▾
createImageBitmap typically applies orientation metadata, so the preview should match what you see in a gallery.
Any resolution or memory limits?▾
File size can be up to 60 MB, but decoded pixels matter more: outputs above about 32 megapixels are blocked and the long-edge slider caps dimensions. Multi-page TIFFs use page 1 only. Some TIFF modes (CMYK, 16-bit) may fail — export RGB 8-bit TIFF or PNG if decoding errors. If the tab slows down, lower the longest edge.
Is PNG lossless? Are JPEG and WebP lossy?▾
PNG output here is lossless relative to the scaled RGBA bitmap (no extra JPEG-style loss). JPEG and WebP use lossy encoders — pick them for smaller files, PNG when you need transparency or maximum fidelity at the cost of size. GIF output re-encodes GIF input as an animated GIF in-browser when it is within the frame cap. Downloads are never saved as HEIC, TIFF, or the original container type unless you explicitly choose GIF output for a GIF.