Image Formats

How to Reduce Image Size to 25 KB (Without Wrecking It)

Reduce image size to 25 KB, 20 KB or 50 KB for a form upload, what compression actually throws away, and why 'no quality loss' at 25 KB is a lie.

Sahil LambaFounder, Piknova

Published 12 min read

Two people at a laptop working through an online application form that keeps rejecting their photo
Photo by RDNE Stock project on Pexels

The short version

  • Set a target in KB and let the tool solve for quality. Guessing on a 0-100 slider is why this takes people twenty minutes.
  • Almost nobody wants 25 KB for its own sake. They want a government or exam portal to stop rejecting their photo.
  • 'Compress to 25 KB with no quality loss' is marketing. At 25 KB something is always lost; the question is whether it is detail or dimensions.
  • Under about 2% of the original file, quality alone runs out and the width and height have to shrink too.
  • Portals that demand 25 KB usually demand JPG as well. A PNG gets rejected for its format, not its size.
On this page11 sections

The short version: to reduce image size to 25 KB, open a compressor that lets you type a target size, enter 25, and download the result. That is the whole job, and it takes about eight seconds.

The reason you are reading anything past that sentence is that you have probably already tried it. You dragged a quality slider to 30%, got 71 KB, dragged it to 10%, got 24 KB and a face made of grey squares, and started wondering whether there was a trick you were missing.

There is, sort of. It is mostly about understanding what you are actually asking a computer to do when you say "reduce image size to 25 KB", and about noticing that the thing you really need is often not the thing you searched for.

Why 25 KB, of all numbers

Nobody wakes up wanting a 25 KB image. They want a form to accept their upload.

That is the whole market for this search term, and it is worth saying plainly because every other guide on the subject pretends the reader is optimizing a website. They are not. They are on a government portal at 11pm with a deadline, and the box has turned red twice.

The numbers come from the portals themselves. UPSC's application uploads have run with a photograph in a 20 KB to 200 KB band and a signature in 20 KB to 100 KB, JPG only, per Vajiram & Ravi's guidelines summary. SSC has historically been tighter: photo around 20 to 50 KB, signature around 10 to 20 KB.

That pattern is the actual lesson. A KB limit almost never arrives alone.

A plain background and even lighting is the single biggest factor in how well a headshot survives compression. This one would sail to 25 KB. Photo by Korede Adenola on Pexels

The part nobody tells you: it is never just the file size

Here is the thing that costs people the most time. They compress to 25 KB, upload, get rejected, and assume the compression failed. It usually did not.

A typical portal enforces four rules simultaneously:

  • Maximum file size. The one you searched for.
  • Minimum file size. Yes, really. A 20 to 50 KB rule rejects your 12 KB file for being too small, which feels like a personal insult after you spent ten minutes making it small.
  • Exact pixel dimensions. Something like 200×230 for a photo, or a signature in a specific ratio.
  • A single accepted format. Usually JPG, and usually enforced by extension.

Miss any one and you get the same unhelpful red box. So before you compress anything, write down all four numbers from the notice. It takes thirty seconds and saves the twenty-minute loop.

What "compress" actually throws away

Worth thirty seconds of theory, because it explains every frustrating result you have had.

A JPEG does not store pixels. It slices the image into 8×8 blocks and stores each block as a set of frequency coefficients, then throws away the coefficients describing the finest detail, because human eyes are bad at noticing them. It also stores colour at half resolution, since we see brightness far more sharply than hue. The JPEG standard has worked this way since 1992.

The quality setting is just how aggressively it discards. Turn it down and more of the fine stuff goes.

This is why results vary so wildly between images. Compression is spending a budget on detail, so the more detail an image has, the worse it fares:

  • A headshot on a plain white wall reaches 25 KB easily. There is almost nothing in the background to describe.
  • A signature in black ink on white paper reaches 15 KB without breaking a sweat.
  • A landscape with foliage, or a screenshot dense with small text, fights you the whole way. Sharp edges and fine texture are exactly what costs an encoder its bits.

That last case is why screenshots look terrible when compressed hard while photos look fine. Text has hard edges, hard edges are high-frequency information, and high-frequency information is the first thing out the door.

"Compress to 25 KB with no quality loss" is a lie

Every competitor page ranking for this term says some version of it. It is not true, and it is a strange thing to claim when the honest version is more reassuring.

