Compress Image to Any Size — Free, No Upload

Compress image online free to any exact size in KB — you set the target, the tool reaches it. JPG, PNG and WebP, no upload, files never leave your device.

Drag & drop your image here
or click to choose a file — it stays on your device, nothing is uploaded.

About this tool

Most compressors give you whatever size they feel like; real life gives you a number. A university portal says 150KB, a visa form says 200KB, an employer says 'under 500KB' — and a photo that misses the limit by a few kilobytes is rejected just the same. This general compressor works the other way round: you type the exact target size in KB, or drag the slider, and the tool adjusts quality and dimensions step by step until the image fits at or under your number with the best clarity that number allows.

It handles the three formats people actually meet. JPEG output is the right choice for photographs and strict form limits, because JPEG can be tuned very precisely. WebP output squeezes even smaller for websites and sharing. And 'keep original format' respects PNG files that must stay PNG, shrinking them by dimensions alone. The ready-made 20KB, 50KB and 100KB pages remain available for the common form limits; this page is the flexible one for every other number a portal invents.

Like everything on MTalhaTools, compression runs entirely in your browser. Your photo — a CNIC picture, a signature scan, a family image — is never uploaded to a server, never stored anywhere, and leaves no copy behind when you close the tab.

How to use it

  1. Drop your image onto the panel above, or click it to choose a JPG, PNG or WebP file.
  2. Type your target size in KB, or drag the slider — 100KB is set as a starting point.
  3. Choose the output format: JPEG for forms and photos, WebP for the smallest file, or keep the original format.
  4. Press 'Compress to target size', check the achieved size and preview, then download your finished image.

Where it is used

Tips for a better result

Always type exactly the limit the form states, not a smaller number — the tool uses the whole budget to keep your photo clear, so aiming below the limit only costs quality for nothing. If the smallest reachable result still misses a very tight target, crop the photo tightly first (empty borders waste kilobytes) or reduce empty background in a signature scan. And if a portal also demands exact pixel dimensions, set those first with the Image Resizer, then compress here — size in pixels and size in KB are two different requirements and both must be met.

Frequently asked questions

How is this different from the Compress Image to 20KB page?

That page is a one-click preset for the most common form limit. This page accepts any target you type — 30KB, 150KB, 400KB — plus a choice of output format, for the many portals whose limits are not round numbers.

Will the tool always hit my exact target?

It aims to land at or just under your target, and shows you the real achieved size. Extremely small targets on very large photos may end slightly above the number at the smallest usable quality — the tool tells you honestly and suggests cropping.

Which format should I choose?

JPEG for photographs and form uploads, WebP for websites and sharing where the smallest file matters, and 'keep format' when a PNG must remain a PNG.

Why does a very small target make the photo soft?

A tiny KB budget can only store so much detail. The tool spends that budget as wisely as possible, but a 20KB portrait will always be softer than a 200KB one — that is physics, not a flaw.

Are my images uploaded anywhere?

No. Compression runs entirely in your browser and your image never leaves your device.

Related tools