← All tools

Smaller files, your choice.

Image Compressor

Compress JPG or WebP toward a target KB size, compare the actual result, or batch export a ZIP. PNG is supported; images stay in your browser.

Updated

Choose an output format and quality. Preview the encoded file size before downloading.

Batch compression

Apply the selected format and quality to all images. Review original and output file sizes for each image.

    Target size uses quality reduction for JPG, WebP or AVIF. It may be unreachable; PNG and other formats ignore it.

    Images stay in this browser. Exporting creates a new copy and does not overwrite the source.

    Compressed image

    NO IMAGE

    Ready when you are.

    Choose an image to preview the exported copy.

    ORIGINAL—
    OUTPUT—
    FILE SIZE—

    HOW IT WORKS

    01

    Choose a still JPG, PNG, or WebP image.

    02

    Choose an available output format.

    03

    Compare the original and output sizes, then download the compressed copy.

    Worked examples

    These are reproducible settings, not uploaded customer data. Review the generated result before downloading.

    Example Input / settings Expected result
    Target size (KB, 0 = manual quality) 50 KB Target limit: 51,200 bytes; not guaranteed.

    Current capabilities and limits

    A target of 50 KB means at most 51,200 bytes. The compressor lowers JPG, WebP or available AVIF quality without resizing. It reports when the target cannot be reached; PNG and other formats ignore the target.

    Choose the right format for the image

    JPG and WebP quality settings trade some image detail for a smaller file. PNG keeps pixel values lossless, so its quality control is disabled and the output may remain large.

    The result depends on the source image, dimensions, browser encoder, and selected format. The tool shows the actual output size after encoding instead of promising a fixed reduction.

    Local processing and file limits

    Your image is decoded and re-encoded in this browser. The original file is left untouched, and the exported copy does not preserve most source metadata.

    Inputs are limited to 20 MB, 40 megapixels, and 20,000 pixels per side. Very large images can still use substantial memory on phones and older computers.

    A FEW HELPFUL ANSWERS

    Before you get started.

    Can I compress an image to exactly 50 KB?

    The target is an upper limit, not an exact file size. The tool searches a limited set of quality settings and shows the actual byte size; some images cannot meet the target without resizing.

    Will every image become smaller?

    No. PNG, already-optimized images, and complex image content may not shrink. Compare the displayed sizes before saving.

    Does changing quality change the pixel dimensions?

    No. This tool keeps the source width and height. Use Batch Image Resizer when you also need smaller pixel dimensions.

    Are images uploaded?

    No. Encoding happens in your browser, and this tool does not send image data to a server.

    Feedback