Skip to content
HG

Image Compressor

Shrink JPEG, PNG and WebP images with a live quality preview, compressed entirely in your browser.

Runs entirely in your browser. Nothing is uploaded.

Share this tool

Smaller images mean faster pages and better Core Web Vitals. This tool re-encodes your image locally using your browser's own canvas engine, so you can drag the quality slider and watch the file size respond in real time. No upload, no waiting.

Converting photos to WebP typically saves 25-35% over JPEG at the same visual quality. As a bonus, re-encoding strips hidden EXIF metadata such as GPS location. If you want to remove metadata without touching the pixels, try the Metadata Stripper.

Frequently asked questions

Are my images uploaded to a server?

No. Compression happens entirely in your browser using the built-in canvas engine. The image never leaves your device, which also means there are no upload queues, size quotas, or daily limits.

What quality setting should I use?

0.7-0.85 is the sweet spot for photos: significant size savings with no visible difference at normal viewing sizes. Drop lower for thumbnails; use 0.9 or above for images with fine text or sharp edges.

Why didn't my PNG get smaller?

PNG is a lossless format, so the quality slider doesn't apply. To shrink a PNG, either reduce its dimensions or convert it to WebP or JPEG. Note that JPEG doesn't support transparency, so transparent areas are flattened to white.

Does compressing remove metadata like GPS location?

Yes. Re-encoding through the canvas drops EXIF data, including GPS coordinates and camera details. If you only want to remove metadata without re-compressing the pixels, use our Metadata Stripper instead.

More free tools

Get new tools first

One email when a new tool ships. No spam, unsubscribe any time.

Need this built into your product?

HG Studio builds custom tools, automations, and web apps. Let's talk.

Work with HG Studio