How to reduce an image to a specific file size in KB or MB
Sooner or later most people meet a form that says something like “photo must be under 100 KB” or “maximum attachment size 2 MB.” Shrinking an image until it lands under such a limit by trial and error is slow: you compress, check the size, compress again, and often end up with a picture that is far smaller, and far uglier, than it needed to be.
This tool does that search for you. Choose a target size, upload your picture, and it looks for the highest quality that still fits underneath your limit. Everything runs inside your browser, so your photo is never sent to a server. This guide explains how the process works, how to choose a sensible target, and what to do when a very small limit makes the picture look rough.
What determines an image's file size?
Three things decide how many kilobytes a picture takes up: how many pixels it has, how much detail those pixels contain, and how aggressively the file format compresses them. A photo that is 4000 × 3000 pixels has twelve million of them, and even after JPG compression it can easily weigh several megabytes.
That gives you two levers for reaching a target. You can lower the quality setting, which makes the compressor discard more fine detail, or you can lower the resolution, which means there are simply fewer pixels to store. Quality is the gentler lever to begin with, but once it has been pushed very low, shrinking the dimensions usually gives a better-looking result than squeezing quality further.
How the tool finds the right quality
When you press Resize, the tool encodes your picture as a JPG at several different quality settings, measuring the size of each result. Like a game of “higher or lower,” it narrows in on the best setting that still comes in at or under your target. The outcome is the sharpest version of your image that fits, rather than an arbitrary heavy-handed reduction.
If your target is so small that even the lowest usable quality cannot meet it at the current dimensions, the tool automatically makes the picture slightly smaller and tries again, repeating this a few times. This mirrors what a person would do by hand, and it means you will usually get a file under your limit even from a large photo. The result is saved as a JPG, which is the format almost every upload form expects.
KB, MB, and the 1024 rule
File sizes are measured in bytes. One kilobyte (KB) is 1,024 bytes, and one megabyte (MB) is 1,024 kilobytes, which is how this tool and most operating systems count them. Some websites use 1,000 instead, so a limit of “100 KB” can be interpreted slightly differently. If a portal is strict, aim a little below the limit, for example 95 KB for a 100 KB cap, to leave a safety margin.
The dropdown includes the most common targets (20 KB, 50 KB, 100 KB, 200 KB, 500 KB, 1 MB, and 2 MB), plus a Custom option where you can type any value and switch between KB and MB.
What quality can you expect at each size?
There is no single answer, because how well a picture survives compression depends on its content. As a rough guide, a typical photograph behaves like this:
| Target | What it is good for | What to expect |
|---|---|---|
| 20 KB | Signatures, tiny passport-style photos, avatars | Small dimensions and visible softening. Fine for a face at thumbnail size. |
| 50 KB | Form photos, ID uploads, small thumbnails | Acceptable for small images; fine detail is limited. |
| 100 KB | Profile pictures, general web uploads, applications | A good balance at modest dimensions. |
| 200 KB | Blog images, product photos, listings | Good quality at web-friendly dimensions. |
| 500 KB | Larger website images, email attachments | Sharp and detailed at most screen sizes. |
| 1 MB | High-quality sharing, hero images | Close to the original appearance for most photos. |
| 2 MB | ID and verification uploads, near-original photos | Very close to the original; only very large files need to shrink. |
These are general expectations, not guarantees. A flat, simple picture such as a studio shot on a plain background will look fine at a smaller size than a busy outdoor scene full of leaves and texture.
Tips for hitting a tight limit and still looking good
- Crop first. If your photo has lots of empty space around the subject, crop it in your phone or photo app before uploading here. Fewer pixels means a better quality at the same file size.
- Reduce the dimensions deliberately. For a form that shows the picture at 200 pixels wide, uploading a 4000-pixel original and asking for 20 KB forces extreme compression. A 600-pixel version will look dramatically better at the same size.
- Start from the highest-quality original you have. A picture that has been through several rounds of messaging-app compression already has artifacts that get worse when compressed again.
- Prefer simple backgrounds. Plain backgrounds compress extremely well, leaving more of the byte budget for the face or subject.
- Check the preview. The side-by-side view shows the new dimensions, the exact file size, and whether the target was met, so you can adjust before downloading.
Common reasons you need an exact file size
- Job and exam applications. Many application portals ask for a passport-style photo and a signature in a narrow size range, often between 20 KB and 200 KB.
- Government and visa forms. Online identity and document uploads frequently set strict file limits per attachment.
- Email and chat attachments. When several photos need to fit in one message, bringing each under a set size keeps the total manageable.
- Websites and content management systems. Many sites cap uploads, and keeping images small helps pages load quickly.
- Marketplaces and listings. Product and classified platforms may restrict image size while still wanting clear pictures.
Always read the instructions on the form you are filling in. Requirements such as exact pixel dimensions, file type, or a minimum size are separate from the maximum size, and a picture can be rejected for any of them.
Jump straight to a common target
Private by design
Because a photo for an official form often shows your face or documents, privacy matters. Nothing you add here is uploaded. The search for the right quality runs on your own device, using the same browser features that draw images on a web page, and the finished file is created locally and saved straight to your downloads folder. You do not need an account, and no watermark is added.
Frequently asked questions
What if the result is still larger than my target?
This is rare, since the tool keeps lowering quality and shrinking the dimensions until the file fits. If the result panel says the target was not reached, set a smaller width and height under Image resolution and try again, or choose a slightly larger target if the form allows it.
Is the output always a JPG?
Yes. The tool saves a JPG, which gives the best size-to-quality results for photographs and is accepted almost everywhere. Because JPG does not support transparency, any transparent areas in a PNG or WebP are filled with white.
Will my image be exactly the size I choose?
The result will be at or under your target, and usually very close to it, because the tool looks for the highest quality that fits. It will not deliberately pad the file, so a result of 96 KB for a 100 KB target is normal.
Should I change the resolution or leave it alone?
For modest reductions, leave it unchanged and let the tool adjust quality. For small targets, or if the picture will only be shown small, reducing the dimensions yourself first gives noticeably better results than compressing a huge image heavily.
Can I enter a size in MB?
Yes. Choose Custom in the size dropdown, type a number, and switch the unit between KB and MB. One MB is treated as 1,024 KB.
Does this work for HEIC photos from an iPhone?
You can add HEIC files, but whether they open depends on your browser, because decoding is done by the browser itself. Safari handles HEIC natively. If a HEIC file will not load in another browser, convert it to JPG first.