Compress Image to Size
Fit a JPG, PNG or WebP image below a file size limit in your browser.
Input: JPG, PNG or WebP, up to 20 MiB. Maximum decoded dimensions: 8,192 px per edge and 24 megapixels.
1 KB = 1,000 bytes. Output will be below this limit, not exactly equal. Enter 1–20,000 KB.
If the limit cannot be reached, we will ask you to change settings.
Transparent areas become white in JPG. Smaller files can lose quality. This tool does not establish passport or visa acceptance.
Choose a JPG, PNG or WebP image. Set a size limit to begin.
Processing happens in your browser. Images are not uploaded to a compression service. Changing settings, cancelling, or clearing removes the previous download.
Prefer a manual quality slider? Try the Image Compressor.
An upload form may reject an otherwise usable image because its file is too large. Set the maximum size required by your destination, select an existing JPG, PNG, or WebP file, and generate an output under that limit in this browser. An output can be larger than an already-small source, especially when changing formats. The original is not modified. The result includes exact bytes, pixel dimensions, and output format so you can check it before uploading it yourself.
This tool uses decimal kilobytes: 1 KB means 1,000 bytes, so a 100 KB limit means at most 100,000 bytes. Some systems use KiB or describe their limits differently. Check the destination’s actual requirements and choose a slightly smaller target if needed. The tool aims to stay below the limit, not to produce an exact byte count, and it never adds padding to claim an exact match.
Keep original pixel dimensions is enabled by default. The tool tries a bounded set of encoding-quality settings and checks each actual output. If no tested candidate fits at the original dimensions, it reports the problem instead of silently reducing the resolution. You can then increase the target or explicitly allow smaller dimensions. Smaller files can lose fine detail, so compare the previews and inspect your download for legibility.
Compression can change metadata, color appearance, and image quality. JPG uses a white background for transparent pixels; WebP preserves transparency when supported by the browser. File size, pixel dimensions, and format alone cannot establish passport or visa compliance. Some application routes prohibit photo editing. Always follow the official requirements for your specific application instead of treating a successful download as approval.
How it works
- Choose an existing image. Select or drop one JPG, PNG, or WebP image up to 20 MiB. Decoded images must not exceed 8,192 pixels per edge or 24 megapixels. HEIC and animated formats are not part of this tool.
- Set an upper limit. Enter a whole number from 1 to 20,000 KB and choose JPG or WebP. Keep the original pixel dimensions, or explicitly allow smaller output if your form permits it.
- Verify and download. Compress, compare the actual bytes and dimensions, then download. The link appears only for a verified result below your chosen byte limit. Changing the input or settings invalidates the previous result.
Frequently asked questions
Can I compress an image to exactly 100 KB?
The goal is an output of at most 100,000 bytes, not an exact match. An image below that size already meets this tool’s limit. The result shows the precise bytes so you can compare them with your destination’s requirements.
Will the original pixel dimensions be preserved?
Yes, while Keep original pixel dimensions is enabled. If no tested quality setting fits, the tool reports an error. Disable that setting only if your destination allows a smaller image; the result clearly shows the final dimensions.
Is this lossless, and what happens to transparent backgrounds?
Arbitrary size limits cannot be guaranteed without quality loss. JPG output is lossy and composites transparency onto white. WebP retains alpha when supported, but compression may still affect visible details. Keep your original file and inspect the result.
Are my photos uploaded or stored?
No photo is sent to a compression service or saved in a tool history. Processing takes place in your browser after the page loads. A reload can need the network, and downloading saves a file only when you choose the download action. Cancelling discards results but may not immediately stop a native decode already in progress.