Free image tool

Image Compressor – Compress Images to 100KB, 50KB or 20KB

Reduce image size in KB for upload forms, email and websites. Pick a target size or a quality level, drop in one photo or a whole batch, and download smaller JPG or WebP files. Your images never leave your device.

Compression mode

What is an image compressor?

An image compressor makes a picture file smaller, measured in kilobytes (KB) or megabytes (MB), while keeping it looking as close to the original as possible. A photo straight from a phone camera is often 2 to 6 MB. Many job portals, exam application forms and government websites will only accept a photo under 100 KB, 50 KB or even 20 KB.

The RandomCount Image Compressor solves this in two ways. In Target size mode, you tell it the size you need, such as 100 KB, and it searches for the best quality that fits under that number. In Quality mode, you choose the quality level yourself and see how small the file becomes. Both modes work on one image or a whole batch, and everything happens inside your browser.

Your photos are not uploaded anywhere. The compressor uses your browser's built-in canvas to read and re-save each image on your own device, so it is safe for ID photos, signatures and private pictures.

How to compress an image to 100KB, 50KB or 20KB

  1. Add your images. Drag them onto the box or click it to choose files. You can add several at once.
  2. Choose Target size mode and tap a quick button: 20 KB, 50 KB, 100 KB, 200 KB, 500 KB or 1 MB. For any other number, type it into Custom target size.
  3. Pick the output format. JPG is accepted by almost every form. WebP is usually smaller and is great for websites.
  4. Optionally set a maximum width or height. Many forms want a small photo, for example 600 pixels wide. Setting this first often gives better quality at the same file size.
  5. Check the result. Each image shows its old size, new size, the percentage saved and its new dimensions.
  6. Download each file on its own, or use Download all to save every compressed image one after another.

Changing a setting re-compresses everything in the list automatically, so you can try 50 KB, then 100 KB, and compare without adding the files again.

How the target size compression works

JPG and WebP are “lossy” formats. When they are saved, a quality number from 0 to 100 decides how much fine detail is thrown away. Lower quality means a smaller file, but too low and you start to see blocky patches and smudged edges. The trouble is that the same quality gives very different sizes for different photos.

Sometimes even a very low quality is still too big. A 12-megapixel photo simply has too many pixels to fit into 20 KB. In that case, the tool shrinks the width and height step by step, always keeping the original shape, and searches again until the file fits. The new dimensions are shown next to each result so you always know what you are getting.

Why the result is slightly under your target

Exact sizes are not possible with lossy formats, because the file size jumps in small steps as quality changes. The compressor always stays under your limit, never over it, so a 100 KB target might produce a file of 92 KB or 97 KB. There is also a second reason. Some websites count 1 KB as 1,000 bytes and others count it as 1,024 bytes. To pass both kinds of check, the tool treats 100 KB as 100,000 bytes. Your computer may then show that file as about 97.6 KB, which is still well inside the limit.

Typical results: what size can you expect?

Every photo is different, so treat these figures as a rough guide for a typical phone photo, not a promise.

Target sizeGood forWhat usually happens
1 MB / 500 KBEmail, sharing, print previewsFull size kept, quality stays high
200 KBBlog and website imagesLooks good, especially at 1,200–1,600 px wide
100 KBJob portals, profile photos, many formsGood quality at around 800–1,200 px wide
50 KBApplication and exam formsFine for a face photo; large photos get resized
20 KBSignatures, small ID photosImage is made smaller; best with a set max width

Photo compressor for form upload

Exam boards, universities, passport and visa portals, job sites and bank KYC pages often set strict limits for photos and signatures. They frequently ask for a size range, such as “between 20 KB and 50 KB”, and sometimes exact pixel dimensions too. The rules differ from form to form, so always read the instructions on the page you are filling in.

Tips for upload forms

JPG or WebP: which output format should you choose?

Compress JPEG

JPG (also written JPEG) works in every browser, phone, email app and upload form. It is the safe choice for documents and forms. JPG cannot store transparency, so any transparent parts of a PNG are filled with white. The tool warns you when this happens.

