Image Compressor

Shrink, resize and convert images to WebP, JPEG or PNG — privately.

Runs in your browser Instant No sign-up
Format
Image
Compressed image

Paste, type or drop a file — output appears as you type.

Waiting for input
Processed locally · nothing is uploadedProcessed locally

How to use it

  1. Drop an image on the left pane, click it to choose a file, or paste a screenshot from your clipboard.
  2. Pick a Format (WebP, JPEG, PNG or the input’s own format), a Quality and a Max size.
  3. The result appears on the right, with the size before and after in the status bar. Click Download to save it; the file keeps your original name with the new extension.

The sample is this site’s 1200×630 social-preview JPEG. With the defaults (WebP, 80%) it goes from 44.7 KB to 21.1 KB (−53%), still 1200×630. Setting Max size to 400 px brings it down to 400×210 for thumbnails.

Resizing

Max size limits the longer side and keeps the aspect ratio, so a 4000×3000 photo at 1920 px becomes 1920×1440. Images are never enlarged. Most web layouts never show an image wider than 1920 px, and a phone needs even less, so resizing usually saves more than lowering the quality.

What happens to transparency

WebP and PNG keep transparent areas. JPEG has no transparency, so transparent pixels are filled with white rather than turning black. To check a logo before converting it, view it on the checkerboard background of the result pane.

Choosing settings for common cases

Use Format Quality Max size
Blog or article photo WebP 80% 1920 px
Product photo WebP 90% 2560 px
Thumbnail or avatar WebP 70% 400 px
Screenshot with text PNG — Original
Upload form that only takes JPEG JPEG 80% 1920 px

Why compress in the browser

Most online compressors upload your photo to a server, process it there and send it back. That is a privacy problem for screenshots of internal dashboards, scanned IDs or photos with GPS coordinates in their metadata. Here the browser’s own image decoder and encoder do the work in a background thread, so the page stays responsive and the file never leaves your machine. The trade-off is that you get the encoders your browser ships: WebP, JPEG and PNG everywhere, without AVIF output.

Checking the result

Compare the result with the original at 100% zoom rather than in the fitted preview, especially around text, sharp edges and smooth gradients, where compression artifacts show first. If you see banding in a sky or blocky edges around text, raise the quality one step or switch to PNG for that image.

To embed a small image directly in CSS or HTML, encode the result with Image to Base64. For SVG icons and logos, which are text rather than pixels, use the SVG Optimizer. Social preview images can be created with the OG Image Generator and compressed here.

Frequently asked questions

Are my images uploaded?

No. The image is decoded, resized and re-encoded by your own browser in a background worker. Nothing leaves your device, which is why it works offline once the page has loaded.

Which format should I choose?

WebP for the web: at the same visual quality it is usually 25–35% smaller than JPEG and supports transparency, and every current browser displays it. Choose JPEG when a system only accepts JPEG, and PNG for screenshots, diagrams or anything that must stay pixel-exact.

What quality setting is right?

80% is a good default for photos: differences are hard to see and files are much smaller. Go to 90–95% for product shots or images with fine text, and 60–70% for thumbnails. PNG is lossless, so the quality setting doesn't apply to it.

Does it remove EXIF and GPS data?

Yes. Re-encoding through a canvas keeps only the pixels, so camera metadata, GPS location and embedded thumbnails are dropped. The image is rotated according to its EXIF orientation first, so it still appears the right way up.

Why is the result bigger than my file?

The original was already compressed harder than the settings you picked, often a PNG of a photo saved as PNG again, or a JPEG at low quality re-encoded at a higher one. The tool warns when this happens; try WebP, a lower quality or a smaller maximum size.

Can it make AVIF files?

Not yet. Browsers can display AVIF but don't expose an AVIF encoder to web pages, and adding one would require WebAssembly. AVIF input files are accepted and can be converted to WebP, JPEG or PNG.

Last updated