Basic Edit
Server In-Memory (Not Stored)

Compress

Compress a JPEG, PNG, WebP, or AVIF image in volatile server memory using Sharp with a 10%–100% quality slider.

Last updated:

Settings

80%
SMALL FILEBEST QUALITY

Higher quality means larger file size. For web use, 70-80% is usually the sweet spot.

Compress Overview

Shrink oversized JPEG, PNG, WebP, and AVIF images quickly while checking output byte weight directly against the original.

Upload a single image, choose a Target Quality level between 10% and 100%, and submit to Imgira's /api/compress endpoint powered by Sharp (libvips). JPEG, WebP, and AVIF apply quality-based lossy encoding, while PNG maps your setting onto Sharp's compressionLevel (0–9). Uploaded buffers stay strictly in volatile server RAM and are never saved to disk.

Processing Engine

Server-side Sharp (libvips) compression endpoint (/api/compress).

Supported Inputs & Outputs

Input & output: JPEG, PNG, WebP, AVIF (preserves uploaded format).

Limits & Edge Cases

Compresses one image per run with a 10%–100% quality slider (use Bulk Compressor for multi-file ZIP batches); uploaded files are processed in RAM and discarded.

Supports JPEG, PNG, WebP, and AVIF formats
Target Quality slider from 10% to 100% (70%–80% recommended for web)
Before/after file size readout and preview comparison
In-memory Sharp (libvips) encoding with zero disk retention

Compressing an Image

Step 1

Drop a JPEG, PNG, WebP, or AVIF image into the upload box.

Step 2

Adjust the Target Quality slider between 10% and 100% (default 80%).

Step 3

Click 'Compress Now' and download the smaller file.

Image Compressor FAQ

How does the quality slider affect PNG vs. JPEG/WebP/AVIF files?

For JPEG, WebP, and AVIF, the slider (10–100%) sets encoder quality directly. For PNG, Sharp converts the percentage into lossless zlib compressionLevel (0–9), reducing byte weight without discarding pixel values.

Can I compress multiple images at once and download a ZIP?

This tool processes one image at a time so you can inspect the single preview quickly. To compress dozens of images and download a ZIP archive, open our Bulk Compressor tool.

Are uploaded images stored on Imgira servers?

No. Images travel over HTTPS to /api/compress, are re-encoded in volatile RAM with Sharp, and are discarded as soon as the response completes.

Discover More Tools

Related utilities across the Imgira catalog.

Explore All Tools