Image Compressor

Compare browser-side JPEG, PNG and WebP encoding with quality controls, size comparisons and local previews. No image upload required.

Local processing only: no server upload. JPEG, PNG or WebP; maximum 10 MiB, 12 megapixels and 8,192 px per side. Animated images are rejected.

PNG ignores quality. JPEG flattens transparency onto white. Dimensions and aspect ratio are preserved; browser decoding may apply image orientation. Exported metadata is not preserved.

How to use Image Compressor

Compare an image with a browser-encoded copy before downloading it. Quality controls can reduce JPEG or WebP size, while PNG uses lossless pixel encoding. File size depends on the source image and browser encoder, so a new file is not always smaller.

  1. Choose a still JPEG, PNG or WebP file within the displayed file and dimension limits.
  2. Select an output format and, for JPEG or WebP, a quality level. Choose Compress image to produce a new preview.
  3. Compare the byte counts and reduction label. Download the output only if it suits your needs, or keep the original when the output is larger.

Privacy and limitations

  • Files never leave the browser through this tool. Header checks reject unsupported signatures, oversized dimensions and animated PNG/WebP before decoding. Corrupt files can still fail at browser decode time.
  • Limits: 10 MiB per file, 12 million pixels and 8,192 px on either side. Only one conversion runs at a time; decoded bitmaps, canvas buffers and replaced object URLs are released. Lower-memory devices may need smaller inputs.
  • JPEG and the selected WebP encoder are lossy even at high quality. PNG ignores the quality control and preserves the decoded pixels; it is not a promise of smaller size or preservation of the original file bytes.
  • Dimensions and aspect ratio remain unchanged after browser orientation handling. JPEG flattens transparency onto white; PNG and WebP support transparency. Metadata and original color-profile handling may change during canvas export.
  • The requested MIME type is verified after encoding. A browser that cannot encode WebP shows an error rather than returning a disguised PNG. Output that is equal or larger is explicitly labeled as no size reduction.

Processing uses browser memory only. Nothing you enter is sent to a conversion service or stored by these tools. Downloads are saved by your browser, and copied results remain on your clipboard until replaced.

Practical examples

Prepare a camera photograph

Input
A still JPEG, JPEG output at 75% quality
Result
A new JPEG with the same oriented dimensions; measured byte counts show whether it is smaller.

Photographs often tolerate lower quality, but inspect fine details and text before using the result.

Keep a transparent logo

Input
A transparent PNG, PNG output
Result
Lossless encoding of decoded pixels with transparency; quality is disabled.

PNG may grow because browser encoding is not a dedicated PNG optimization pass.

Compare a web image format

Input
A PNG photograph, WebP output at 80% quality
Result
A WebP preview if the browser supports encoding it, otherwise a clear error.

Choose based on the actual result, not an assumed percentage saving.

Frequently asked questions

Are my photos uploaded to an external server for compression?

No. All image compression and format conversions run 100% locally in your web browser using HTML5 Canvas and native Web APIs. Your images and personal photos never leave your device and are never sent over the network.

Why does compressing a PNG image sometimes make the file size larger?

PNG is a lossless format. While dedicated CLI tools use specialized indexed color quantization and aggressive zlib compression dictionaries, standard browser canvas encoders only re-encode the raw bitmap data, which can occasionally result in a larger file than an already optimized source PNG. For photos, converting to WebP or JPEG achieves much greater size reduction.

Does compressing an image strip EXIF metadata and GPS location tags?

Yes. When an image is decoded onto the browser canvas and re-encoded into a new JPEG, PNG, or WebP blob, camera metadata, color profile tags, and EXIF GPS coordinates are omitted by the browser encoder, protecting your privacy before sharing.

Related tools