Online Image Shrinker
OnlineImageShrinker
Back to Guides
Tutorials

How to Compress Images to a Specific File Size (Under 100KB, 200KB, 1MB)

You found the perfect photo. You try to upload it to a government form, job application, or online profile — and get hit with: "File size must be under 100KB."

Sound familiar? Whether it's 50KB for a visa application, 200KB for a forum avatar, or 2MB for an email attachment, this guide shows you exactly how to hit any target file size without destroying your image quality.

It's a more common headache than you'd think. Images are the heaviest thing most pages carry: the median mobile homepage shipped about 900 KB of images in 2024 — more than JavaScript, CSS, and fonts combined (Web Almanac 2024, HTTP Archive). The good news is that a single high-resolution photo straight off your phone is almost always many times larger than it needs to be, so there is plenty of room to shrink it and still look sharp.


Common File Size Requirements

Here are the limits you'll encounter most often:

Platform / Use CaseMax File SizeTypical Image Size
Government forms (Visa, ID)100-240 KB600x600 px
Discord emoji256 KB128x128 px
Forum avatars100-500 KB200x200 px
Email attachments (Gmail)25 MB total3-8 MB per photo
YouTube thumbnails2 MB1280x720 px
LinkedIn posts10 MB1200x627 px
WordPress uploads2-50 MBVaries
Passport photo (online)240 KB600x600 px

Method 1: Quality Slider (Best for Most Cases)

The fastest way to reduce file size is to lower the JPEG/WebP quality. Modern compression is "visually lossless" at 70-80% — meaning your eyes cannot tell the difference, but the file is 5-10x smaller.

This works because lossy formats discard the fine color and brightness detail your eye is least sensitive to. Pushing quality from 100% down to 80% throws away data you were never really seeing, while the first 60-70% of the slider holds almost all the visual information. That's why the typical image actually served on the web is tiny — the median <img> weighs just 12 KB (Web Almanac 2024 Media chapter). Your 5 MB phone photo has a long way to fall before it looks bad.

How to do it:

  1. Go to our Compress Tool.
  2. Upload your image.
  3. Adjust the quality slider:
    • 90% → Minor reduction (~30% smaller). Use when quality is critical.
    • 80% → Sweet spot (~60% smaller). Recommended for most uses.
    • 70% → Aggressive (~75% smaller). Great for web thumbnails.
    • 50% → Maximum compression (~85% smaller). Only for tiny icons or previews.
  4. Check the output file size shown below the preview.
  5. Download when you hit your target.

Real-world examples:

Original SizeQuality 80%Quality 70%Quality 50%
5 MB (iPhone photo)~900 KB~600 KB~350 KB
2 MB (DSLR crop)~400 KB~280 KB~150 KB
800 KB (screenshot)~200 KB~140 KB~80 KB

Method 2: Resize + Compress (For Strict Limits)

If the quality slider alone doesn't get you under the limit, you need to reduce the dimensions too. File size scales with the number of pixels, which is width times height — so halving the width of a photo (say from 4000px to 2000px) roughly quarters the pixel count, not just halves it. That single step often does more than the quality slider ever could.

A worked example

Say a passport portal wants the image under 100 KB and you're starting with a 4032 x 3024 phone photo at about 4 MB:

  1. Resize the long edge to 800px first. That alone cuts the pixel count by roughly 95%, dropping you to a few hundred KB before you touch quality.
  2. Compress the resized file at 70%. The remaining detail is small enough that 70% quality lands you comfortably under 100 KB.
  3. If you're still a hair over, nudge quality to 60% rather than shrinking the dimensions further — below 600px wide a portrait starts to look soft on screen.

The formula:

  1. First, resize:

    • Go to the Resize Tool.
    • For web: set width to 1200-1600px (plenty for any screen).
    • For avatars/forms: set to the exact required dimensions (e.g., 600x600).
  2. Then, compress:

    • Take the resized image to the Compress Tool.
    • Use quality 75-80%.

Targeting specific sizes:

Target SizeRecommended Approach
Under 50 KBResize to max 400px wide, quality 60%
Under 100 KBResize to max 800px wide, quality 70%
Under 200 KBResize to max 1200px wide, quality 75%
Under 500 KBResize to max 1600px wide, quality 80%
Under 1 MBUsually quality 80% alone is enough
Under 2 MBQuality 85% for high-res photos

Method 3: Convert Format (The Secret Weapon)

