Skip to content

Resize Image to KB

Set the maximum file size a form allows and get the highest quality image that fits, at the exact dimensions it asks for. Nothing leaves your device.

Share

Drop an image here

JPG, PNG or WebP. It is processed on your device and never uploaded anywhere.

How to use Resize Image to KB

1

Drop in your photo

Choose the image or drag it onto the page. It is read by your browser and never uploaded, which matters when the photo is of your face or your signature.

2

Set the limit the form gave you

Type the maximum file size, such as 50 KB, and pick the pixel dimensions if the form specifies them. Crop to fill suits a photo, Fit inside suits a signature.

3

Download the result

The tool reports the size it achieved and how much of your allowance it used. If it could not fit, it says so rather than handing you a file that will be rejected.

Why hitting an exact file size is fiddly by hand

JPEG quality and file size are related, but not in a straight line. Dropping quality from 95 to 90 can halve the file, while going from 40 to 35 barely moves it, and where those cliffs fall depends entirely on the individual image. A photo of a plain wall compresses very differently from a busy street scene at the same setting. That is why sliding a quality control until you land under 50 KB takes so many tries, and why the number that worked for one photo is wrong for the next.

This tool runs a binary search instead. It encodes the image at full quality first, and if that already fits it stops there, which is one pass. Otherwise it halves the remaining quality range repeatedly, keeping the largest value that still fits, and converges in about eight passes regardless of how the image happens to compress. The result reports how much of your allowance it used, and it is normally over 95 percent, meaning you are getting close to the best quality the limit permits rather than something needlessly degraded.

When even the lowest quality overshoots, the only thing left to give up is pixels. If you allow it, the tool then searches the scale the same way, at a mid quality rather than the floor, so what comes back is a smaller but still sharp image rather than a full-size smear. If you have locked the dimensions because a form requires them, it does not silently shrink your image. It tells you it could not fit.

There is one more judgement built into this. If you have not asked for particular dimensions and the limit is tight, the tool will shrink the image even when it could technically have squeezed the full pixel count in. A 12 megapixel phone photo forced into 50 KB at its original dimensions comes out at around quality 5, which is a smear; the same 50 KB spent on a quarter of the pixels at quality 50 is perfectly legible. It reports when it has made that trade, and it never makes it against dimensions you specified yourself.

Dimensions and file size are two separate requirements

Application forms usually state both, and people routinely satisfy one and fail the other. A 200 by 230 pixel box says nothing about how many kilobytes those pixels take, and a 20 KB limit says nothing about the shape. Set them independently here: the size limit at the top, the dimensions below it.

When a form fixes the dimensions, the aspect ratio rarely matches whatever came out of your camera, so something has to give. Crop to fill centres the image and trims the overflowing edge, which is what you want for a face. Fit inside keeps the whole image and pads the gap with a colour, which is what you want for a signature or a logo where cropping would cut off a stroke. Pick deliberately, because a cropped signature and a padded portrait are both immediately obvious to whoever reviews the form.

Two of the presets here come from physical measurements rather than from any particular form: 600 by 600 is 2 by 2 inches at 300 DPI, the United States passport photo standard, and 413 by 531 is 35 by 45 millimetres at the same resolution, which is the common size on visa and identity documents. The rest are pixel sizes that turn up frequently on application forms. Always read the requirement on your own form rather than trusting a preset list, since portals change their rules without announcing it.

Why this runs in your browser

The images people bring to a tool like this are passport photographs, signatures, and scans of identity documents. Sending those to a stranger's server to be processed, and trusting a privacy policy about how long the copy is kept, is a poor trade for something a browser can do on its own.

Everything here uses the canvas API that is already built into your browser. The file is read from disk into memory, redrawn, and re-encoded locally. There is no upload, no queue, no temporary file on someone else's disk, and no size limit imposed by a server. The practical consequence is that the tool also works with no network connection once the page has loaded.

Frequently Asked Questions

How is this different from a normal image compressor?

A normal compressor asks you for a quality percentage and tells you what file size you got, so hitting a specific limit means dragging a slider and re-checking until you get lucky. This works the other way around: you state the size you are allowed and it searches for the highest quality that fits. Application portals state their limit in kilobytes, never in JPEG quality, so the inversion is the entire point.

Why does my application form reject the photo even though it looks fine?

Almost always one of three things. The file is over the size limit, which is what this tool fixes. The pixel dimensions do not match what the form demands, which is the Dimensions setting here. Or the format is wrong, usually a PNG or a HEIC where the form only accepts JPEG. The form rarely tells you which of the three failed, so set all three deliberately rather than guessing.

Does 50 KB mean 50,000 bytes or 51,200 bytes?

This tool treats 1 KB as 1024 bytes, so a 50 KB limit means 51,200 bytes. That matches how operating systems and most upload validators report file size. If a portal is unusually strict and uses 1000 bytes per KB, set the limit slightly lower than stated and you will be safely under either interpretation.

It could not reach my target. What now?

If the dimensions are locked, quality is the only lever, and below roughly 5 percent quality a JPEG stops getting meaningfully smaller. Allow the tool to shrink the dimensions, or reduce them yourself. If you selected PNG, switch to JPEG: PNG is lossless, so there is no quality dial at all and only removing pixels makes the file smaller.

Why did my image come back with smaller dimensions than I gave it?

Because you did not ask for specific dimensions, and squeezing the original ones into your limit would have required a quality low enough to look mushy. Fewer pixels at a reasonable quality looks better than the full pixel count smeared, at the identical file size, so that is the trade the tool makes by default. If the dimensions matter, choose a preset or enter a custom size and it will hold them exactly.

Will this strip the location data from my photo?

Yes, as a side effect of how it works. The image is redrawn onto a canvas and re-encoded from those pixels, and that process discards every EXIF tag the original carried, including GPS coordinates, camera model, and timestamp. Worth knowing when the photo came off a phone and is about to be attached to an application.

Is my photo uploaded to your server?

No. Every step happens in your browser: reading the file, redrawing it, and encoding it. Nothing is transmitted, and there is no server-side copy to delete. You can confirm this by disconnecting from the internet after the page loads, the tool keeps working.