TinyTool Logo

TinyTool

← Back to Blog Index
Image Guides

What Is Image Compression and How Does It Work? — Plain English Guide

By TinyTools Team•Published on 2026-05-25

Need to resize your document right now?

Use our free, in-browser tool to resize your image to exactly 20KB under 5 seconds.

What Is Image Compression and How Does It Work? — Plain English Guide

Your phone camera produces a 4MB photo. A government portal accepts a maximum of 50KB. That is an 80× difference. Image compression is what bridges that gap — but how does it actually work, and why does it sometimes make photos look blurry?

This guide explains image compression in plain English, without the mathematics.

What Is Image Compression?

Image compression is the process of reducing the file size of an image by encoding the image data more efficiently. Think of it like packing a suitcase: you can fit more clothes by folding them neatly (lossless compression) or by leaving some items behind (lossy compression).

Every digital image is made up of millions of tiny coloured squares called pixels. A 12-megapixel photo has 12 million pixels. Without compression, storing the colour value of each pixel would require enormous amounts of data. Compression algorithms find patterns and redundancies in this data and represent them more efficiently.

The Two Types of Image Compression

Lossy Compression

Lossy compression permanently removes some image data to achieve smaller file sizes. The removed data is chosen carefully — the algorithm targets information that the human eye is least sensitive to.

How JPEG lossy compression works:

  1. The image is divided into 8×8 pixel blocks
  2. Each block is analysed for colour and brightness patterns
  3. Fine details that the eye is unlikely to notice are discarded
  4. The remaining data is encoded efficiently
The result: a file that is 5–20× smaller than the original, with quality loss that is often invisible at moderate compression levels.

The trade-off: Once data is removed, it cannot be recovered. Every time you open a JPEG, edit it, and save it again, more data is removed. This is called "generation loss."

Best for: Photographs, portraits, scanned documents, government portal uploads.

Lossless Compression

Lossless compression reduces file size without removing any data. Every pixel is preserved exactly. The algorithm finds patterns in the data and represents them more efficiently — like using shorthand in writing.

How PNG lossless compression works:

PNG uses a technique called DEFLATE compression. Instead of storing each pixel's colour individually, it stores the *difference* between adjacent pixels. For an image with large areas of the same colour (like a white background), this is extremely efficient — instead of storing "white, white, white, white..." 10,000 times, it stores "white × 10,000."

The trade-off: Lossless compression achieves much smaller reductions than lossy compression for photographs. A photo that compresses to 200KB as JPEG might be 3MB as PNG.

Best for: Logos, icons, screenshots, images with text, images you will edit multiple times.

Why Do Government Portals Have Such Small File Size Limits?

Indian government portals typically require photos under 20KB–200KB. This seems extreme when modern phones produce 4–12MB photos. The reasons:

Server storage costs. When crores of students upload photos for JEE, NEET, or UPSC simultaneously, even a 500KB limit per photo means terabytes of storage. A 50KB limit reduces this by 10×.

Upload speed on slow connections. Many applicants in rural areas use 2G or slow 3G connections. A 50KB file uploads in 1–2 seconds on a slow connection; a 4MB file takes several minutes and often times out.

Legacy infrastructure. Many government portals were built in the early 2000s when 50KB was a reasonable photo size. The limits have not been updated even as camera quality has improved dramatically.

How Much Can an Image Be Compressed?

The answer depends on the image content:

| Image Type | Original Size | Compressed (JPEG 80%) | Compressed (JPEG 50%) |
|------------|--------------|----------------------|----------------------|
| Portrait photo | 4MB | 400KB | 150KB |
| Passport photo (200×260px) | 150KB | 25KB | 10KB |
| Screenshot with text | 500KB | 80KB | 30KB |
| Logo (simple) | 200KB PNG | 15KB JPEG | 8KB JPEG |
| Scanned document | 2MB | 200KB | 80KB |

For a passport photo at 200×260 pixels, you can typically reach 20–50KB with no visible quality loss.

What Happens to Quality at Different Compression Levels?

JPEG quality is usually expressed as a percentage (0–100%) or a scale (0–12 in some software):

90–100% quality: Near-lossless. File size is 2–3× smaller than uncompressed. Suitable for professional photography and archiving.

70–85% quality: The sweet spot for most uses. File size is 5–10× smaller. Quality loss is invisible at normal viewing sizes.

50–70% quality: Noticeable quality loss on close inspection. Suitable for web thumbnails and portal uploads where the photo will be viewed at small sizes.

Below 50% quality: Visible compression artefacts — blocky patterns, colour banding, blurry edges. Suitable only when file size is the absolute priority.

For government portal uploads, 60–75% quality typically achieves the required file size while keeping the photo recognisable.

Why Does My Compressed Photo Look Blurry?

Blurriness after compression is usually caused by one of two things:

Over-compression. The quality setting is too low. The algorithm has removed too much detail. Solution: use a higher quality setting, or start from a higher-resolution source image.

Resizing to too small dimensions. If you resize a 4000×3000 pixel photo to 200×260 pixels, you are discarding 99% of the pixels. The remaining pixels are an average of the original, which can look blurry. Solution: use the original photo at the correct dimensions before compressing.

Practical Tips for Compressing Images

Always start from the original. Never compress an already-compressed image. Each compression cycle removes more data. Keep the original and compress a fresh copy each time.

Match the dimensions to the use case. A passport photo for a portal needs to be 200×260 pixels — not 4000×3000 pixels compressed to 50KB. Resize the dimensions first, then compress.

Use the right format. JPEG for photos, PNG for logos and screenshots. Using PNG for a photograph produces a file 5–10× larger than JPEG with no visible quality benefit.

Target the minimum acceptable size. If a portal accepts up to 200KB, do not compress to 20KB — you are sacrificing quality unnecessarily. Compress to 150–180KB for the best quality within the limit.

Frequently Asked Questions

Does compressing an image reduce its resolution?

Not necessarily. Compression and resolution are separate concepts. You can compress a 4000×3000 pixel image to a smaller file size while keeping all 4000×3000 pixels. However, to achieve very small file sizes (under 50KB), you usually need to reduce both the resolution and apply compression.

Can I uncompress an image to get the original back?

For lossless compression (PNG), yes — the original data is perfectly preserved. For lossy compression (JPEG), no — the removed data is gone permanently. Always keep a copy of the original.

Why does the same image look different sizes on different devices?

File size (in KB) and display size (in pixels or centimetres) are different things. A 50KB JPEG can display at any size — the file size only affects how long it takes to download and how much storage it uses.

Is there a limit to how much an image can be compressed?

Yes. At extreme compression levels, the image becomes unrecognisable. The practical limit for a passport photo is around 5–8KB — below that, the face is no longer clearly identifiable.

Compress Your Images Now

Understanding compression helps you make better decisions about your files. When you need to hit a specific file size limit, use our tools:

  • Resize Image to 50KB — for most government portals
  • Resize Image to 20KB — for strict admission forms
  • Compress PDF to 200KB — for PDF document uploads

Prepare All Your Documents Free

Whether you need to resize images to exactly 20KB, crop a digital signature, format an Aadhaar photo, or shrink a PDF to 200KB, we have got you covered with zero-upload, client-side safety.

TinyTool

Fast, free, and secure online tools for everyday file tasks. Your files never leave your device. All processing is done in-browser.
Tools
Resize Image
Compress PDF
Passport Photo
Signature Cropper
Company
About Us
Blog
Privacy Policy
Contact
© 2026 TinyTool. All rights reserved.
Privacy Policy
Contact