Skip to content
◈CompressInKB

Compress an image toward a KB target — free and private

Choose a size target and inspect the actual output; a target may not always be achievable.

Drop files here, or

JPG, PNG, WebP, AVIF, HEIC, GIF, BMP up to 50.00 MB · up to 30 files

Processed on this device — nothing is uploaded

Add a file to begin

How to use compress image

  1. 1Drop your image into the box above or click to browse — it is read straight from disk into the page, with no upload step to wait for.
  2. 2Set the target size your form demands. If the requirement is a window such as 20–50 KB, aim for the middle so the portal's own re-encoding cannot push you over the ceiling.
  3. 3Pick the output format. JPG is the safe answer for government and bank portals; WebP and AVIF are better sizes but are frequently rejected by upload widgets.
  4. 4Switch on "land on the target" if the portal also enforces a minimum size — the engine adds inert bytes rather than shipping a file that is too small.
  5. 5Run it, then read the result card: final size, exact pixel dimensions, the quality chosen and how many encodes it took. Download and keep the original.

Why this tool, and why browser-side

Indian online forms do not ask for "good quality". They ask for 20 KB to 50 KB, and they reject anything outside the band. That is a search problem — find the best quality whose encoded output lands inside the window — and it is exactly what a binary search solves in about eight iterations.

Most "image compressor" sites upload your photo to a server, which is a real problem when the photo is a selfie next to your signature and an ID number. Nothing leaves this tab.

Batch mode matters for documents: a 40-page application can need a dozen images resized to different targets, and doing it in one pass saves a tedious afternoon.

Byte limits are enforced by the form before any human sees the file, and the error message rarely says which requirement failed. Hitting the number in advance is what turns a rejected upload into a completed application.

The compressor tests encoder settings against the requested byte window. Output size is not perfectly predictable, and some windows cannot be reached; read the result card and inspect the image.

Photographs of identity documents, signatures and marksheets are exactly the files that should not be handed to a stranger's server, and they are also the files that most often need compressing. Processing them in the tab removes that trade-off entirely.

This tool exists for images handled in a hurry: no queue, no account, no upload, and a result you can verify on the spot. The explanation below is the same one we would give a colleague who asked how it works.

On a phone, memory is the real constraint rather than any size limit. A 12-megapixel photograph is about 36 MB once decoded into pixels, so compiling a batch of twenty and holding every result in memory at once will get a mobile browser killed well before it runs out of storage. Process batches of ten to fifteen on a phone; on a laptop the same job is unremarkable.

Pixels, DPI metadata and physical print size are distinct. For example, 35 mm at 300 pixels per inch is approximately 413 pixels, but pixels alone cannot guarantee a printer produces a 35 mm image. If the instructions also require DPI metadata or a measured print, check those separately.

Accepted inputs are JPEG, PNG, WebP, AVIF, HEIC, GIF and BMP images up to 50 MB each. SVG, HTML and other script-bearing formats are refused outright rather than sanitised, because a file that can execute code has no business being re-encoded — and an upload field that accepts one is a security hole rather than a feature. Several files can be queued where the workbench supports it. Batch, page and memory limits apply; check every output.

How it works under the hood

The image engine tests compression settings against the requested byte target. For general image compression it may also reduce dimensions; PNG and other formats behave differently. The output card reports the actual file size and dimensions, and warns if the target was not met. Inspect the downloaded image for legibility. Encoding is monotonic in quality — a higher setting always produces a larger file — which makes the size search a binary search rather than a scan. The engine predicts the working resolution from the ratio of the original's encoded size to your target, because byte count scales roughly with pixel count; that prediction is what keeps a 12-megapixel phone photograph down to a couple of seconds. If the target is unreachable at any quality, the dimensions are stepped down along a geometric ladder and the path taken is reported. Where a portal enforces a floor as well as a ceiling, standards-compliant padding — a JPEG comment segment or a PNG text chunk — adds bytes that no decoder renders, leaving every pixel untouched. The encoder writes a fresh image rather than editing the original in place, which means colour profile handling is consistent and metadata is dropped deliberately. Quality is chosen by measured search over the encoded output, so the number reported is the actual byte count of the file you are about to download — not an estimate from a table of typical sizes.

Frequently asked questions

Why can my 12 MP photo not reach 20 KB?

Twenty kilobytes is around 20,000 bytes — roughly 1.5 bits per pixel for a 12 MP image, which is below the practical floor of JPEG at any quality. The automatic dimension-shrink fallback handles this by scaling the image down first, then compressing, which is the only way to reach very aggressive targets while staying presentable.

JPEG, WebP or AVIF — which should I pick for a form upload?

JPEG. Every Indian government portal accepts it; WebP and AVIF are frequently rejected by older upload widgets even though they are technically superior. Use AVIF or WebP only for websites and apps you control.

Does compressing remove my EXIF data?

Yes — re-encoding drops EXIF entirely, including GPS coordinates and camera serial numbers. For a photo of your documents that is a privacy win, not a loss.

What does the ±1 KB tolerance mean?

For targets below 100 KB the engine keeps searching until it is within 1 KB of your number, so a "50 KB" target typically lands between 49 and 50 KB rather than at 43 KB. Tighter matching means the file is as close as possible to the maximum a portal allows, with no rejections.

Why did my file land at 49 KB instead of exactly 50 KB?

Quality is an integer, so on a large image one step can be tens of kilobytes. The engine returns the largest encode that does not exceed your ceiling. If you need the exact figure, the padding option fills the remainder without altering image data.

Will compressing make my photo look worse?

At the quality this engine chooses, usually not visibly — it searches for the highest setting that fits. Where a target is genuinely aggressive, reducing resolution preserves readability better than squeezing quality to its floor, and the tool prefers that order.

Does compressing remove EXIF and GPS data?

Yes. Re-encoding writes a fresh file, so GPS coordinates, the camera model and the capture timestamp are all dropped. For a photograph of a document that is a privacy gain.

Why is my file under the minimum size?

Some portals reject files that are too small as well as too large. Leave the padding option on and the engine will add inert bytes to reach the floor — the image itself is not touched.