Guide
How to Compress an Image to a Specific File Size (KB)
Need an image under 100 KB, 50 KB, or 200 KB for a form or email? Learn how to compress a photo to an exact target file size in your browser — by resizing, adjusting quality, and choosing the right format.
Why forms ask for a specific KB size
Passport and visa portals, job application forms, and email systems often cap the file size of an uploaded image — commonly somewhere between 20 KB and 500 KB. The limit exists to keep storage and transfer costs down and to ensure submissions are processable by systems built for standard document sizes.
A photo straight from a phone is usually 2–10 MB, far above these caps. To get under the limit you reduce the file size — either by compressing (storing each pixel less precisely) or resizing (using fewer pixels), or both.
File size vs dimensions: a quick reminder
File size is the number of bytes (what the KB limit measures). Dimensions are the pixel width and height (what controls how large the image can display sharply). They are independent: a 1000 x 1000 image can be 2 MB or 80 KB depending only on compression.
If a form specifies pixel dimensions and a KB cap, set the dimensions first, then compress to hit the byte target. If it only specifies a KB cap, you have more freedom and can also shrink the dimensions to help.
Step by step: hit a target file size
1. Open the Compress tool and drop in your image. 2. If the photo is much larger than it needs to be, resize it first — fewer pixels is the fastest way to cut bytes. 3. Choose an output format. WebP is smallest; JPEG is the safest if the form requires it. 4. Lower the quality slider in steps and watch the output size shown on each image card. 5. Stop as soon as you are comfortably under the limit, then download and double-check the final size.
Always confirm the exact size of the downloaded file before uploading. Some forms reject oversized files silently, so verifying first saves a confusing rejection.
How to reach common file-size limits
These combinations are starting points — exact results depend on the image content (busy, detailed photos compress less):
• Under 20 KB: resize to roughly 300–400 px on the long side, JPEG quality 60–70. Best for tiny thumbnails or strict portals. • Under 50 KB: around 500–600 px, JPEG/WebP quality 65–75. • Under 100 KB: around 800–1000 px, quality 70–80. • Under 200 KB: around 1200–1600 px, quality 75–82. • Under 500 KB: most 1600–2000 px photos at quality 80 fit comfortably.
Choose the right format to go smaller
At the same visible quality, WebP is typically 25–35% smaller than JPEG, so switching to WebP can put you under a limit without dropping quality as far. Use JPEG when the form specifically requires it, since it has universal compatibility.
Avoid PNG for photographs when chasing a small file size — lossless PNG keeps photos far larger than JPEG or WebP. Keep PNG only for screenshots, logos, or images that need transparency.
When you cannot hit the size without it looking bad
If lowering quality alone makes the image blocky before it reaches the limit, the image simply has too many pixels for that byte budget. Resize the dimensions down first, then apply a moderate quality setting. A 1000 px image at quality 80 almost always looks better than a 4000 px image crushed to quality 30 to hit the same size.
Compare the result at the size it will actually be viewed, not at full zoom. Artifacts that look severe at 100% zoom are usually invisible at the real display size.
Frequently asked questions
How do I compress an image to under 100 KB?
Resize the image to roughly 800–1000 px on the long side, then export as JPEG or WebP at quality 70–80, lowering the slider until the size shown drops under 100 KB. WebP usually reaches the target at higher visible quality than JPEG.
How do I compress a JPEG to 20 KB?
Resize to about 300–400 px on the long side and set JPEG quality around 60–70. At 20 KB the image will be small, so this works best for thumbnails or strict upload portals rather than full-size photos.
Does compressing to a smaller KB size change the dimensions?
No — lowering the quality setting reduces file size while keeping the same pixel width and height. Dimensions only change if you also resize the image.
Why can't I get my image small enough without it looking blurry?
The image likely has too many pixels for the byte budget. Resize the dimensions down first, then use a moderate quality setting — that produces a far better result than crushing a huge image to very low quality.