Going from a 4 MB photo to 25 KB discards about 99.4% of the file. Something left. The useful question is not whether you lost quality but which quality you lost, and whether it matters at the size the image will actually be viewed.

For the passport photo on a form, displayed at 200 pixels wide inside an admin panel: you will not see it. The compression artifacts live in detail that is not being rendered.

For a product photo on your online store: you absolutely will, and you should not be targeting 25 KB anyway.

Any tool that hits an impossible target without mentioning this has quietly resized your image and hoped you would not check. That is the behaviour to watch for: compare the output dimensions to the input dimensions before you trust a suspiciously good result.

Compressing versus reducing width and height

These get searched interchangeably and they are not the same operation. Knowing which one you need saves a round trip.

Compression: same size on screen, fewer bytes

The image keeps its width and height. It simply stores less detail than it did. A 1200×800 photo stays 1200×800 and drops from 3 MB to 90 KB.

Use this when a form caps the file size and says nothing about dimensions.

Resizing: fewer pixels, smaller everywhere

The image genuinely gets smaller. A 4000px wide photo becomes 800px wide, and it now occupies less space on a screen as well as on disk.

Use this when the form specifies pixel dimensions, or when compression alone cannot reach your target.

Most people filling a form need both, in that order: crop to the required pixel dimensions, then compress the result to the KB band. Doing only the second is how you end up with a correctly-sized file that gets rejected for being 640×480 when the notice asked for 200×230.

Going from MB to KB: what to actually expect

Concrete numbers beat adjectives. Here is roughly what each common target buys you, assuming an ordinary photograph rather than a dense screenshot.

TargetTypical useWhat to expect
10 to 20 KBSignature scans, tiny avatarsFine for black ink on white paper. A photo at this size will be visibly rough
20 to 25 KBExam portals, ID photo uploadsComfortable for a headshot on a plain background at full size
50 KBProfile pictures, form attachmentsMost phone photos land here with their dimensions untouched
100 KBThe most common web upload limitA full-size photo with no visible loss on most images
200 KBHero images, anything that must stay sharpGenerous. Near-original quality

The jump from 100 KB to 25 KB is much larger than the numbers suggest. It is not "four times smaller", it is the difference between discarding the detail nobody looks at and discarding detail people do look at.

The 6 MB original on your phone is mostly sensor noise. That is the part compression eats first, and why the early savings feel free. Photo by Lisa from Pexels on Pexels

The format trap that rejects more uploads than size does

This one deserves its own section because it wastes so much of people's time.

Portals that demand small files usually demand JPG. Not "an image", not "JPG or PNG", just JPG. And a lot of them check the file extension rather than the actual contents, so a PNG renamed to .jpg fails in a new and more confusing way.

If your file is a PNG, you have two problems, and only one of them is size:

PNG cannot be compressed the way you are imagining. It is a lossless format. It has no quality dial at all. Turning down "quality" on a PNG export does nothing, because there is nothing for the setting to do. The only ways to shrink a PNG are to reduce how many distinct colours it holds or to reduce its pixel count.

Your form probably will not take it anyway. So the fix is to convert first. Our PNG to JPG converter handles that in the browser, and the general image converter covers the other directions if you arrived with a WebP off the internet.

If the file came off a website and you are not sure what it is, our piece on WebP files explains why your download probably is not the JPEG you assumed. And if you are staring at a .jpeg wondering whether the portal wants .jpg, that distinction is nothing: same format, shorter extension, historical accident.

Sign in black ink on plain white paper. High contrast on a flat background is the easiest thing in the world to compress. Photo by Kampus Production on Pexels

A checklist that gets uploads accepted

The "comfortably inside the band" point is the one people skip. If the rule is 20 to 50 KB, aim for 35 KB rather than 49 KB. You gain nothing from the last kilobyte and you remove any risk of a rounding difference between your tool and theirs.

How to reduce image size to 25 KB in our tool

Since this is our blog, the honest pitch, kept short.

  1. Select your image

    Click the button or drop a JPG, PNG or WebP onto the box. Files up to 25 MB, which covers full-resolution phone and DSLR photos.

  2. Switch to 'By file size'

    Pick 20, 25, 50, 100 or 200 KB, or type any number you like. The presets exist because those are the numbers forms actually ask for.

  3. Compress and check

    You get the before and after side by side at the same display size. Look at it. If it went too far, move the number up and go again.

