CropKB

Compress Image to Any Exact KB Size

Any KB / MB

Type any target file size from 10KB to 10MB and batch-compress images privately in your browser.

Quick targets:
Choose Images

or drag & drop here · Ctrl+V to paste

JPG, PNG, WebP, HEIC (iPhone) · Processed privately in your browser (zero uploads)

Ready · Files stay on your device.

Quick Summary & Specifications

Last updated: 2026-11-25

Set any custom maximum file size (e.g., 35KB, 75KB, 150KB, 240KB, 1500KB) and CropKB automatically finds the highest-quality MozJPEG or WebP encoding that stays under your cap.

Specification Details
Target Size Range 10 KB – 10,000 KB (10 MB)
Algorithm 8-step binary search on quality + automatic resize fallback
Supported Outputs JPEG (MozJPEG), WebP, PNG
Batch Processing Unlimited files locally in browser
Privacy No uploads, no tracking, no watermarks

How to Use Custom Target KB Compressor

  1. Type your exact target file size in KB (for example: 40, 120, 240, or 800).
  2. Select output format (JPEG, WebP, or PNG) and drop one or more images.
  3. Download individual files once verified under your exact KB limit.

Local Privacy Guarantee: All resizing, MozJPEG compression, DPI metadata patching, and EXIF stripping execute locally in your browser. CropKB does not upload, log, or store any user image.

Frequently Asked Questions

How accurate is the target KB compressor?

For JPEG and WebP, binary search usually lands within 1%–5% below your exact target KB—maximizing image quality without ever exceeding the cap.

Why can PNG sometimes not reach a tiny KB size without shrinking dimensions?

PNG is lossless, so it has no continuous quality slider like JPEG or WebP. To hit a small KB cap in PNG, CropKB progressively scales down dimensions until the lossless PNG fits.

Related Tools