Image Compressor
Shrink any image to a target file size like 50 KB or 100 KB.
Drop an image here, or click to browse
PNG, JPEG, WebP — compressed entirely in your browser
The compressor lowers quality, then shrinks dimensions if needed.
WebP gives the smallest files. PNG stays lossless.
Result
Compression runs entirely in your browser using the Canvas API — your image is never uploaded anywhere. Smaller targets may reduce visual quality; PNG is lossless and reaches the target by shrinking dimensions instead.
How to use the image compressor
The image compressor shrinks a photo or screenshot to a target file size — 50 KB, 100 KB, 200 KB, or any limit you choose — while keeping the picture as clear as possible. It is the fastest way to get an image under an upload limit, whether you are attaching a file to a form, meeting a size cap on a job application, or slimming down a folder of photos before sharing it.
The tool works on any image your browser can display: photos from your phone, screenshots, illustrations, and scanned documents. Drop a file into the upload area, pick a target size and an output format, and the compressor gets to work. You will see the original size, the compressed size, and exactly how much space you saved — before you download anything.
How the compressor hits your target size
Compressing an image is a balancing act: smaller files mean lower visual quality, and different images compress differently. A busy photograph with lots of detail resists compression, while a simple logo or screenshot shrinks dramatically with almost no visible change. Rather than guessing a fixed quality setting, this tool uses a smarter approach.
First, it lowers the image quality step by step using a binary search, converging on the highest quality that still fits under your target size. If the image is so detailed that even the lowest acceptable quality is still too large, the compressor then reduces the pixel dimensions slightly and tries again. This two-step process means you reliably land at or under your target, instead of ending up with a file that is still a few kilobytes too big.
Choosing the right output format
WebP is the default and usually the best choice. It produces the smallest files at a given quality and is supported by every modern browser. Choose JPEG when you need maximum compatibility with older software or printers — it handles photographs well but does not support transparency. Choose PNG only when you must keep transparency or need a lossless copy, because PNG files stay much larger; the compressor reaches the target by shrinking dimensions instead of reducing quality.
Common uses
A very common scenario is an upload form that rejects files over a certain size. Government portals, job sites, and school applications often cap attachments at 100 KB or 500 KB, and a modern phone photo can easily be several megabytes. Compressing to the exact limit gets your file accepted on the first try. Designers use it to keep web pages fast, since large images are the single biggest cause of slow page loads. Anyone organizing a photo archive can use it to reclaim gigabytes of disk space.
Privacy and quality
Every step runs locally in your browser using the Canvas API. Your image is never sent to a server, never stored, and never seen by anyone else — which also means the tool works offline once the page has loaded. For sensitive documents, screenshots with personal information, or unreleased designs, this local-only approach is the safest option available.
One honest caveat: aggressive compression is lossy. Pushing a highly detailed photo to a very small size will show softening or subtle artifacts. If the result looks too rough, try a slightly larger target, or switch to PNG for a lossless copy at a bigger file size. The preview numbers make it easy to experiment until you find the right balance.
Frequently asked questions
How much can an image be compressed?
It depends on the content. A simple logo or screenshot can often shrink by 80–95% with no visible change, while a detailed photograph might only shrink 30–60% before quality drops noticeably. The tool always aims for your exact target and shows you the real result.
What is the difference between WebP, JPEG and PNG?
WebP produces the smallest files at the same quality and supports transparency, so it is the default. JPEG is the classic format for photographs and works everywhere but has no transparency. PNG is lossless — it preserves transparency and exact pixels but produces much larger files.
Does compressing an image reduce its quality?
Usually yes, by a small amount. The tool lowers quality only as far as needed to reach your target size, so mild compression is often invisible. Very small targets (like 50 KB for a large photo) will show some softening or artifacts.
Is my image uploaded to a server?
No. All compression happens locally in your browser using the Canvas API. Your file is never transmitted, stored, or shared, which makes this tool safe for sensitive documents and private photos.
Why is my PNG file still large after compression?
PNG is a lossless format, so the quality setting does not reduce its size. To reach a small target, the tool shrinks the pixel dimensions instead. If you need a small file, choose WebP or JPEG as the output format.
Related calculators
View allImage Format Converter
Convert images between PNG, JPEG and WebP in one click.
Image Resizer
Resize images to exact pixels with social-media presets.
Compound Interest Calculator
See how principal and regular contributions grow with compounding.
Loan Payment Calculator
Find the monthly payment and total cost of any fixed-rate loan.
Why use CalcFacts?
- Every calculation runs in your browser — nothing is uploaded.
- No signup, no paywall, no email required.
- Clear formulas and breakdowns you can verify yourself.
- Built for speed: results update as you type.