Image Compressor
Upload Image
Click to select or drag and drop
Supports: JPG, PNG, WebP · Max 20 MB
Compression Mode
Adjust quality percentage to balance size and appearance.
Output Format
Quality Level
Resize Options
About Image Compressor
This free browser-based tool compresses JPG, PNG, and WebP images in two modes: quality percentage or exact KB target. All processing runs locally — your image never leaves your device.
Two Compression Modes
Quality Mode lets you pick a quality percentage (1–100%) and output format. Use it when you want control over image appearance or are optimising for websites, email, or storage. Choose JPEG for photos, PNG for graphics with transparency, WebP for best compression.
Target KB Mode lets you specify an exact kilobyte limit (e.g. 200 KB). The tool automatically finds the highest quality that fits within your budget — and scales down dimensions if needed. Perfect for passport photos, visa applications, exam registration portals, and any upload form with a strict size limit.
Quality Compression Mode
The quality slider controls how much lossy compression is applied. Higher quality preserves more detail but produces larger files. Recommended settings:
- 90%: Minimal visible loss — ideal for print or high-fidelity web images
- 80%: Good balance — recommended for most web and email uses
- 60%: Heavy compression — suitable for thumbnails or when size matters most
Format guide: JPEG is best for photographs; PNG for graphics needing transparency (note: PNG uses lossless compression so quality adjustment has no effect); WebP offers the best compression ratio with broad modern browser support.
Target Size Mode
Enter a target in KB and click Compress. The tool runs a binary search across the quality range (0.1–0.92) in 8 iterations to find the highest quality that produces a file at or below your target. If even minimum quality is still too large, it progressively reduces the image dimensions in 0.85× steps, up to 10 times, until the target is met.
Targets use 1 KB = 1000 bytes (decimal kilobytes), consistent with how most government and university upload portals measure file size. Common use cases: passport photos (50–200 KB), exam registration forms (20–100 KB), visa applications, job portal uploads.
Supported Formats
- JPEG: Lossy compression, best for photos, no transparency. Quality slider has full effect.
- PNG: Lossless compression, supports transparency. Very small KB targets may require dimension scaling or conversion to JPG.
- WebP: Modern lossy/lossless format. Excellent compression; supported in all modern browsers.
Key Features
- Two compression modes: quality slider and exact KB target
- Binary search quality optimisation (Target KB mode)
- Automatic dimension scaling when quality alone is insufficient
- PNG → JPG conversion offer for very small KB targets
- Before/after preview comparison
- Optional resize (max width/height) in Quality mode
- JPEG, PNG, and WebP output support
- Fully client-side — nothing uploaded, no account required
- Works on mobile and desktop browsers
How to Compress an Image
- Click the upload area or drag and drop a JPG, PNG, or WebP image (max 20 MB).
- Choose a compression mode: Quality for manual control, Target KB to hit a specific file size.
- Quality mode: Select an output format, set the quality slider or pick a preset, optionally set max dimensions, then click Compress Image.
- Target KB mode: Enter your KB limit or pick a preset chip, choose a format, then click Compress to Target.
- Review the before/after comparison and size statistics.
- Click Download to save the compressed image.
- To compress another image, click Upload New Image or New Image.