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.
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.
Choose an image and tell us the maximum file size.
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.
Follow the maximum stated by your upload form. When several sizes are allowed, the larger budget gives the compressor more room to preserve detail.
| Maximum size | When to choose it | What to check |
|---|---|---|
| Compress to 20KB | A form with a strict 20KB photo limit | Large photos may need fewer pixels. Crop to the subject first. |
| Compress to 50KB | A small portrait with a 50KB cap | Check facial detail and the form's minimum pixel dimensions. |
| Compress to 100KB | An avatar or registration image capped at 100KB | Inspect fine detail; a byte limit does not set the pixel dimensions. |
| Compress to 200KB | A photo upload that allows up to 200KB | Use 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.
Check these three things before choosing a smaller number.
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.
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.
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.
Choose a JPG, PNG or WebP from your device, or try the sample illustration. Start from the original to avoid repeated JPG losses.
Use the maximum your form allows. Select 20, 50, 100 or 200 KB, or enter a custom target from 1 to 25,000 KB.
Inspect the preview, file size, pixel dimensions and output format. Download the image after checking any additional upload requirements.
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.
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.
No. The image is read and compressed inside your browser. Your files never leave your device during compression.
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.
Usually. Smaller file limits can require lower JPEG quality or smaller dimensions. Try the largest file size your form allows for the best result.
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.
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.