How to use it
Use this tool to compress image files so they take up fewer kilobytes without changing their width or height. It re-encodes JPG, PNG, WebP, AVIF, GIF and BMP in the same format they arrived in, driven either by a quality level from 20 to 95 or by an approximate target size in KB. That makes it the quick fix for upload caps, bulky email attachments and slow-loading pages.
How to compress image files to a target size
- Drop the picture onto the upload area or pick it with Browse files; each file can be up to 24 MB.
- Leave Quality at the default of 82, or lower it if you need a lighter file.
- If a website or form enforces a hard limit, type a number about 10 percent below it into Target KB.
- Download the result and check its real size in your file manager before uploading it anywhere.
- Still too big? Reduce the pixel dimensions first, then compress the original again.
What the quality number really controls
JPG, WebP and AVIF are lossy formats. The encoder saves space by discarding detail your eye is unlikely to miss, and the quality number decides how aggressive that discarding is. At high settings the change is invisible; as you go lower, smooth skies start to show steps, fine textures such as hair or grass flatten out, and faint halos appear around text and sharp edges.
The relationship is far from linear. Going from 82 to 95 can make a file noticeably heavier for a difference almost nobody can see on screen, while dropping from 82 to 70 usually trims a meaningful amount at little visible cost. Below about 50, JPG starts to reveal its 8×8 pixel blocks in faces and flat areas, so keep such low values for thumbnails and previews.
Why Target KB is an estimate, not a promise
The number you enter is compared with the size of the original upload and translated into a quality value, and the file is then encoded once. Content matters as much as the setting: a grainy low-light shot will always weigh more than a clean product photo at the same quality and dimensions. Expect the output to land somewhat above or below the target. If your target is less than a fifth of the original size, quality bottoms out at 20 and the file may still be too large; at that point only fewer pixels will help.
What happens to each format
| Upload | Treatment | Typical outcome |
|---|---|---|
| JPG | Re-encoded at the chosen quality | Large savings on camera and phone photos |
| WebP | Re-encoded as lossy WebP | Moderate savings if the file was already optimized |
| AVIF | Re-encoded at the chosen quality | Often small gains, since the format is efficient to begin with |
| PNG | Colors reduced to a palette of up to 256 | Excellent for screenshots, logos and interface graphics; possible banding on photos |
| GIF | Already limited to 256 colors; animations keep only the first frame | Little to gain |
| BMP | Saved again as uncompressed BMP | No real reduction; convert the format instead |
For photographic PNGs, a PNG to JPG conversion beats palette reduction by a wide margin, and for raw bitmaps a BMP to JPG conversion is the step that actually shrinks the file. If you are unsure which format suits a picture, the guide on choosing an image format walks through the trade-offs.
Common limits and the settings that fit them
- Passport, visa and ID uploads: online application portals usually state both a pixel size and a maximum file size, and the numbers differ from one form to the next. Resize to the exact dimensions first with the image resizer, then aim Target KB slightly under the cap. Try not to go below about 60 quality on faces.
- Email attachments: many providers cap a message at roughly 20–25 MB. Attachments are Base64-encoded in transit, which inflates them by about a third, so a set of photos totalling 20 MB can bounce against a 25 MB limit.
- Website and blog images: scale to the width the layout actually displays and use quality 70–82. The image compression and web performance guide explains how much this affects load time.
- Chat apps and social networks: they recompress whatever you upload. Sending a cleaner file at 85–90 limits the damage of that second round.
- Print and archives: keep the original. If you must compress, stay at 90 or above.
Mistakes that make compressed images look worse
- Compressing the compressed copy. Every lossy save adds its own damage. When you want to try a different setting, go back to the original file.
- Saving a low-quality JPG at a higher quality. A photo already saved at 60 can grow when re-encoded at 82, and the lost detail does not come back. If the output is larger than the input, lower the quality or simply keep the original.
- Ignoring pixel dimensions. Squeezing a 4000-pixel-wide photo into 200 KB produces mush. Scaling it to 1600 pixels first and then compressing gives a file that is both sharper and lighter.
- Phone photos that turn sideways. Many phones record orientation as an EXIF tag instead of rotating the pixels. Because the compressor strips metadata, such a photo can appear sideways afterwards; the image rotator fixes it with a 90-degree turn.
Pixels first, quality second
File size depends on two things: how many pixels the picture contains and how efficiently each one is encoded. Compression works on the second factor; resizing works on the first. Halving both width and height leaves a quarter of the pixels, which usually saves more than any quality tweak could. For a 12-megapixel phone photo headed to a web page or a form, combining both steps gives the cleanest result, as the walkthrough on how to reduce image file size shows with examples.
Metadata, privacy and what happens to the file
Compression removes EXIF metadata, so the camera model, capture time and any GPS coordinates are absent from the download. That is a handy way to scrub location data before posting a picture publicly. Embedded color profiles are not kept either, which can make some wide-gamut photos look slightly flatter.
Your image is uploaded to the server, compressed within that same request and sent straight back. It is not stored or shared, and there is no account or fee. As a safety check, the file contents must match the extension, so a renamed file is rejected. A single image can be at most 50 megapixels, with no side longer than 16,384 pixels.