Image Compressor
Compress JPEG, PNG, GIF/APNG, WebP, AVIF, JPEG XL, SVG, HEIC, TIFF and BMP images locally. Resize, compare results, and download files or ZIP.
On this page
Reduce image file sizes with a browser-based image compressor. Choose a format and quality, optionally resize the longest edge, compare each result, then download individual images or a ZIP. Use Reset tool to restore the defaults and clear the current files. Your image files are processed on your device and are not uploaded.
Image compression examples
- Choose WebP for
photo.jpg, set quality to 82%, and limit the longest edge to 1600 px. The download is namedphoto-compressed.webp. - Choose PNG for
logo.pngto keep lossless output and transparency. The quality slider is disabled for PNG. - Choose JPEG for
graphic.pngto create a JPEG with transparent areas flattened to white. - Choose JPEG XL for
landscape.pngto create a quality-adjustable.jxldownload, or choose SVG for an SVG input to optimize its markup. - Choose GIF for a still image to create a palette-based
.giffile. For an animated GIF or APNG, choose GIF or APNG output to keep its frames when supported by the browser.
How to use Image Compressor
- Choose, drop, or paste one or more supported image files.
- Select WebP, JPEG, PNG, AVIF, JPEG XL, GIF, or APNG output. Set a quality level for lossy formats and optionally choose a maximum long edge. APNG output is enabled for animated GIF/PNG batches. SVG output optimizes SVG input without rasterizing it.
- Select Compress images to process the files in your browser.
- Review the before-and-after previews and file sizes. Download a result individually or download all successful results as a ZIP.
Supported formats and limits
The tool accepts JPEG, PNG/APNG, WebP, GIF, BMP, AVIF, JPEG XL, HEIC/HEIF, TIFF, sanitized SVG, and ICO files when the browser or on-demand decoder can read them. Output formats are WebP, JPEG, PNG, AVIF, JPEG XL, and GIF; animated GIF or PNG inputs can also be encoded as APNG when browser frame decoding is supported. SVG input can be optimized as SVG. TIFF uses its first grayscale or RGB page. GIF/APNG animation output is limited to 100 frames and 15 megapixels total after resizing; other output formats use the first frame. Each file can be up to 10 MB, a batch can contain up to 20 files, and raster images are limited to 30 megapixels per frame.
Compression settings
Quality controls apply to WebP, JPEG, AVIF, JPEG XL, GIF, and APNG. GIF and APNG use palette colors; GIF output has no dithering and can show banding in photographs. PNG uses lossless encoding and SVG is optimized as vector markup, so the quality slider is disabled for those formats. JPEG output uses a white background where the source has transparency. You can limit the longest edge without enlarging smaller images. Raster re-encoding removes embedded metadata. Compression does not guarantee a smaller file, so compare the displayed sizes. Apache-2.0 jSquash AVIF and JPEG XL codecs, MIT gifenc 1.0.3 (experimental), MIT @upng/upng-js 2.2.2, LGPL-3.0 heic-to, MIT tiff, Apache-2.0 or MPL-2.0 DOMPurify, and MIT SVGO code load only when needed. Image files stay in this browser; only codec code is downloaded.
Private, on-device image compression
Image decoding and compression happen locally with browser image and canvas features. SVG content is sanitized before preview or conversion; scripts, active content, and external resource references are removed. The tool does not send your images to a server. Format support depends on the browser; if a file cannot be decoded or an output format is unavailable, choose another supported format or browser.