Compress Image Online
Shrink JPG, PNG, and WebP files in seconds with a quality slider or an exact kilobyte target. Free, private, and entirely in your browser.
Drop images here or click to browse
Up to 10 files · JPG, PNG, WebP, GIF, BMP, AVIF — up to 50MB each. Files never leave your device.
Lower values shrink the file but soften fine detail. 70–85% is the sweet spot for photos.
Your before / after comparison will appear here.
How image compression actually works
Every digital photo carries far more data than your eyes can perceive. A 12-megapixel phone photo stores 36 million color values, including subtle noise in shadows, micro-texture in skies, and high-frequency detail that vanishes the moment an image is displayed at normal size. Lossy compression exploits this gap: the encoder transforms the image into frequency components, keeps the ones that matter visually, and quantizes the rest away. The quality percentage you choose controls how aggressive that quantization is. At 85%, a typical JPEG keeps virtually all visible detail while discarding roughly two-thirds of the bytes. At 60%, it starts merging similar tones into visible blocks — fine for thumbnails, risky for hero images. Understanding this trade-off is the whole skill of compressing images well: you are deciding how much invisible data to throw away, and the right answer depends entirely on where the image will be seen.
Quality slider or exact KB target?
This tool offers two compression modes because different situations demand different guarantees. The quality slider is the photographer's mode: you pick a visual standard — say 80% — and accept whatever file size results. It is ideal when appearance matters most, such as portfolio images, blog illustrations, or prints. Every image compressed at the same quality looks consistently good, even though file sizes vary with content. The exact-KB target mode is the form-filler's mode: you declare a byte budget — 20KB, 50KB, 100KB — and the tool binary searches encoder quality to land at the highest quality that fits. If even the lowest usable quality cannot squeeze the pixels into your budget, it progressively scales dimensions down until the target is met. Use target mode whenever a portal, exam form, or upload limit dictates the size; use quality mode whenever your eyes dictate it.
Choosing the right output format
Format choice often matters more than the quality number. JPEG is the universal default: every browser, phone, printer, and government portal since the 1990s reads it, and its encoder is superb for photographs. Its weaknesses are graphics with sharp edges — text screenshots, logos, charts — where it smears ringing artifacts around high-contrast boundaries, and its lack of transparency support. WebP fixes both problems partially: it compresses photos 25–35% smaller than JPEG at equal visual quality, supports transparency, and handles graphics more gracefully. Its only drawback is compatibility with older or bureaucratic systems that explicitly demand “.jpg” uploads. PNG is lossless and therefore the largest: a photo saved as PNG can be five to ten times bigger than the same photo as JPEG. Reserve PNG for images that must be pixel-perfect — line art, UI screenshots with small text, images with transparency — and never for plain photographs unless a system forces it.
How to compress an image in four steps
- Drop your image onto the tool above or click to browse. Anything up to 50MB works, including JPEG, PNG, WebP, GIF, BMP, and AVIF sources.
- Pick a mode. Drag the quality slider while watching the before/after sizes, or switch to target mode and type your KB budget for an guaranteed fit.
- Choose the output format. Stick with JPEG for uploads to third parties; choose WebP for your own website where every kilobyte of page weight counts.
- Download and verify. Open the result at full size once. If faces, text, or product details look soft, re-compress five quality points higher — it costs seconds.
Pro tips for dramatically smaller files
The biggest wins come before you touch the quality slider. First, resize oversized images: a 4000-pixel phone photo destined for a 1200-pixel web slot carries ten times the pixels it needs, and no quality setting compensates for that. Shrinking dimensions first, then compressing, routinely beats compressing alone by a factor of three. Second, prefer WebP for anything you publish yourself — the same photo at the same visual quality is roughly a third lighter than JPEG, which directly improves page-load times and search rankings. Third, remember that re-encoding strips EXIF metadata automatically, so photos of people or places lose their embedded GPS and camera data — a quiet privacy bonus when sharing publicly. Finally, keep your originals: lossy compression is a one-way street, so archive the full-quality file and treat compressed copies as disposable derivatives for specific destinations.
Quality sweet spots worth memorizing
After compressing thousands of images, practitioners converge on the same numbers. Use 85% for hero images and anything viewers will inspect closely. Use 75–80% for article illustrations, product photos, and social posts — the savings are large and the difference is essentially invisible on phones. Use 60–70% for thumbnails, avatars, and background textures where the image renders small. Drop to 50% only for strict byte targets where fitting matters more than fidelity, and pair it with dimension reduction rather than quality reduction alone. For PNG graphics with flat colors, none of this applies — export at full quality and shrink the canvas instead, since PNG quality sliders change nothing. Internalize these five bands and you will rarely need to experiment more than once per image.
Frequently asked questions
How does online image compression work?
JPEG and WebP are lossy formats: the encoder discards high-frequency detail your eyes barely notice, then stores what remains very efficiently. Lowering the quality setting discards more detail, so the file shrinks. PNG is lossless, so it can only shrink by reducing dimensions or color complexity. This tool runs the same encoders your browser uses for the web, entirely on your device.
What quality setting should I choose?
For photographs, 70–85% is the sweet spot: files typically drop 60–80% with differences visible only when pixel-peeping. Below 60%, skies and skin can show banding and blocky artifacts. For graphics with text or sharp lines, prefer PNG or WebP at 90%+ to keep edges crisp.
Should I choose JPEG, PNG, or WebP output?
Use JPEG for maximum compatibility — every device and portal accepts it. Use WebP when you control the destination (your own site, modern apps) because it is roughly 25–35% smaller than JPEG at equal quality. Use PNG only when you need transparency or pixel-perfect graphics like logos and screenshots with text.
Are my images uploaded to a server?
No. Your file is decoded, compressed, and re-encoded by JavaScript running in your own browser tab. Nothing is transmitted anywhere, which makes the tool safe for private documents like IDs and signatures.
Why is my PNG still large after compressing?
PNG compression is lossless, so quality sliders cannot shrink it — the pixels must be stored exactly. Switch to the exact-KB target mode, which reduces dimensions until the PNG fits, or convert photographic PNGs to JPEG/WebP, which are typically 5–10x smaller for photos.
Will compression remove EXIF and metadata?
Yes. Browser encoders write only pixel data, so camera settings, GPS coordinates, and timestamps in the original EXIF block are stripped from the output. That shrinks the file slightly and protects your privacy when sharing photos publicly.
Related tools
Resize Image
Change pixel dimensions with aspect-ratio lock and social-media presets.
Crop Image
Trim photos to 1:1, 4:3, 16:9, or a free selection — right in your browser.
Convert Image
Switch between JPEG, PNG, and WebP without uploading anything.
Compress to 20KB
Force an image under 20KB for exam forms and application portals.
Compress to 50KB
Hit a 50KB upload limit for resumes, ID proofs, and signatures.
Compress to 100KB
Get under 100KB for marketplace listings and CMS uploads.