Compress Image
Compress an image to an exact target size (20KB, 50KB, 100KB) or by quality. JPE...Compress an image to an exact target size (20KB, 50KB, 100KB) or by quality. JPEG, WebP, PNG, with resize and a live before/after. Free, no signup, no...
Updated
Quick answer
An image compressor reduces a photo's file size while keeping it looking sharp. YaliKit's tool can hit an exact target like 20KB, 50KB, or 100KB by binary-searching the quality and downscaling if needed, or you can compress by quality in JPEG, WebP, or PNG. Files are processed on our server with libvips and deleted immediately, never stored.
What You Can Do
Why Use Compress Image?
Compress to an Exact File Size
Need your photo under exactly 100KB, 50KB, or 20KB for a form, passport portal, or upload limit? Type the target and the tool binary-searches the quality (and downscales if needed) to land at or just under it, the thing most compressors can't do.
Smart Optimization Detection
Unlike other tools that fake compression on already-optimized files, this tool detects when compression would actually increase your file size and tells you why. No wasted downloads, no surprises.
Format Conversion Saves 30%+
Convert a 2.4 MB JPEG to WebP and watch it drop to 1.6 MB at identical visual quality. WebP uses predictive coding and entropy encoding that JPEG simply cannot match, especially on images with large flat-color regions.
Resize + Compress Together
A 4000x3000 photo from your camera is 8 MB. Resize to 1920x1440 for web use and the file drops to 1.8 MB before you even touch the quality slider. Combining both operations in one step gives the biggest reduction.
Before/After Comparison
Side-by-side thumbnails with exact byte counts for original and compressed versions. A percentage badge on the preview tells you the reduction at a glance so you can fine-tune quality without guessing.
Private by Design
Your image is processed on our own server with libvips (the engine behind Sharp), then deleted immediately. No third-party clouds, no image galleries, no tracking. The file goes in, the compressed file comes out, nothing is stored or shared.
Mobile Floating Download
On phones, the Download button floats at the bottom of the screen once your image is ready, so it stays within thumb reach while you scroll through the size, quality and resize options. No hunting for a tiny button buried in the UI.
Real-World Scenarios
Web Performance Optimization
A product page with 12 uncompressed images loads in 8+ seconds on mobile. Compressing each to WebP at quality 75 and resizing to 800px width cuts total page weight from 35 MB to 2.4 MB, bringing load time under 2 seconds and improving Google Core Web Vitals scores across all three metrics.
Email Attachments That Actually Send
Your client needs 20 event photos and their corporate Exchange server has a 10 MB attachment limit. Each phone photo is 4-6 MB. Compressing to JPEG at quality 80 and resizing to 1600px gets each file under 400 KB, letting you attach all 20 in a single 8 MB email that will not bounce.
Government Document Submissions
Visa applications, passport renewals, and university admissions often require photos between specific file sizes (e.g., 50 KB to 500 KB for Indian passport). Use the quality slider to dial in exactly to the required range, and resize to the specified pixel dimensions in one step.
Photography Archive Management
A wedding photographer with 50,000 JPEG files at 8 MB each is using 400 GB of cloud storage at $10/month. Creating web-quality versions at quality 80 and 2400px wide reduces each to under 1 MB, freeing up 350 GB while keeping full-resolution originals on local backup drives.
How It Works
Drop or Browse for Your Image
Drag a photo onto the upload zone or tap to select from your device. Accepts PNG, JPG, GIF, WebP, and most image formats. You will see an instant preview with the original file size.
Pick Your Output Format
Choose JPEG for photos (best compatibility), WebP for the smallest files at comparable quality, or PNG when you need lossless output with transparency support.
Choose Target Size or Quality
Pick 'Target size' and type an exact limit (20KB, 50KB, 100KB, 200KB) and we hit it automatically, or pick 'Quality' and use the slider/presets. Optionally enable resize to cap the width.
Review and Download
Check the before/after comparison and the percentage reduction badge. If the tool detects your file is already optimized, it tells you rather than producing a larger output. Download when satisfied.
Compression Advice From a Photographer
The 75/80 Rule for Web Images
For any image destined for a website, start at quality 75-80 in JPEG or WebP. This is the point where most photos become indistinguishable from the original on screen, but file sizes drop by 60-70%. A 3 MB photo from your phone typically compresses to 350-500 KB at quality 78.
Resize First, Then Compress
Always reduce dimensions to what you actually need before touching the quality slider. A 4032x3024 iPhone photo resized to 1200px wide drops from 5.2 MB to 1.1 MB at quality 100 -- then compressing to quality 80 brings it to 280 KB. Dimension reduction is the single most impactful optimization.
Never Re-Compress a Compressed JPEG
Each compression cycle adds generation loss. If your source image is already a compressed JPEG from a messaging app or social media download, compressing it again at the same quality level will degrade it visibly without much file size benefit. Use WebP output instead for better results from already-compressed sources.
WebP for Everything Except Email
WebP produces files 25-35% smaller than JPEG at equivalent visual quality, and it supports transparency (unlike JPEG). Use it for websites, apps, and any modern platform. The only exception is email attachments, where some older clients still cannot display WebP inline -- use JPEG for those.