Image Compressor Online
Re-encode a JPG, PNG or WebP at its original dimensions, requesting WebP output. Compare measured sizes before downloading; a smaller file is not guaranteed.
The compressor keeps the original dimensions and requests WebP output. Browser fallback and file-size growth are reported above.
Your image is processed locally in this browser.
Before you start
- Choose one valid JPG, PNG or WebP up to 20 MiB. The same 8192-side and 24-million-pixel bounds apply.
- Adjust quality from 20–100; High quality is 90, Balanced is 75, and Smaller file is 50. The initial setting is 80.
How to use the Image Compressor Online
- Choose one valid JPG, PNG or WebP up to 20 MiB. The same 8192-side and 24-million-pixel bounds apply.
- Adjust quality from 20–100; High quality is 90, Balanced is 75, and Smaller file is 50. The initial setting is 80.
- Press Compress image and inspect sharp edges, faces and small text in the preview. This is lossy WebP encoding; 100 is not a lossless guarantee.
- Compare original and output byte sizes. The result reports larger files honestly and identifies a browser format fallback. Download uses compressed-image with the actual extension.
File handling and privacy
The inspected processing code reads selected files in browser memory and has no file-upload request. The page and decoder assets still load over the network. This does not guarantee what third-party scripts, browser extensions or a compromised device can access. Canvas output does not intentionally copy source EXIF, GPS, camera tags or color profiles; do not rely on this as certified metadata sanitization. Check orientation, colors and the downloaded file before sharing.
Browser and memory limits
One file at a time, using the file picker; no dedicated drag-and-drop, batch export, crop, positioning, rotation or clipboard controls. Browser image decoding and canvas encoding must be available. Decoded images and canvases use much more memory than compressed input bytes. A 4000 × 3000 RGBA buffer alone is about 48 million bytes, before extra copies. The dimension guard is 8192 pixels per side and 24 million pixels, checked after decoding; it cannot prevent every decode-time memory failure.
Examples
Compare a useful saving
An 800000-byte source becoming 300000 bytes is 62.5% smaller. This is arithmetic, not a compression benchmark.
Recognize growth
A 100000-byte input becoming 120000 bytes is 20% larger. Keep the original if the new file offers no benefit.
Frequently asked questions
Will compression change dimensions?
No. This compressor keeps decoded source dimensions. Use Image Resizer first when the image contains more pixels than needed.
Can it hit a 100 KB limit?
It has a quality slider, not a byte target. Use Compress Image to KB for a bounded quality-and-size search.
Will transparency survive?
WebP and PNG can represent alpha, and this drawing path keeps alpha. Check semi-transparent edges in the downloaded result. JPEG input has no alpha to recover.
Why might the output be PNG?
Browsers may return PNG when the requested WebP encoder is unavailable. The displayed format and download extension follow the returned Blob type.
More image tools
Image Resizer
Resize JPG, PNG and WebP by pixels or percentage. Keep the source ratio or set exact dimensions, then compare JPG, PNG or WebP output.
Open tool →Compress Image to Target KB
Try a JPEG quality and dimension search for a target KB limit. Accepts JPG and PNG; reports missed targets and fills transparency white.
Open tool →WebP to PNG
Convert one still WebP image to PNG with alpha support. Retain decoded dimensions and understand why output size may increase.
Open tool →HEIC to JPG
Try HEIC/HEIF to JPEG conversion with heic2any in the browser. Review codec limits, quality, metadata and single-image output.
Open tool →WebP to JPG
Convert one still WebP image to JPEG with adjustable quality and a white background. Check dimensions, byte size and browser support.
Open tool →Aspect Ratio Calculator
Simplify a pixel width-to-height ratio and calculate the rounded height for a new width. Includes portrait and landscape examples.
Open tool →