Compress Image

Compress images in your browser with a live quality slider and side-by-side size comparison. Free, unlimited, and never uploaded.

Runs entirely in your browser — no uploads

About this tool

Compress Image shrinks a JPG, PNG, or WebP picture by decoding it to a canvas and re-encoding it at a quality you choose, with the original and compressed sizes shown side by side before you download. This is a practical step whenever a photo is too big to email, upload to a job portal, publish on a web page, or send in a chat app.

How to use it

Drop in one image (up to about 50 MB). The panel shows the original size and the compressed size as you move the quality slider, so you can trade file size against visible quality in real time. Optionally enable Resize to cap the width in pixels — scaling down also cuts size. Choose JPEG or WebP output, then download the result.

What happens under the hood

Your image is decoded into a canvas and re-encoded with the browser’s built-in encoder at the selected quality. PNG input is flattened onto white, or kept transparent where the output format allows it (WebP preserves alpha; JPEG does not). Photos typically shrink 60–90% at medium quality because they contain smooth gradients that compress well; flat graphics with sharp edges compress less.

Limitations and edge cases

Quality is a trade-off: low settings create small files but visible artifacts, especially around text and edges; 0.6–0.8 is usually indistinguishable from the original on screen. Re-encoding also strips metadata such as EXIF, which is good for privacy but removes camera info. Animated images are not supported — only the first frame is processed. If a file is already aggressively compressed, you may see little gain; compare sizes before downloading.

Practical example: a phone photo from a recent trip is 8 MB, but a job portal allows at most 2 MB. Open the photo here, drop quality to medium, optionally resize to 1600 px wide, and watch the live size readout until it fits under the limit — then download and upload with confidence.

For email, most providers reject attachments above 25 MB, so compressing a handful of photos before attaching them avoids bounced messages. For web publishing, a compressed WebP often looks identical on screen while weighing a fraction of the original JPG, which keeps pages fast.

Privacy: decoding and encoding happen entirely on your device via the Canvas API. Your photo is never uploaded or stored, and the tool works offline once loaded.

Related: Convert Image Format · Resize Image · Crop Image · guide: Choose JPG, PNG, or WebP · article: Preparing images for email, job portals, and the web

Free · no account No file uploads Works on mobile Supports .jpg, .jpeg, .png, .webpUp to 50 MB per file

FAQ

How much smaller will my image get?
Photos typically shrink 60–90% at medium quality. Flat graphics compress less; try WebP output for the biggest savings on most content.
What does the quality slider mean?
It maps to the encoder’s internal quality value. Lower numbers mean smaller files and more artifacts; 0.6–0.8 is usually visually indistinguishable from the original.
Can I resize while compressing?
Yes — enable “Resize” and set a maximum width in pixels; height scales proportionally, which also cuts size further.
Does compression remove metadata?
Yes. Re-encoding strips EXIF and other embedded metadata, which is often desirable before sharing. If you need to keep camera details, work from the original file instead.
Why does my PNG come out bigger?
PNG is lossless, so re-saving it rarely saves space. Convert to JPEG or WebP for a real reduction; if you must keep PNG, consider resizing instead.
Can I compress several images at once?
This tool handles one image at a time. For batch work, run each file through the same settings in turn.