Compress to WebP

WebP usually produces a smaller file than JPG at similar visual quality, and it keeps transparency. It is ideal for websites and blogs. Some older software and some forms do not accept it. Safari and a few other browsers cannot create WebP files, so the tool switches to JPG there and tells you.

Need to change format without compressing? Try JPG to WebP, PNG to JPG or WebP to JPG. iPhone photos in HEIC format may not open in every browser, so convert them first with HEIC to JPG.

Compressing images for a faster website

Large images are a common reason web pages load slowly, because visitors must download every byte before the picture appears. The best approach is to resize the image to the largest size it will actually be shown at, then compress it.

Set a Max width such as 1,600 px for full-width banners or 800 px for images inside an article, choose WebP, and use the quality slider at around 75–80%. For a full walk-through, read our guide on how to resize images for faster website loading.

Quality mode: when to use the slider

Target size mode is best when a form gives you a hard limit. Quality mode is better when you care more about how the image looks and just want it smaller. As a starting point:

If the compressed file turns out larger than your original, for example because the original was already well compressed, the tool keeps your original file and tells you so.

Good to know

Other free tools that pair well with the compressor include the Background Remover and Image to PDF, which is handy when a form asks for a single PDF of several scanned pages.

Frequently asked questions

My exam form says the photo must be between 20 KB and 50 KB. What should I set?
Type 45 into Custom target size. The result lands a little under 45 KB, which keeps you safely inside the range at both ends. If the form also gives pixel dimensions, enter them in Max width and Max height first so the tool has fewer pixels to squeeze.
How does the tool decide which quality to use?
It first saves the image at 92% quality. If that is already under your target, it stops there. If not, it checks 25% quality and then narrows the gap between the two in seven steps, keeping the highest setting that still fits.
What happens when even 25% quality is too big?
The width and height are reduced, keeping the same shape, and the quality search runs again. The new size in pixels appears next to the result. If the image reaches the smallest possible size and still cannot fit, a note says so.
Does 100 KB mean 100,000 bytes or 102,400 bytes here?
100,000 bytes. Using the smaller number means the file passes whichever way an upload form counts kilobytes. Windows may label that file as about 97.6 KB, which is still under the limit.
Why did I get my original file back instead of a compressed one?
Either the photo was already under your target in the same format, or re-saving it would have made it bigger. In both cases the tool keeps the original untouched and explains why under the file name.
What happens to animated GIFs?
Only the first frame is kept, because the browser draws a single frame onto the canvas before saving it as JPG or WebP. For an animation, keep the original GIF or convert it with a video tool instead.
Which files can I add, and how large can they be?
JPG, PNG, WebP, GIF and BMP files of up to 50 MB each. Files of any other type, or files renamed to look like images, are rejected with a short message. iPhone HEIC photos need converting to JPG first.
What are the downloaded files called?
The original name with -compressed added, so holiday.png becomes holiday-compressed.jpg (or .webp if you picked WebP). Download all saves them one after another, a moment apart, so your browser may ask once to allow several downloads.
Why is the WebP option greyed out?
Your browser cannot create WebP files from a canvas, so the option is disabled and JPG is used instead. Another browser such as Chrome, Edge or Firefox lets you choose WebP.
Will my photo look worse after compressing?
At large targets like 500 KB or 1 MB you are unlikely to notice a difference. At 50 KB or 20 KB, fine texture such as hair or grass softens and big photos are scaled down, so check the preview before you upload it.

More free image tools

Hand-picked articles on the same topic as this tool, with limits, examples and tips.

Latest Articles & Guides

Read our newest tutorials, guides and helpful articles from RandomCount.

View All Articles

AK

About the Author

· Founder & Creator of RandomCount

Ashish K. creates and reviews the free online tools and educational guides on RandomCount. RandomCount focuses on making everyday digital tasks easier through practical tools, clear instructions and useful examples.

This page explains how image compression works and how to reduce a photo to a target size such as 100KB, 50KB or 20KB.

More from Ashish K. →