FREE ONLINE IMAGE TOOL

Compress Image to a Target Size in KB

Make an image fit your upload limit. Choose 20, 50, 100 or 200 KB, or enter your own maximum size. Compression happens on your device; the result aims to stay at or below your target.

✓ Free to use✓ No signup✓ Private by design
THE TOOL

Make your image fit.

Choose an image and tell us the maximum file size.

100% browser based
Drop your image hereor from your deviceJPG, PNG or WebP · Up to 25 MB
See a real compression result

Try a generated sample illustration. Its actual file size and dimensions are measured in your browser.

Files are processed locally in your browser and are never uploaded to our servers.

Maximum output size
KB
Quick select
Your images never leave your device.No upload. No account. Just a smaller file.
CHOOSE YOUR LIMIT

Which KB target should you use?

Follow the maximum stated by your upload form. When several sizes are allowed, the larger budget gives the compressor more room to preserve detail.

Compare the four preset limits
Maximum sizeWhen to choose itWhat to check
Compress to 20KB A form with a strict 20KB photo limitLarge photos may need fewer pixels. Crop to the subject first.
Compress to 50KB A small portrait with a 50KB capCheck facial detail and the form's minimum pixel dimensions.
Compress to 100KB An avatar or registration image capped at 100KBInspect fine detail; a byte limit does not set the pixel dimensions.
Compress to 200KB A photo upload that allows up to 200KBUse the larger allowance when permitted to give detail more room.

An upload may also require a minimum file size, a specific format, crop or pixel dimensions. This tool does not guarantee that a receiving form will accept the result.

BEFORE YOU COMPRESS

File size is only part of a successful upload.

Check these three things before choosing a smaller number.

KB and pixels are different limits

KB measures the file's bytes; pixels measure its width and height. Compression tries the original dimensions first and may reduce them. It does not set an exact width, height or crop.

The target is a maximum

A result can be smaller than the number you enter. The tool uses 1 KB = 1,024 bytes, and an exact byte count is not guaranteed. If a portal uses 1,000 bytes per KB, choose a slightly smaller target.

Check the format your form accepts

An image that needs compression becomes JPG, with transparent areas filled white. A source already below the target is returned unchanged, including its original format.

HOW IT WORKS

Three steps to a file that fits.

01

Add your original image

Choose a JPG, PNG or WebP from your device, or try the sample illustration. Start from the original to avoid repeated JPG losses.

02

Enter the permitted KB limit

Use the maximum your form allows. Select 20, 50, 100 or 200 KB, or enter a custom target from 1 to 25,000 KB.

03

Check the result and download

Inspect the preview, file size, pixel dimensions and output format. Download the image after checking any additional upload requirements.

SUPPORTED FORMATS

JPG, PNG and WebP input. JPG when compressed.

Choose any of these three formats. When compression is needed, the tool creates a JPG; transparent pixels become white. Images already under the target stay unchanged. If your upload requires PNG, WebP or an exact crop, check the output before submitting.

JPG photo inputPNG white background in JPGWebP JPG if compressed
GOOD TO KNOW

Image compression questions

Can I compress an image to an exact KB size?

Enter the maximum size you need. PixelsToKB searches for a result as close as practical while keeping the output at or below your target. Encoder behavior varies by image, so an exact byte count cannot be guaranteed.

Are my images uploaded?

No. The image is read and compressed inside your browser. Your files never leave your device during compression.

Which formats can I use?

You can select JPG, PNG, or WebP files. Images that need compression are saved as JPG. PNG transparency is placed on a white background. Files already below the target keep their original format.

Will reducing the size affect image quality?

Usually. Smaller file limits can require lower JPEG quality or smaller dimensions. Try the largest file size your form allows for the best result.

Does compressing to KB also resize the image in pixels?

KB measures file size; pixels measure width and height. The tool first tries the original dimensions, then reduces them if quality changes alone cannot meet the limit. It cannot enforce an exact width, height or crop required by a form.

Why does a form still reject my compressed image?

Check the required format, dimensions, aspect ratio and any minimum file size. This tool counts 1 KB as 1,024 bytes; a portal may count 1 KB as 1,000 bytes. If the output is just above the portal's byte limit, use a slightly smaller target.

OTHER FILE LIMITS

Need a different size?

Compress to 20KB Compress to 50KB Compress to 100KB Compress to 200KB