Skip to main content

Custom File Size Reducer

Image Size Reducer in KB

Interactive file size reducer for JPG, PNG, and WebP images. Set a target from 5 KB to 5000 KB and inspect the before-and-after comparison.

A smaller file starts here.No sign-up
Maximum size

Drop your image here
browse files

JPG, PNG or WebP → at most 20.0 KB

Max 15 MBMax 24 MPPaste from clipboard
01 · Choose your settings
KB

20,000 bytes maximum · 1 KB = 1,000 bytes

Auto keeps JPEG inputs as JPEG and uses WebP for other inputs when supported. JPEG fallback uses a white background.

Zero server uploads: Processed in local browser memory
Decimal bounds: 20 KB = 20,000 bytes verified
  • Free to use. No account needed.
  • Your images stay on your device.
  • Check the preview and exact file size.
JPG · PNG · WebPUp to 15 MB · 24 MP
A little help getting the right result

Print size to pixels, crop fit and JPG vs PNG

Convert a form's centimetre or inch size into exact pixels, see whether your photo needs a crop or a white margin, and compare real measured file sizes by format. Sizes are common examples; confirm your current notice.

1. Print size → exact pixels

276 × 354 px at 200 DPI (0.1 MP). Formula: pixels = round(cm ÷ 2.54 × DPI).

2. Fit your photo into the required box

Centre crop · aspect difference -13.7%

Crop 13.7% of the source to a centred 3000 × 3450 px window, then scale to 200 × 230 px. Keep the face centred; never stretch.

Centre crop window
3,000 × 3,450 px (13.7% removed)
Fit on white
173 × 230 px image, 13.5% margin
200 px printed 3.5 cm wide
≈ 145 DPI

Exact 200 × 230 px canvas · source crop (sx, sy, sw, sh) = (0, 275, 3000, 3450) → (dx, dy, dw, dh) = (0, 0, 200, 230)

The main compressor reduces bytes and may shrink dimensions. The exact-pixel exporter keeps the canvas at exactly 200 × 230 px, crops or pads on white in your browser, and lowers JPEG quality only.

3. JPEG vs PNG vs WebP under a KB limit

Measured bytes for ID photo 200 × 230 px against 20,000 bytes
FormatMeasured bytesFits 20 KB?Header bytesAccepted by forms
JPEG ★7,503Yes (12,497 B spare)FF D8 FFAlmost always
PNG55,093No (+35,093 B)89 50 4E 47Some forms
WEBP3,110Yes (16,890 B spare)52 49 46 46 … 57 45 42 50Rarely

Use JPEG: 7,503 bytes fits. Lossless PNG is 55,093 bytes — over the 20,000-byte limit — because continuous-tone photo pixels barely compress without loss.

Portals read the first bytes of the file, not its name. A PNG renamed to .jpg still starts with 89 50 4E 47 and can be rejected; a real JPEG starts with FF D8 FF. Re-encode instead of renaming. Measured on seeded test images (JPEG quality 85, lossless PNG, WebP quality 80).

Exact-pixel photo export (crop or white pad)

Make a JPEG that is exactly the selected pixel size, then search JPEG quality so the file stays at or under your maximum. The photo is never stretched. Sizes are common examples; confirm your current notice.

Choose a JPG, PNG, WebP or HEIC photo. It stays on this device.

Box 200 × 230 px · Centre crop to fill · example window 20,480–50,000 bytes

Output is always a JPEG (header FF D8 FF) on a white background, so transparency becomes white. The tool checks the downloaded bytes and pixel size; it does not check face position, background colour or live-photo rules.

How to Prepare Your Image in 3 Steps

  1. 1

    Select or Drop Image

    Choose a supported static JPG, PNG or WebP file up to 15 MB and 24 megapixels. Animated images and PDF files are not supported.

  2. 2

    In-Browser Compression

    Your browser tries quality and dimension settings within its processing limits. Time depends on the file and your device; a matching result is not guaranteed.

  3. 3

    Download Verified File

    Download after checking the result against your destination’s file type, size and dimension requirements.

A GOOD FIT, NOT JUST A SMALL FILE

Make every kilobyte count.

How compression works

Choose the right output format

Use JPG when your form asks for a photograph in JPEG format. JPEG replaces transparent areas with white. Use WebP when the destination accepts it and you need a smaller file or transparency.

PNG is supported as an input. Downloads are JPEG or WebP; this tool does not export PNG or PDF.

Small enough, and still readable

Compression can soften details and reduce pixel dimensions. Check faces, letters and signature strokes in the comparison before downloading. File size in KB and image dimensions in pixels are different requirements.

For a strict 20 KB maximum, this site checks against 20,000 bytes. See why that differs from 20 KiB.

Supported inputs are static JPG, PNG or WebP files up to 15 MB and 24 megapixels. Before compression, the working image is limited to 12 megapixels; larger sources are reduced proportionally even if a generous byte limit is selected. The search may reduce dimensions further. Some images cannot reach the selected maximum within the time, attempt and minimum-dimension limits. The tool does not pad a smaller result to an exact size or enforce a minimum file size.

Still getting an upload error?
  • Check the destination’s required file type. A small WebP file will not work in a JPG-only field.
  • Check both minimum and maximum file size. A result under 20 KB may also be below a required 10 KB minimum; this tool enforces a maximum only.
  • Check the required pixel dimensions, crop, background and photograph date. This compressor does not set an exact width, height or DPI.
  • If the result is blurry, crop away unnecessary background in an image editor first, then try again. Choose a larger target only if the destination allows it.

Frequently Asked Questions

Can I reduce a photo from several MB to 20 KB?

Often, yes. Inputs up to 15 MB and 24 megapixels are accepted; the working image is limited to 12 megapixels, then quality and dimensions are reduced. Some images cannot reach very small targets.

Can I set a custom target in kilobytes?

Yes, choose from presets (10KB, 20KB, 50KB, 100KB, 200KB, 500KB) or enter a custom maximum in KB. One KB means 1,000 bytes here.