Different formats produce dramatically different file sizes for the same visual quality:

  • PNG → JPG: Can reduce size by 80% (you lose transparency but gain massive savings).
  • JPG → WebP: Another 25-34% reduction on top of JPEG. That figure isn't marketing — it's straight from Google's own compression study, which found WebP files 25-34% smaller than JPEG at the same SSIM quality score (Google WebP Compression Study).
  • PNG → WebP: Combined savings of 70-90%.

WebP is also far more widely supported than it used to be, so switching rarely breaks anything. It already accounts for roughly 12% of all images served to mobile devices, while JPEG's share fell from 40% in 2022 to 32% in 2024 as sites moved to newer formats (Web Almanac 2024 Media chapter). In other words, converting a JPG to WebP puts you in step with where the web is already heading.

How to convert:

  1. Open the Image Converter.
  2. Upload your file.
  3. Select WebP or JPG as the output.
  4. Download the smaller file.

Pro tip: If a website or form accepts WebP, always use it. It's the most efficient format available with broad support.


Why The Exact Number Matters

Upload limits aren't arbitrary. Whoever built the form picked a ceiling that keeps their storage and bandwidth in check — and on the open web, images are the bill that runs up fastest. On a typical desktop homepage, images weigh in around 1,054 KB versus 613 KB for JavaScript and 78 KB for CSS (Web Almanac 2024, HTTP Archive). Multiply one oversized upload across thousands of users and you can see why a government portal caps you at 100 KB.

A few practical consequences:

  • Get as close to the limit as you can, not far under it. A 95 KB file under a 100 KB cap keeps more detail than a 30 KB one. Don't over-compress out of caution.
  • Strip metadata when every kilobyte counts. Phone photos carry EXIF data — GPS coordinates, camera model, timestamps — that adds weight and leaks information. Removing it is lossless and can claw back the last few KB.
  • Resize to the dimensions actually displayed. A 600x600 avatar shown at 200x200 is wasting three-quarters of its pixels. Match the target dimensions and the file shrinks for free.

Special Case: Passport & Visa Photos

Government portals are the strictest. Here is the exact workflow:

US Visa (DS-160): Under 240KB, 600x600px

  1. Take your photo (see our guide).
  2. Open the Passport Photo Tool.
  3. Select "US Visa" preset — it auto-crops to 600x600.
  4. Download as JPG.
  5. If still over 240KB, run through Compress at 75%.

UK Passport: Under 500KB, 35x45mm

  1. Use Passport Photo Tool with "UK" preset.
  2. The tool outputs 413x531px at optimal quality.
  3. Usually well under 500KB without extra compression.

Special Case: Discord Emoji (Under 256KB)

Discord is strict about emoji file sizes. Here is the workflow:

  1. Crop to square using the Crop Tool (1:1 ratio).
  2. Remove background with our Background Remover for a clean floating emoji.
  3. Resize to exactly 128x128px using the Resize Tool.
  4. Compress with the Compress Tool if still over 256KB.

FAQ

Will compression make my image blurry? Not at 70-80% quality. Modern compression algorithms are "visually lossless" — they remove data your eyes cannot perceive. You would need to zoom in 400% to spot any difference.

Can I compress without losing any quality? Yes — "lossless" compression removes only metadata (EXIF data, color profiles) without touching pixels. This typically saves 10-20%. Use our EXIF Remover for this.

What if I need to compress a PNG with transparency? Convert to WebP instead of JPG. WebP supports transparency AND is much smaller than PNG. Use our Image Converter.

Is there a way to batch compress multiple images? Yes! Our Compress Tool accepts multiple files. Drag and drop your entire folder, set the quality once, and download all compressed files.

I compressed at 50% and it's still too big — what now? Quality alone hits a floor. If a photo is still over the limit at 50%, the problem is dimensions, not compression. Resize the long edge down (to 800px or even 600px), then compress again at 70-75%. Pixel count is the bigger lever once quality is already low.

WebP or AVIF — which should I pick? WebP for almost everything: it's smaller than JPEG and supported nearly everywhere. AVIF can squeeze files smaller still, but support is thinner and many upload forms won't accept it yet. When a form lists its allowed formats, match what it asks for; when you have a free choice, WebP is the safe, efficient default.


The Cheat Sheet

"I need my image under..."Do this
50 KBResize to 400px → Compress at 60%
100 KBResize to 800px → Compress at 70%
200 KBResize to 1200px → Compress at 75%
500 KBCompress at 80% (no resize needed)
1 MBCompress at 80%
2 MBCompress at 85%

All our tools run 100% in your browser. Your images never leave your device.

Start Compressing Now

We use cookies for analytics (and ads if/when AdSense is enabled). By accepting, you allow these uses. See our Privacy Policy and Cookie Policy.