Compress an image to 50 KB or another target size
Application portals and forms often insist on a maximum file size. Pick 20, 50, 100 or 200 KB, or enter your own limit, and the tool looks for the best quality that fits under it.
or drag and drop a file here
JPG, PNG, WebP · up to 20 MB
Privacy: this tool runs in your browser. Your file is not uploaded to our servers. How we handle files
How to use Compress to Target KB
- Choose a JPG, PNG or WebP image, or drag it onto the upload area.
- Select a target: 20 KB, 50 KB, 100 KB, 200 KB, or Custom to type your own value in KB.
- Choose JPG or WebP output. Check which formats your form accepts; JPG is the safer choice.
- Select Compress and wait while different quality levels are tried.
- Review the final size, quality and dimensions, then download the file.
Supported formats and limits
- Input: JPG, PNG, WebP, up to 20 MB per file.
- Output is JPG or WebP, both lossy. PNG output is not offered because PNG has no quality setting to adjust.
- The tool first lowers quality (between 92 and 40). If that is not enough it also reduces the pixel dimensions, keeping the proportions, down to a longest side of 480 px.
- It does not go below quality 40 or 480 px. If the target cannot be met within those floors you are told so and offered the closest result, which is larger than the target.
- Custom targets from 5 KB to 10,000 KB. 1 KB is counted as 1,024 bytes; a few sites count 1,000, so leave a small margin if the limit is strict.
- PNG and WebP transparency is filled with a background colour you choose when the output is JPG.
- If the file is already at or under the target in the chosen format, it is left unchanged.
- Images up to 50 megapixels, with no side longer than 16,384 px.
- Metadata such as EXIF camera details, GPS location and embedded colour profiles is not copied to the output. Rotation stored in EXIF is applied to the pixels first, so the picture stays the right way up.
- One image at a time.
Frequently asked questions
- How does the tool hit the target size?
- It encodes the image repeatedly at different quality levels, narrowing in on the highest quality whose file size is at or under your target. Only if the lowest allowed quality is still too big does it start shrinking the dimensions.
- Will the result be exactly 50 KB?
- It will be at or under the target, usually a little below. File sizes move in steps as quality changes, so landing on an exact byte count is not possible.
- What if my image cannot be compressed to the size I picked?
- The tool stops at quality 40 and a longest side of 480 px, shows the closest size it reached and lets you download that. You can then pick a larger target, switch between JPG and WebP, or crop or resize the picture first.
- Why were the dimensions of my image reduced?
- Lowering quality alone was not enough to fit the target, so the tool also scaled the picture down. The result panel shows the original and new dimensions. If your form requires specific dimensions, resize to those first and then compress.
- Does it work for passport photos and signature scans for online forms?
- It can bring the file under the size limit. It does not check a form's other rules, such as required pixel dimensions, background colour or face position, so confirm those against the form's own instructions.
Related tools
- Compress ImageCompress JPG, PNG or WebP images in your browser. Choose the output format and quality, and see the size before and after with the percentage saved.
- Resize ImageResize a JPG, PNG or WebP to exact pixel dimensions in your browser. Lock the aspect ratio to keep proportions or unlock it to set any width and height.
- Crop ImageCrop a JPG, PNG or WebP in your browser. Drag a crop box with mouse or touch, pick a ratio such as 1:1 or 16:9, or type exact pixel coordinates.
- PNG to JPGConvert a PNG to JPG in your browser. Pick the colour that replaces transparent areas and set the JPG quality. No upload.
Page last reviewed: