noderail.io
EN

Compress Image to 50KB, 100KB or Any Exact Size

Compress image to 100KB (or 50KB, 20KB, 200KB — any target you type) is a free in-browser image compressor that shrinks a photo to an exact file size. It automatically finds the highest JPG or WebP quality that still fits your KB limit, downscaling only when it must, then lets you download the result. Drop one photo or dozens, grab them as a ZIP — your images are processed locally and never uploaded. No sign-up, no file limit, no watermark.

100% local — your images never leave this device

Drop images here to compress

or click to choose files — JPG, PNG, WebP, GIF, BMP, HEIC

Nothing is uploaded — compression runs entirely in your browser.

How to compress an image to a target size

1

Add your images

Drag photos onto the box above or click to choose files. JPG, PNG, WebP, GIF, BMP and HEIC are all supported, and every file stays on your device.

2

Pick a target

Choose a preset like 50KB or 100KB, or type any exact KB value. The tool keeps the best quality that still fits under your limit.

3

Download

Save the compressed JPG or WebP — or grab everything as a ZIP. No watermark, no sign-up, done in a second.

Why compress to an exact KB size?

Lots of upload forms enforce a hard size limit and reject anything bigger. Hitting an exact target on the first try saves the endless re-save-and-retry loop:

TargetTypical use
20–50 KBGovernment, exam and visa portals that demand a tiny passport-style photo or signature.
100 KBJob applications, scholarship and bank forms — the most common hard limit.
200–500 KBForum avatars, marketplace listings, CMS uploads and email attachments.
1–2 MBFaster web pages and quick sharing while keeping near-original quality.

Because the result is measured in real time, the file you download is guaranteed to sit just under the size you asked for.

How the compression actually works

When you set a target, the tool re-encodes your image at many different quality levels and uses a binary search to home in on the highest quality whose file size is still under your limit — usually in under eight tries. If even the lowest quality is too big for a very small target (say a 12-megapixel photo down to 20KB), it automatically reduces the resolution and tries again, so you always get a usable image instead of a failure. In Quality mode you control the slider directly, which is handy when you just want a smaller file and don't care about an exact number.

Everything runs on the HTML canvas in your browser. There is no server round-trip, so compressing 30 photos is as private and as fast as compressing one, and it reuses the same in-browser engine behind our crop image and HEIC to JPG tools.

No upload, no limits — unlike most compressors

Popular sites like TinyPNG cap you at a 5MB file and 20 images per batch, and they upload your photos to their servers to do the work. This compressor is different on every count:

Compress image FAQ

How do I compress an image to exactly 100KB?
Drop your photo above, switch to Target file size and pick the 100KB preset (or type 100 in the custom box). The tool searches the JPG quality — and downscales only if it must — until the file lands just under 100KB, then you click Download. It all happens in your browser, so nothing is uploaded.
How can I reduce an image to 50KB or 20KB without too much quality loss?
Pick the 50KB or 20KB target and keep the format on JPG, or switch to WebP which reaches small sizes with less blur. The compressor always keeps the highest quality that fits. For very small targets on a big photo, also set a Max width (e.g. 1000px) so it lowers resolution instead of crushing quality.
Does this image compressor upload my files to a server?
No. Compression runs 100% in your browser using the HTML canvas, so your images never leave your device and are never uploaded. That makes it safe for ID scans, passport photos and confidential documents, and it works offline once the page has loaded.
Is there a file-size or file-count limit?
No. Unlike TinyPNG and similar sites that cap you at a 5MB file or 20 images, this tool has no upload limit because nothing is uploaded — the only ceiling is your device's memory. Drop dozens of photos, compress them to the same target and download them as a ZIP.
What image formats can I compress, and what do I get back?
You can drop JPG, PNG, WebP, GIF, BMP and most HEIC photos. The result is saved as a JPG (best for photographs) or WebP (smaller at the same quality). PNG screenshots and logos are re-encoded to JPG/WebP to reach small KB targets — pick WebP for the smallest possible file.
Why would I compress an image to a specific KB size?
Many websites and government portals enforce a hard upload limit — a job application, visa or exam form may require a photo under 50KB or 100KB, and email or forum attachments often have a few-hundred-KB cap. Targeting an exact size gets your image accepted on the first try without trial-and-error.