Image tool
Image Compressor
Shrink a photo for email, a web page, or an upload limit, and see exactly how many bytes you saved before you download anything.
1. Choose an image
Your picture is opened by this page alone. It is never sent anywhere, and closing the tab forgets it.
Choose an image to begin. Nothing is uploaded.
2. Result
The compressed image will appear here.
How to compress an image well
Pick a sensible target
Most websites display images at 1200 to 1600 pixels wide. Anything much larger is wasted on almost every page.
Watch the saving, not the slider
Quality 75 and quality 90 can look the same on screen and differ by half the file size. The panel reports what each setting actually costs.
Use WebP where you can
It is usually 25 to 35 percent smaller than JPG at a similar quality. Keep a JPG as well for anything that has to go to software that is not on the web.
Compress to 20 KB
Small enough for a strict form or a profile field. At this size a full-resolution photo will look soft, so reduce the longest side to 600–800 pixels first.
Compress to 50 KB
A common cap for job portals, school systems, and visa forms. A 600 × 600 ID photo usually fits at quality 70–80 without visible damage.
Compress to 100 KB
The safest target for a web page or an email attachment that still needs to look sharp. Most 1200–1600 pixel photos fit comfortably.
Compress to 200 KB
Useful when a form accepts a larger file and you want to keep more detail, such as a scanned document or a portfolio image.
Compress to 1 MB
Barely compressed for most photos. Choose it when the upload limit is generous and quality matters more than the last few hundred kilobytes.
Compress an image to 100 KB, 50 KB, or 20 KB
Most upload forms do not care how many pixels a photo has. They care how many kilobytes it weighs. A job portal that rejects anything over 100 KB, a school system with a 50 KB cap, and a visa form that asks for 20 KB are all asking the same question: can you make this file smaller without making the photo unusable?
The target-size field answers that directly. Type the limit, choose KB or MB, and the tool tests the image at its current dimensions. If the file will not fit even at a low quality, it steps the dimensions down by 20 percent and tests again. The result is the largest and sharpest version that still comes in under your limit, not a guess based on the slider.
How target-size mode works
JPEG and WebP are lossy formats: the encoder throws away detail to make the file smaller. The relationship between the quality setting and the final size is not linear, and it depends on the picture. A flat screenshot and a detailed photograph at the same quality setting can differ by several hundred kilobytes.
So the tool measures rather than estimates. It encodes the image at a high quality first. If that fits, it stops. If it does not, it tries a low quality to see whether the dimensions are viable at all, then binary-searches the quality range for the highest setting that still fits. Only when even the lowest quality is too large does it reduce the dimensions. That order keeps as much detail as possible.
When to resize instead of compress
If a form asks for a 2 × 2 inch photo at 300 dpi, the answer is 600 × 600 pixels, not a 4000-pixel camera photo compressed to 100 KB. Resizing first gives the encoder less work and produces a cleaner result. Use the image resizer for passport, ID, and social sizes, then come back here if the form also has a file-size cap.
The same applies to a scanned document. A 300 dpi scan of an A4 page is about 2480 × 3508 pixels. If the reader only needs to see the text, 150 dpi is usually enough, and the file can be a fraction of the size before compression even starts.
Which target should you choose?
There is no universal number, so use the form’s own limit. If it says 100 KB, aim for 100 KB. If it says 1 MB, there is no reason to compress to 100 KB and lose detail. When there is no stated limit, 100–200 KB is a sensible range for a web image, 50 KB for an email attachment, and 20 KB only for a small thumbnail or a very strict portal.
For a Philippine passport or ID photo, the dimensions matter first: 35 × 45 mm is 413 × 531 pixels at 300 dpi, and a 2 × 2 inch photo is 600 × 600 pixels. Start from those numbers, then compress only if the upload form also caps the file size. The passport photo size guide lists the dimensions for the Philippines, US, UK, and other countries.
Why the tool gets under the limit, not exactly on it
An encoder cannot hit an exact byte count on demand. It can only produce a file and tell you how large it is. The tool therefore returns the best result at or below your target. If it says 96 KB for a 100 KB limit, that is the highest quality it could find that still fits. A tool that promises exactly 100.0 KB is either padding the file or not measuring what it claims.
The number it reports is measured, not guessed
The saving shown next to your file is the difference between the size you brought in and the size that actually came out of the encoder. It is not an estimate derived from the quality slider, and the difference matters more than it sounds.
Those two things genuinely disagree. At a mid quality setting a flat graphic such as a logo, a screenshot or a diagram can come out larger than the original, because there was nothing wasteful to remove and the re-encode only added overhead. And a very high quality setting can undo a resize, producing a file bigger than the one you started with after asking for a smaller picture. A tool that estimated from the slider would promise a saving in both cases and be wrong. This one encodes the image and weighs the result, which costs a second pass and is the only way to be honest about it.
Start from the lowest quality that still looks right
Move the slider up and down and watch the measured figure, rather than aiming at a particular number on the slider. Find the lowest setting at which the picture still looks acceptable to you, and stop there. Below that point the saving is real and the picture is not worth it.
Scaling down is where most of the saving comes from
Cutting the longest edge to a maximum size removes actual pixels, and pixels are what a file is made of. It is a bigger lever than the quality setting and it is not a compromise at all, provided the smaller size is still big enough for where it will be seen. A photograph on a website rarely needs the resolution of one on a camera.
Order matters: reducing the dimensions first and then setting a modest quality gives a predictable result. A high quality setting after a large reduction can hand back some of the size you just saved.
It re-encodes, so metadata goes
The result is drawn to a fresh canvas and written out as a new file, so EXIF data including GPS coordinates is not carried over. For a photo you took at home or at work, that is often the point. If you need the original data preserved, keep the original file, because the compressed copy will not have it.
Pictures that do not compress
Images that are already heavily compressed, and images that are mostly one flat colour, have very little slack to remove. For a logo or a screenshot, a PNG is usually a better answer than a smaller JPG, and the WebP to JPG or PNG tool will tell you what the honest file size is before you commit.
Your original is untouched
Everything happens on a copy in the page. The file on your disk is not modified, so the compressed version is a second file rather than a replacement, and you can compare the two at full size before you use it.
Getting the smallest file that still looks right
Compression trades file size against visible detail, and where that trade sits depends entirely on what the image is of. A photograph carries noise that hides compression well; a screenshot of text shows every artefact, because flat colour and sharp edges are the hardest content for a lossy encoder.
A target size is a useful constraint when a destination imposes one, but it forces the tool to choose a quality for you. If you can, compress by quality and accept the resulting size. If you cannot, be aware that a very small target on a detailed image will produce visible blocking, and no setting avoids that.
For screenshots and diagrams, PNG is often already smaller than a heavily compressed JPEG and stays sharp, so compressing a screenshot to a hard limit is usually the wrong move. For photographs destined for the web, a moderate quality is indistinguishable from the original at display size and much smaller.
Keep the original. Compression is a one-way step, and repeated passes on an already compressed file accumulate damage, so always compress from the source rather than from the last compressed copy.
Further reading: Read the full guide: Image Compressor
Common questions
Can I compress an image to exactly 100 KB?
You set a ceiling, not an exact byte count. A JPEG or WebP encoder can only produce a file and report how large it turned out, so the tool returns the highest quality that comes in at or below your target. A result of 96 KB for a 100 KB limit is the honest outcome; a tool that promises exactly 100.0 KB is either padding the file or not measuring it.
How does target-size mode choose the quality?
It tries the image at its current dimensions and a high quality first. If that fits, it stops. If not, it checks whether the dimensions are viable at all at a low quality, then binary-searches the range for the highest setting that still fits. Only when even the lowest quality is too large does it reduce the dimensions, testing up to eight sizes that are each 20 percent smaller than the last.
What does the quality slider do now?
It sets the encoder quality when the target-size field is empty, defaulting to 80. As soon as a target is set, the slider is disabled because quality is chosen automatically to meet the limit. The final quality is written back to the slider so you can see what the result used.
Is my image uploaded?
No. Your image is drawn to a canvas in this tab and re-encoded there. The file you chose is never written to, so nothing leaves your device and nothing is stored.
Will it always make my image smaller?
No, and it will tell you when it does not. The reported figure is the real difference between the original file and the new one, so an already-optimised JPEG can come out larger after re-encoding. The page marks a negative saving rather than hiding it. If that happens, keep the original.
What happens to transparent areas?
They are flattened onto white. JPEG has no alpha channel, and painting a background first keeps the edges of a cut-out PNG from turning into dark fringes. If you need to keep transparency, use a tool that exports PNG instead of this compressor.
What target should I use for a passport or ID photo?
Get the dimensions right first: a Philippine passport photo is 35 by 45 mm, or 413 by 531 pixels at 300 dpi, and a 2 by 2 inch photo is 600 by 600 pixels. Resize to those numbers first, then compress only if the upload form also caps the file size. A common cap is 50 KB or 100 KB.