Two things about it that are relevant to this particular job. It treats your number as a ceiling and searches for the best quality that fits under it, rather than aiming near it and hoping. And it runs entirely in your browser, so the photo of your face and the scan of your signature are never transmitted anywhere.

That second point is not a marketing line, it is the reason I would use a client-side tool for this specific task and not for, say, a holiday snap. You are compressing identity documents. The safest server is the one that never receives them.

Try it on the image compressor.

When a browser tool is the wrong answer

Worth saying, since the goal is to be useful rather than to win every case.

Hundreds of files. Ours does one at a time, because several large images decoded at once is how a phone tab runs out of memory and dies without an error. For bulk work, ImageMagick or XnConvert over a folder is genuinely the right tool.

RAW files from a camera. A browser cannot decode them. Export a JPEG from your editor first.

You need a specific perceptual quality target across a whole site. That is a build-pipeline problem. Google's image optimization guidance is a better starting point than any online tool.

Files over 25 MB. That is our ceiling, and it is where a full-resolution decode starts being a coin flip on mid-range hardware. Resize first, then compress.

The one-line summary

Type the number instead of guessing at a slider, convert and crop before you compress, and check the format rules before you blame the file size. The 25 KB part is the easy bit; everything that gets uploads rejected happens around it.

How do I reduce an image to exactly 25 KB?

Use a compressor that takes a target size rather than a quality slider. Set 25 KB, and the tool searches for the highest quality that still fits under it. Treat the number as a ceiling, not a bullseye: a good result is 23 KB, because a form that says "maximum 25 KB" rejects 25.4 KB just as hard as it rejects 3 MB.

Can I reduce image size to 25 KB without losing quality?

No, and anyone claiming otherwise is selling something. JPEG compression works by discarding information, so going from a 4 MB photo to 25 KB throws away roughly 99% of the file. What you can do is control what gets lost. For a passport-style headshot on a plain background, the loss is genuinely invisible at normal viewing size. For a detailed landscape, it will not be.

How do I reduce the MB of a photo down to KB?

The same way, in one step. A 6 MB phone photo reaching 100 KB is a 98% reduction and it is easier than it sounds, because most of a camera photo's weight is sensor noise and texture nobody looks at. Compression spends its budget there first, which is why the first 80% of the file disappears before anything you would notice does.

Why does my photo get rejected even when it is under the size limit?

Usually the format or the dimensions, not the size. Many portals accept JPG only and silently reject PNG, and most also specify pixel dimensions and a minimum size as well as a maximum. A 12 KB file can fail a "20 KB to 50 KB" rule for being too small. Check all four rules: format, maximum KB, minimum KB, and pixel dimensions.

Should I resize the width and height, or compress the file?

Compress first. Compression keeps your dimensions and only removes detail, so the image still fills the same space. Resize when the portal specifies pixel dimensions, or when your target is so small that compression alone cannot reach it. Doing both in the wrong order, resizing down and then compressing hard, is how people end up with a blurry photo that also got rejected.

How do I compress a JPG to 20 KB for an SSC or UPSC form?

Read the current notification for that exam first, because the numbers change per cycle and differ per exam. Then convert to JPG if your file is a PNG, crop to the pixel dimensions the notice specifies, and only then compress to the KB band. Compressing before cropping wastes your quality budget on pixels you are about to throw away.

Does compressing an image change its dimensions?

It should not, and in a well-built tool it does not. Compression reduces detail while keeping every pixel in place. The exception is a target so aggressive that no quality setting can reach it at full resolution, where the only honest options are to shrink the image or to miss the number. A tool that shrinks your image without telling you is the one to avoid.

Is it safe to upload my photo and signature to an online compressor?

Think about it before you do. A photo of your face and a scan of your signature are the two things you should be most careful about, and most compressors upload both to a server and hold them for some retention window. Prefer a tool that compresses in your browser, where the file never leaves your device and there is no server copy to worry about.

ShareXLinkedInFacebook

Sahil Lamba

Founder, Piknova

Builds Piknova one tool a week, mostly in public. Writes about image formats, the parts of social platforms nobody documents, and shipping small products without a team.