JPEG vs WebP vs AVIF: Which Format Should You Use in 2026?
A practical comparison of JPEG, WebP, and AVIF for compression ratio, browser support, and visual quality, with guidance on when to use each format.
Written and reviewed by the Compress To KB editorial team. Last updated September 24, 2026. We build and maintain the compressor this guide refers to, so what we say about how it behaves comes from its actual code and from day-to-day use, not from guesswork.
Every recruitment season the same thing happens. Someone spends an hour filling in a long application form, reaches the photo step, and the portal answers with a red line: file size should be between 20KB and 50KB. Their phone photo is 3MB. This guide walks through how to get a photo or signature under a strict limit such as 20KB or 50KB without turning your face into a smudge, and, just as important, how to avoid the quieter mistakes that get applications flagged later.
Size limits differ by exam, by document, and sometimes by year, so the first step is never to open a compressor. It is to open the current official notification and write down four things: the accepted file size range, the format (almost always JPG or JPEG), the pixel or centimetre dimensions, and whether the photo must be uploaded at all. That last point has changed recently. For the 2026 cycles, exam-preparation sites tracking the notices report that SSC and UPSC now capture the candidate photograph live inside the application form, so the upload step applies mainly to signatures, thumb impressions and certificates. If your portal does that, you only need this guide for the documents it still lets you upload.
The figures below are the ones most commonly published for recent notices. Treat them as a starting point and confirm them on the official site (for example ssc.gov.in, upsc.gov.in or ibps.in) before you submit anything.
| Exam / portal | Document | Commonly published size | Format |
|---|---|---|---|
| SSC (CGL, CHSL, GD) | Photograph (275×354px) | 20–50 KB | JPG |
| SSC (CGL, CHSL, GD) | Signature (about 6×2 cm) | 10–20 KB | JPG |
| IBPS (PO, Clerk, RRB) | Photograph, thumb impression | 20–50 KB each | JPEG |
| UPSC | Photograph | 20–200 KB | JPG |
| UPSC | Signature (350–500px, three signatures in one image) | 20–100 KB | JPG |
| ICAI (CA exams) | Photograph and signature | Up to 50 KB each | JPEG |
Notice the range, not just the ceiling. A file that is too small is rejected just as often as one that is too large, which matters when you are compressing aggressively.
Compression can only work with what you give it. A photo taken in a dim room with a busy background is full of noise, and noise is expensive to encode, so the compressor has to throw away more of the good detail to hit the same number. A few minutes of preparation pays back directly in the final quality:
Each target size on this site has its own page, and the compressor is pre-set to it. For a signature that must stay under 20KB, use the 20KB compressor. For a standard photograph limited to 50KB, open the 50KB compressor. If the notice allows more room, such as UPSC's 200KB photograph ceiling, take advantage of it with the 200KB tool or the 100KB tool for signature fields; more kilobytes means a visibly cleaner face. When a portal lists a range such as 20–50KB, aim for the upper half of the range. The result is sharper and you still sit safely above the minimum.
This is the single most useful tip in the guide, and the one most people miss. The tool's Auto output mode is designed to get the smallest file with the least visible loss, so depending on your browser it may hand back a WebP or AVIF file, especially at small targets. Those formats are excellent for websites, but most government portals accept JPG or JPEG only and will reject anything else with a vague "invalid file" message. So for exam forms, open the Output Format dropdown and pick JPG before pressing Compress. Then check the file extension on the downloaded file. It should end in .jpg.
Understanding the order of operations helps you predict the result. The compressor first searches for the highest JPEG quality that still fits under your target, testing the real encoded size at each step rather than guessing. Only if even the lowest useful quality cannot fit does it start shrinking the pixel dimensions, and it does that last because a smaller image blurs faces and signature strokes faster than a lower quality setting does. If your original is already close to the portal's pixel dimensions, you will usually keep them intact. If it is a 4000-pixel-wide phone photo aimed at a 20KB limit, expect the dimensions to drop, which is fine because the portal will shrink it further anyway.
When the result panel says Target reached, you are done. If it says Best effort, the tool got as close as it could but the file is still above your limit. The fix is almost always upstream: crop the photo tighter, remove a cluttered background, or retake it in better light, then run it again.
A face photograph tolerates lossy compression well because skin and hair are full of gentle gradients that JPEG models nicely. It fails by becoming soft or blotchy around the eyes and hairline. A signature is the opposite: mostly white with thin dark strokes, which is exactly the situation where JPEG produces faint grey speckles around the lines if the quality is pushed too low. If your 20KB signature looks fuzzy, do not lower the quality further. Instead re-scan it with thicker strokes (a darker pen helps), crop closer, and compress again. If you want to understand why the speckling happens, our explanation of lossy versus lossless compression covers it in plain language.
Imagine a typical situation: a passport-style photo taken on a mid-range phone, about 3MB at 3000×4000 pixels, that has to fit a 20–50KB window at 275×354. First crop the photo to the same 275:354 proportion. Open the 50KB tool, choose JPG as the output, and compress. The tool will land somewhere near 45–50KB, keeping quality as high as it can. Download it, open it at full size on your computer, and look at the eyes and the edge of the hair. If both look clean, you are finished. If the portal still complains about pixel dimensions, resize it to the exact 275×354 in any basic editor (this tool is a size compressor, not a resizer) and re-check that it is still inside the 20–50KB range, because resizing can change the file size a little.
Photos and signatures submitted for exams are identity documents in all but name. Many free online compressors upload the file to a server, and you rarely know how long it stays there. Compress To KB processes the file inside your browser, so the image itself is never sent to us. We explain the reasoning, and how you can check the claim yourself with your browser's developer tools, in our guide to the privacy risks of online image converters.
Requirements change, and one portal's rule is not another's, so this guide is a method rather than a guarantee. The official notification always wins.
Sources & further reading
A practical comparison of JPEG, WebP, and AVIF for compression ratio, browser support, and visual quality, with guidance on when to use each format.
What actually happens to your photo when you use a typical online image compressor, and why browser-based, client-side tools are a fundamentally safer choice.
Why unoptimized images are the biggest cause of poor Core Web Vitals scores, and how reducing image weight improves LCP, load time, and search rankings.