Compress Image to a Target Size

Shrink photos below the KB limit you need: 50KB, 100KB, 200KB, 500KB or 1MB. Quality and dimensions are tuned for you. Runs in your browser, no uploads.

Photos under a target sizeRuns on your device, nothing sent to a server
Target size
px Leave empty to keep the original size. It only shrinks when the target cannot be met otherwise.

    Why compress to a specific size

    A phone photo is 2 to 5MB. Application portals, job sites, school submissions and many forms cap uploads at 100KB, 200KB or 500KB, and usually only say "file too large" without telling you how much smaller it needs to be. Instead of nudging a quality slider over and over, pick the limit you need. This tool finds the best quality that stays under it.

    How to use it

    Choose a target size, then drop your photos or tap to pick them. Each photo gets a card tagged with the original size, the new size, the dimensions and the quality used. On the large card, drag the divider to compare the original and the result in place. Tap another photo to open it large. Change the target and every photo is recompressed from its original. With several files, use Download all as ZIP. If none of the presets fit, choose Custom and type a KB value. If the upload also limits width, enter it under Max width. Leave it empty to keep the original size.

    How quality is chosen

    The photo keeps its full resolution while a binary search tries JPG quality levels and keeps the highest one under your target. If even 40% quality is too big, it finds the largest dimensions that fit at 60% quality, then tunes quality again at that size. A slightly smaller image looks better than one crushed into blocky artifacts. When that happens, the card says so. JPG files that are already under the target are left untouched.

    What changes in the output

    Results are always JPG. Transparent areas in PNG or WEBP become white and camera metadata (EXIF) is dropped. Portrait rotation is applied before saving. If a form also demands exact pixel dimensions, crop to those first and then compress. At the same file size, a photo without wasted margins stays sharper.

    FAQ

    Are my photos uploaded?

    No. Compression runs in your browser with the canvas API and the result is saved straight to your device. Closing the tab clears everything.

    Does it hit the target size exactly?

    It finds the highest quality that stays under your target, so results usually land between 90% and 100% of it. If even low quality is too big, it scales the dimensions down step by step until it fits, and the result card tells you when that happened.

    Can I use it for 100KB upload limits on forms?

    Yes. Pick 100KB. If the form also requires exact pixel dimensions, crop to those first and then compress, which keeps more detail.

    Does it work with iPhone HEIC photos?

    Safari opens them directly. Chrome and Edge cannot read HEIC, so convert with the HEIC to JPG tool first and use 'Continue with' to bring the files over without picking them again.

    What happens to PNG files?

    They are saved as JPG so the size actually drops. Transparent areas become white. If you need transparency, use a PNG-specific compressor instead.