Skip to main content

Image Compressor

Compress and convert JPEG, PNG, WebP, GIF, and BMP images in your browser, and export to WebP, JPEG, PNG, or AVIF. AVIF is output-only and needs browser support. Images stay on your device.

Compression happens in your browser using WebP, JPEG or PNG encoding, so the file never reaches a server. A quality setting near 80 usually keeps visual differences imperceptible while removing half the bytes.

Tool workspace

Settings

Size goal
Size

Nothing compressed yet

Add images above or paste them from the clipboard, then press Compress Images. Each result gets a before/after slider so you can compare quality and file size side by side. Nothing is uploaded.

Images processed locally in your browser. No upload to servers.

Fixed size targets

Open a target page with the size already selected.

Convert a specific format
Reference: a real run, the parameters, and the failure modes

Worked example

Any 3000 x 2000 JPEG at the default settings

Input

File: any 3000 x 2000 JPEG
Pixels: 3000 x 2000
Size: 743 KB (760,856 bytes) in this run
Settings: quality 80, long edge 1920, output original (JPEG)

Output

File: compressed copy
Pixels: 1920 x 1280
Size: 251 KB (256,619 bytes) in this run
Savings: 66 percent

How to verify: The byte counts come from one Chromium run on 2026-11-03 with a particular photo, so they are not a promise for every 3000 x 2000 JPEG. Load any 3000 x 2000 JPEG, compress it at quality 80 with the long edge at 1920, and check the pixel size in any image viewer. The page reports its own before and after sizes; JPEG encoding is browser-dependent, so another build can differ by a few kilobytes. The built-in sample is 1280 x 960, so use your own 3000 x 2000 file to match this walkthrough.

Parameters

Parameters
ParameterValueDefaultBound
Input formatsJPEG, PNG, WebP, GIF, BMP—10 MB per file; HEIC and AVIF input are not accepted
Output formatsOriginal, WebP, JPEG, PNG, AVIFOriginalAVIF falls back to PNG when the canvas encoder is unavailable
Quality5 to 100 in steps of 580Ignored for PNG output, which is lossless
ResizeOriginal, long edge, percent, boxLong edge 1920 pxLong edge 640-3,840 px; percent 5-100; box 64-7,680 px
Target size1 to 10,240 KBOffBinary search adjusts quality; a target below the encoder floor can be missed
BatchSeveral files—Results download as one ZIP

Failure checklist

Failure checklist
SymptomLikely causeWhat to do
The output is larger than the input.The source was already compressed, or PNG output is lossless.Lower quality or resize; expect little gain on optimized JPEGs.
AVIF is selected but the download is PNG.The browser canvas cannot encode AVIF, so the page falls back to PNG.Use WebP or JPEG, or convert AVIF outside the browser.
An iPhone HEIC file is rejected.HEIC is not in the input allow-list.Export the photo as JPEG first.
Transparency turns black or white in JPEG.JPEG has no alpha channel and the canvas flattens it.Keep PNG or WebP when transparency matters.
The target size is missed.The requested KB is below what the encoder can reach at quality 5.Raise the target, allow resizing, or accept the closest result.
Common Use Cases
  • 1Shrink photos before uploading them to websites or email
  • 2Convert WebP images to JPEG or PNG for broader compatibility
  • 3Reduce image weight on blog pages to improve Core Web Vitals
  • 4Prepare product images that fit marketplace file size limits
  • 5Turn GIF or BMP files into WebP without leaving the browser

Frequently Asked Questions

Where does image compression happen?

In your browser. Images are compressed and converted locally without being uploaded.

Which output formats are supported?

JPEG, PNG, WebP, and AVIF: pick the output format explicitly, or keep the input format, with configurable quality and maximum dimensions. AVIF is output-only: it depends on the browser's canvas encoder and falls back to PNG when it is unavailable. Accepted inputs are JPEG, PNG, WebP, GIF, and BMP, so convert an AVIF file before uploading it.

Can I compress multiple images?

Yes. Select several files at once and download the results together as a single ZIP archive.

Can I compress an image to an exact file size?

Yes. Set a target in kilobytes and the compressor adjusts quality with a binary search until the file fits under that target — useful when an upload form rejects files over a fixed limit. If the target cannot be reached, the result is marked as missed instead of silently returning an oversized file.

Does compression keep EXIF orientation and transparency?

Orientation is applied before resizing, so portrait photos stay upright. Transparency is preserved when the output format supports it (PNG or WebP); JPEG has no alpha channel, so transparent areas are flattened. Other EXIF metadata such as camera model or GPS location is not copied into the re-encoded output.

Related Guides

Related Tools

Encryption background on zeyrovault.com

Your inputs remain on your device.

You are responsible for key management and output validation.