Click or drag image here
JPG, PNG, WebP supported · Max recommended 25MB
Compress image until it fits under a target size in kilobytes.
Click or drag image here
JPG, PNG, WebP supported · Max recommended 25MB
Need to resize your image to a specific file size in KB? Our free tool lets you set an exact target size — whether you need a photo under a specific KB limit for an online form, job application, or government portal. The tool automatically adjusts quality to hit your target size.
Targeting an exact file size in kilobytes is a different problem from resizing pixel dimensions — it means repeatedly testing compression settings until the resulting file lands under your limit without throwing away more image quality than necessary. Many online forms, government portals, and job application systems specify a maximum upload size such as 100KB or 200KB, and manually guessing a JPEG quality percentage in a desktop editor often takes several trial-and-error exports before you hit the target. This tool automates that guesswork entirely inside your browser, so you get a file that is at or under your chosen size on the first try, without needing any image-editing software installed on your computer.
This approach is especially useful for recurring situations like uploading a profile photo to a government portal, submitting a document scan with a strict size cap, or preparing an image for a form that silently rejects anything over its limit without explaining why. Rather than exporting a photo, checking its size in your file manager, and re-exporting at a guessed lower quality if it's still too big, you get the exact result in one pass. Because the search happens against the real encoded file size rather than an estimate, the number shown before download is the number you will actually get, so there's no need to double-check the file afterward.
It's also useful for cutting a photo down from a larger file, such as 1.75MB, to a small target range like 10KB to 50KB for online forms with strict upload limits.
Resize to KB works by running a binary search over JPEG compression quality levels entirely inside your browser. After you upload a photo and set a target size in kilobytes, the tool encodes the image at a starting quality level, checks the resulting file size in memory, and then narrows the quality up or down depending on whether that test file came in above or below your target. This process repeats automatically, each time getting closer to your exact target size, until the output file size is at or just under the limit you specified or the quality range has been narrowed as far as it can go. Because this searching happens locally using the browser's canvas-to-blob encoding rather than uploading your photo to a remote compression service, the whole process typically finishes in well under a second, and you can immediately see the exact resulting file size before downloading, so there is never a need to re-upload the same photo repeatedly to a website just to check whether it meets a size requirement.
Yes. Enter your target KB size and our tool will automatically adjust image quality to get as close as possible to that size.
Image compression works in increments so the output may be slightly above or below your exact target. It will always be within a close range.
Very small targets like under 10KB may result in visible quality loss as heavy compression is needed.
No. Only the file size is reduced through quality adjustment. Dimensions stay the same.
JPG and PNG are fully supported. For best results with small KB targets, use JPG format.
At moderate settings, most compression is invisible to the eye. Very aggressive compression can introduce visible blockiness in fine detail.
JPG generally compresses photos far smaller than PNG. PNG suits graphics, logos, and images needing transparency.
No. Compression happens directly in your browser using JavaScript — your image never leaves your device.
Yes, enter your target file size in KB and the tool automatically adjusts compression to get as close as possible to that size, which is exactly what's needed for forms that specify a maximum upload size like 50KB or 100KB.
Yes, enter your target size within that range and the tool adjusts compression automatically to bring even a large photo, such as one around 1.75MB, down to the small file size your form requires.