Tech Unbloated
Tool

Compress an Image to an Exact KB Size

Shrink a photo to the size a form demands, such as under 100 KB, right in your browser with nothing uploaded. Type the limit, drop the photo, and the result comes out at or just under it.

  • No upload
  • No daily cap
  • Exact KB target
  • Works offline

Compress an Image to an Exact KB Size Tool

Drop JPG, PNG, or WebP images here

Compresses directly in your browser. Nothing leaves your device.

Target size
KB
KB
Resize (optional)

No daily cap, no sign-up. Batch size depends on your device.

Advertisement

What Changes When You Compress

Property Result
Quality Reduced as far as needed to hit the size, and no further.
File size At or just under your target, counted at 1,000 bytes per KB.
Dimensions Unchanged unless the target cannot be reached, or you set a width and height.
Format Output is JPG. JPGs already under the limit return unchanged.
Transparency Removed on PNG or WebP inputs and filled with white or a color you pick.
Metadata Removed whenever the photo is re-compressed. A JPG already under your limit is returned untouched, metadata included.
Advertisement

How to Compress an Image to 100 KB

Type 100 in the target size field, or click the 100 KB preset above, then drop your photo and press Compress. The compressor tests MozJPEG quality settings in your browser until the file lands at or just below 100,000 bytes.

Every preset treats 1 KB as 1,000 bytes rather than 1,024 bytes. That way a compressed image passes portals that count decimal kilobytes as well as portals that count binary kibibytes.

How to Resize a Photo for a Form

Enter the upload limit alongside any width and height requirement in pixels. If you set one side, the other scales in proportion; if you set both, the photo is center-cropped to fit without stretching.

When a small limit cannot be met at quality 10, the tool shrinks pixel dimensions in measured steps until the JPG fits. Most everyday photos hit 50 KB or 100 KB at full resolution without touching their width or height.

Does Compressing Reduce Quality?

Yes, by as little as your limit requires. Across our 20-image test set, reaching 100 KB held a mean SSIM score of 0.9950, and targets of 200 KB and up averaged 0.9988 or higher.

At tight targets like 20 KB on high-resolution portraits, softer textures or slight blockiness will show on close inspection. Any JPG that already sits below your target, with no pixel resize requested, is returned byte for byte without re-encoding.

What If the Form Asks for a Size Range?

Fill in the minimum size box as well, such as 20 KB minimum and 50 KB maximum for passport and visa portals. Once a pass fits below the upper limit, the search raises JPG quality up toward 100 so the file stays above your floor.

Small icons or flat screenshots can sit below a minimum even at maximum quality. When that happens, the row notes that the image hit quality 100 without artificially padding bytes.

Is My Image Uploaded?

No. Decoding, resizing, and MozJPEG encoding run inside local Web Workers on your device, so passport photos, signatures, and application IDs never leave your browser.

Want to strip camera location without changing file quality? Use the Remove Metadata From a Photo tool instead.

Measured Results

Results across Tech Unbloated’s 20-file JPG test corpus compressed locally with MozJPEG and @jsquash/resize Lanczos3 at 1,000 bytes per KB.

Target Preset Files Under Limit Resized Needed Mean SSIM Median Time
20 KB (20,000 B) 20 / 20 1 / 20 0.9645 121.5 ms
50 KB (50,000 B) 20 / 20 0 / 20 0.9854 36.8 ms
100 KB (100,000 B) 20 / 20 0 / 20 0.9950 37.1 ms
200 KB (200,000 B) 20 / 20 0 / 20 0.9988 37.5 ms
500 KB (500,000 B) 20 / 20 0 / 20 0.9991 36.6 ms
1,000 KB (1 MB) 20 / 20 0 / 20 0.9991 36.9 ms

We benchmarked two search strategies at 20 KB and 50 KB across all 20 files. Lowering quality before resizing finished 28% faster on average at 20 KB (663.9 ms vs 919.4 ms when resizing at quality 40) with nearly identical SSIM (0.9645 vs 0.9646) and kept original dimensions on 19 of 20 images.

Uses MozJPEG, @jsquash/png, @jsquash/webp, and @jsquash/resize locally in your browser. See open-source licenses.

Latest From Tech Unbloated

All articles