Toolcin

Compress an image to any size limit

Resize first, then encode to the target size. A 4000-pixel photo squeezed to 20 KB looks broken; the same photo resized to 600 pixels at 20 KB looks normal. The number is a budget, and dimensions decide how far it goes.

Open the Compress to Size tool

An image has two independent costs: how many pixels it contains, and how carefully each pixel is stored. A file-size limit constrains the product of the two, so you choose which one to spend.

Pick your limit

LimitTypical useRealistic dimensions
20 KBExam forms, some visa portals600 px portrait
50 KBJob applications, university forms800 px
100 KBID uploads, insurance claims1000–1200 px
200 KBDocument photos, certificates1600 px
1 MBMarketplace listings, blog images2000–3000 px

Why resizing comes first

Halving the width and height of an image removes three quarters of its pixels. That is a 4× reduction before any compression happens, and the remaining pixels stay clean. Dragging a JPEG quality slider instead keeps every pixel and damages each one.

This is why two files at the same 50 KB can look completely different: one was resized to 800 pixels and gently encoded, the other was a 4000-pixel original squeezed until it gave up.

Format, in one table

FormatUse forAt a fixed byte budget
JPEGPhotographsBest quality per byte for photos
PNGLogos, screenshots, flat artSharp edges, but far larger for photos
WebPWeb imagesRoughly 25–35% smaller than JPEG at similar quality

Upload forms usually accept only JPEG or PNG. If the destination is the web rather than a form, WebP is the better default.

The order that works

  1. Decide the pixel dimensions the destination actually needs. A form that displays a photo at 300 px does not need 3000.
  2. Resize to that, keeping the aspect ratio.
  3. Set the byte target with a small margin — 48 KB for a 50 KB cap.
  4. Inspect the face, or the smallest text, at 100%.

When the limit is impossible

20 KB is below what a detailed photograph can hold. If a form demands it and rejects the result, the problem is usually the dimensions rather than the encoder: crop tighter to the subject, or re-shoot with the phone closer so fewer pixels are needed to describe the same face.

Questions

What is the difference between resizing and compressing?

Resizing changes the pixel dimensions; compressing changes how those pixels are stored. A byte limit is best met by doing both, in that order.

Which format should I use?

JPEG for photographs, PNG for graphics and screenshots, WebP for the web when the destination supports it.

Can I compress several images at once?

Yes, and batch mode keeps each file's name so an application set stays in order.

Are my images uploaded?

No. Everything happens in the browser tab.

Updated 2026-11-16 · written for this site, no trackers, no account.