Image Compressor

Oversized photos slow pages down and get attachments rejected. This tool re-encodes an image at settings you choose, then shows the exact size difference so you can judge the trade-off.

Image CompressorRuns in your browser
Drop your image here or click to browse · JPG, PNG or WebP (max 25 MB)

Choose JPEG for photos, PNG for transparency or WebP for modern web use. If your browser cannot encode the chosen format, the tool saves the working format instead and tells you. Your image never leaves this device.

How to Use

  1. Drop a JPG, PNG or WebP onto the panel (up to 25 MB) or click to choose one.
  2. Set Resize (10–100%). It starts at 80%, scaling pixel dimensions down as well as re-encoding.
  3. Set Quality (10–100%) and choose an output format: JPEG, PNG or WebP. Quality is ignored for PNG because PNG is lossless.
  4. Compare Original, Output and Dimensions, check the preview, then Download compressed image. Reset restores the defaults.

Practical Examples

  • A 3 MB phone photo at 80% scale and 80% JPEG quality often lands well under 1 MB, with some loss of fine texture.
  • A transparent PNG logo saved as PNG keeps its alpha channel; saved as JPEG, transparent areas become white.
  • A text-heavy screenshot may grow after re-encoding. The tool reports the increase instead of claiming a saving.

Understanding the Result

Resize changes the pixel dimensions — 80% means 80% of the original width and height — which permanently removes detail. Quality controls how much detail the encoder keeps: lower values simplify colour and texture. PNG ignores quality because it stores pixels losslessly.

Format matters. JPEG suits photographs but has no transparency; PNG suits text, screenshots and alpha channels; WebP usually packs photographic detail efficiently. The tool checks the blob the browser actually produced, so if WebP encoding is unavailable it saves a PNG instead and tells you rather than misnaming the file.

The info line reports original size, output size, new dimensions and the percentage saved — or plainly says the output grew. The preview is the re-encoded image, not the source.

Limitations and Useful Notes

  • Outputs are limited to JPEG, PNG and WebP, and inputs must be JPG, PNG or WebP under 25 MB. Other formats are rejected before decoding.
  • Results vary by image. Detailed photos compress well; flat graphics, sharp text and already-compressed files may shrink little or grow.
  • Both sliders are destructive; scaling down and re-encoding cannot be undone in the output. Keep your original file.
  • JPEG flattens transparency onto white. Choose PNG or WebP if alpha channels matter.
  • EXIF metadata such as camera settings is not carried over, and one image is handled at a time. Very large images are limited by your browser's memory.
Privacy: The image is decoded and re-encoded on your device. It is never uploaded to a server.

Common Questions

Which formats can I open, and what do I get back?

The picker accepts JPG, PNG and WebP up to 25 MB. You choose JPEG, PNG or WebP as the output. If the browser cannot produce the selected format, the tool saves the format it actually produced and says so.

What if the compressed file is bigger?

The tool detects that case and marks the result as larger rather than reporting a false saving. Raise the quality, set Resize to 100%, try PNG or WebP, or keep the original.

Does lowering quality also change dimensions?

No. Dimensions come only from the Resize slider; quality changes encoding. Both are applied together whenever you move a control.

Can I keep transparency?

Yes — choose PNG or WebP as the output format. JPEG always flattens transparent pixels onto white.