Compress an Image to Any Size in KB

Upload forms rarely ask for a format; they ask for a size, such as under 100 KB or between 20 and 50 KB. Set that limit below, add your photos, and each one comes back as a file that fits, with its byte count printed so you can check it before you submit.

Drop your files here

or

Each file's format is recognised from its content. Add as many files as you like.

    Files never leave your device.

    4.8 out of 5 3,598 ratings

    Based on a survey of 3,598 ToolLime users.

    How to compress an image to a specific size

    1. Add your images with Choose files or by dropping them on the tool.
    2. In the Size menu, pick a limit or type a maximum and minimum under Custom.
    3. Check the size in each row, then download the files.

    Add your photos with Choose files or by dropping them on the box. Once the first file is in, the Size setting comes forward: on a wide screen its menu opens by itself, on a phone its button is highlighted. It lists common limits from 20 KB to 2 MB; pick one and every file in the list is processed to stay within it.

    If your form names another figure, use Custom at the bottom of the menu: type a maximum, a minimum or both, in KB or MB. A range like 20 to 50 KB keeps the result from being too small as well as too large, which some portals check.

    Each finished row shows the new size, the exact number of bytes underneath, and what the tool had to do to get there. Files keep their own format unless you choose another in the Format menu; HEIC, RAW and other files that cannot be written back are saved as JPG.

    How the tool reaches your target

    For JPG, WebP, AVIF and JPEG XL, the tool searches for the highest quality that fits under the maximum, starting no higher than the format's normal setting. A photo that already fits is not inflated to fill the allowance, and a JPG, PNG or WebP that is already within the limit is usually kept as is, minus its metadata.

    If even a low quality is too big, the picture is scaled down step by step until it fits, and the row says so, for example Scaled down to 640×480 to fit the size limit. When you have fixed the pixel size yourself under Dimensions, the tool does not shrink it further; it tells you the smallest file that size can make instead.

    PNG, GIF, BMP and TIFF are lossless, so their size cannot be traded for quality. Rather than quietly turning your PNG into a thumbnail, the row reports the smallest size it could reach and offers a Switch to JPG button.

    Raising a file to a minimum size

    Some portals reject files that are too small, for instance a scanned signature of 4 KB when they ask for at least 10 KB. Set a minimum under Custom and the tool raises the quality first. If the file is still too small and the output is JPG, it adds a harmless comment block to the file until the minimum is met; the picture is not changed and the JPG stays perfectly valid.

    Pixels are never enlarged just to add bytes. If a minimum cannot be reached in another format, the row gives the largest size that format could produce.

    KB, MB and the 1000 or 1024 question

    Systems disagree about the kilobyte: some count 1000 bytes, others 1024. To pass either way, a maximum here counts 1 KB as 1000 bytes and a minimum counts it as 1024. A 20 to 50 KB range therefore means at least 20,480 and at most 50,000 bytes, which satisfies both readings.

    For megabytes the same rule applies: a 1 MB maximum is 1,000,000 bytes. The sizes in each row are rounded down, so a file shown as 49 kB is never secretly above 50,000 bytes.

    Common target sizes and what they suit

    The Size menu lists the limits people look for most often: 20 KB, 50 KB, 100 KB, 200 KB, 500 KB, 1 MB and 2 MB. Pick the one your form names; any other figure, or a range with a minimum, goes under Custom.

    20 KB and 50 KB are tight. If a form asks for a scanned signature or a small passport-size photo under one of them, crop close first, and check whether it also gives a floor: for a 20 to 50 KB rule, type both numbers under Custom, since a 19 KB file would be refused.

    100 KB and 200 KB leave room for a clear portrait, a readable scan of one page or a profile picture for an application. A phone photo of several megabytes usually needs both a lower quality and fewer pixels to get there; each row says when the tool scaled a picture down.

    1 MB and 2 MB are roomy limits, of the kind a contact form, a listing or an email attachment may set to keep camera originals out. Most photos come back within them with no difference you can see, and a picture that is already lighter is usually kept as it is rather than made bigger.

    Compressed in your browser, not uploaded

    Finding the right quality can take several encodings per photo, and all of them run on your own device. Your pictures are never sent to a server, which is reassuring when they are ID photos, signatures or certificates for an application.

    There is no limit on the number of files and no account. Clear list empties the page, and closing the tab removes everything from memory.

    Getting a sharp result at a small size

    Crop away what the form does not need before compressing: a head-and-shoulders photo or a signature with tight margins keeps more detail per byte than the whole original frame. If the form states pixel dimensions, set them under Dimensions first; the ready-made sizes there for passports, visas and Indian exam uploads set the matching KB range too.

    Start from the original file rather than a screenshot or a photo forwarded through a chat app, which has already been compressed once. And for photographs, JPG reaches small sizes far more gracefully than PNG.

    Frequently asked questions

    How do I reduce an image's size in KB without losing quality?

    Some loss is unavoidable when a file must shrink a lot, but the tool always keeps the highest quality that fits your limit and only reduces the pixel size when quality alone is not enough. Cropping unneeded areas first leaves more room for detail.

    Why is my file a bit under the limit instead of right at it?

    JPG and similar formats can only change size in small steps as quality changes, so the result usually lands somewhat below the maximum. The tool also never raises quality above the format's normal setting just to use up the allowance.

    Can I increase the size of an image in KB?

    Yes. Set a minimum under Custom in the Size menu. The tool raises the quality, and for JPG it can add a comment block that pads the file to the minimum without changing the picture.

    Why can't my PNG get under the limit?

    PNG is lossless, so its size depends on the picture and the pixel count, not on a quality setting. The row offers Switch to JPG, which usually reaches the limit easily, or you can reduce the dimensions.

    Does compressing change the pixel dimensions of my photo?

    Only when lowering the quality is not enough. Then the picture is scaled down until it fits, and the row tells you the new size. If you set dimensions yourself, they are kept as they are.

    Can I compress several images to the same size limit at once?

    Yes. The size setting applies to every file in the list, so you can add a batch and download them all with Download all (zip).