India version. Set up for Indian application forms: a 50 KB target is preset, and the size check uses the stricter reading of "KB" that recruitment portals apply. US version

Compress Image to a Target Size in KB

Compress a photo or signature to under 50 KB, 20 KB or any limit for exam and job application forms. Set the target in KB; files stay on your phone or PC.

The interactive tool loads here when JavaScript runs.

About this tool

What is the Image Compressor?

Online forms for government exams, bank recruitment, scholarships and college admissions in India reject a photo that is a few KB too big, and a phone camera saves photos of several MB. This page opens with a target of 50 KB already filled in. Type a different number (20 for a signature, 100 or 200 for some exam portals) and add your files; each one comes back as a JPEG that is under that number, at the best quality that fits.

Behind the box is a search, not a guess. The tool encodes the image, checks the exact byte count, and moves the JPEG quality up or down until the file is as large as possible without crossing the limit. If even low quality cannot get a 12 megapixel photo under 20 KB, it reduces the pixel count step by step and tells you the final width and height, so you know what the portal will receive.

If the form also fixes the pixel size (200 × 230 for many bank forms) or asks for a minimum file size, use the Image Resizer instead. It crops to the exact size and keeps the file inside a minimum and maximum KB range in one step. Everything runs in your browser, so your photo and signature are not uploaded anywhere by this tool.

  • Batch compression with drag and drop
  • Quality slider from 10% to 100% in 5% steps
  • Optional target size in KB for upload limits such as "under 50 KB"
  • Exact output size and an honest smaller or larger label
  • Transparent areas filled white instead of black
  • Removes EXIF and GPS metadata as a side effect
  • Runs locally in your browser
Read the guide: Resize, Convert, Compress: A Practical Order for Web Images

Updated

How to use the Image Compressor

  1. Set Compression Quality first. 80% is the default and a sensible starting point for photos.
  2. Drag images onto the upload area or click Choose Images. You can select many files at once.
  3. Check each card: it shows the original and compressed size and whether the file got smaller or larger.
  4. Change the slider and click Recompress All to try another quality on the same files.
  5. Click Download on a card, or Download All. Files are saved as name_compressed.jpg.

Worked examples

Phone photo to under 50 KB for an application form

Input

IMG_2041.jpg, 3.34 MB, 4000 × 3000 pixels; target 50 KB; quality slider at 80%

Output

A JPEG of at most 50,000 bytes, which the result card shows as "48.83 KB" or less, with the quality and pixel size the search settled on

The limit is read as 50 × 1,000 = 50,000 bytes. The tool lists sizes in 1,024-byte KB, so 50,000 bytes appears as 48.83 KB. That small gap is deliberate: the file passes whether the portal counts a KB as 1,000 or 1,024 bytes.

Signature scan under 20 KB

Input

signature.png from a scanner, target 20 KB

Output

A JPEG of at most 20,000 bytes on a white background

A signature on white paper is mostly flat colour, so it usually fits 20 KB at a high quality without shrinking. A transparent PNG signature gets a white background, not black, because JPEG cannot store transparency. If the form says 10 to 20 KB, check the result is not below 10,240 bytes; the resizer can enforce both ends.

Background and insight

JPEG, standardised as ITU-T T.81 in 1992, is lossy. It splits the image into 8×8 blocks, transforms each with a discrete cosine transform, and then divides the result by a quantisation table. The quality setting scales that table: lower quality means coarser rounding, more zeros and a smaller file. Between roughly 70% and 85% most photos lose very little visible detail while shrinking a lot, and below about 50% blocking and colour banding start to show, especially in skies and gradients.

The quality number is not a standard unit. Every encoder maps it to its own tables, so 80 in a browser canvas is not the same as 80 in Photoshop, libjpeg-turbo or MozJPEG. Judge by looking at the output, not by the number.

JPEG has no alpha channel. When a transparent PNG goes through a canvas into JPEG, the transparent pixels would normally come out black. This tool paints a white background first, which is what most people expect for logos and screenshots. If you need to keep transparency, convert to WebP or PNG with the Image Format Converter instead.

Common use cases

  • Meeting upload limits

    Get photos under the size cap of a form, CMS, job portal or support ticket system.

  • Faster web pages

    Shrink blog and product photos before uploading them so pages load faster on mobile connections.

  • Emailing a batch of photos

    Compress a set of phone pictures so they fit in one email instead of five.

  • Stripping location before sharing

    Re-encoding removes EXIF, including GPS coordinates, from photos you post publicly.

Tips and limitations

  • Read the KB limit in your own notification, not a coaching site's summary. Ranges differ between SSC, UPSC, NTA, IBPS and state commissions, and they change between years.
  • Crop away the background first. A tight head-and-shoulders crop needs fewer bytes for the same sharpness, so the face stays clear at 20 KB.
  • Save the original. Compressing an already compressed copy a second time loses detail each round.
  • Some portals accept only .jpg or .jpeg. The download is always .jpg, whatever you uploaded.

Sources and further reading

  1. Guidelines for scanning the photograph, signature, thumb impression, hand-written declaration and documents, Punjab & Sind Bank. Apprentice recruitment: photo 20 to 50 KB, signature 10 to 20 KB, JPG or JPEG, "adjust the settings" if over the limit
  2. HTMLCanvasElement: toBlob() method, MDN Web Docs. The JPEG quality argument the search varies
  3. T.81: Digital compression and coding of continuous-tone still images, International Telecommunication Union. Why lower quality gives smaller JPEG files

Frequently asked questions

How do I reduce a photo to under 50 KB for a government form?

Type 50 in Target size (KB), then add the photo. The result card shows the new size, the quality used and the pixel size. Download it and upload that file. If the form also states exact pixels, such as 200 × 230, use the Image Resizer with the Form photo preset, which sets the size and the 20 to 50 KB range together.

The portal says my 50 KB file is too large. Why?

Many portals count 1 KB as 1,024 bytes, but some count 1,000. A file of 50,500 bytes is 49.3 KB in one reading and 50.5 KB in the other. This tool aims at the stricter number, 50,000 bytes for a 50 KB limit, so the file passes both checks.

Can I compress an image to 20 KB without losing quality?

Not without some loss for a camera photo; 20 KB is tiny. What you can control is where the loss goes. The tool keeps the highest JPEG quality that fits, and shrinks the pixels only when it must. A passport-style photo at around 200 × 230 pixels looks clear at 20 KB, while a full-size photo squeezed to 20 KB looks blocky.

My form asks for a minimum size such as 10 KB or 20 KB. Can this tool make a file bigger?

This page only makes files smaller. A minimum usually trips people up with small signatures. Use the Image Resizer with a Min size (KB): it raises the JPEG quality as far as the maximum allows and warns you if the file is still under the minimum, so you can rescan at a higher resolution.

Is it safe to compress my photo and signature on a website?

Here the image is decoded and re-encoded in your browser with the canvas API, and no file is sent to a server. The compressed copy also has no EXIF data, such as phone model or location. You can switch off mobile data after the page loads and it still works.

Does the output work for JPG-only exam portals?

Yes. Output is always JPEG and the file name ends in .jpg, which is the format recruitment notices ask for.

Is there an in-depth guide to the Image Compressor?

Yes. “Resize, Convert, Compress: A Practical Order for Web Images” covers the background, how it works, common pitfalls and worked examples. Read the full guide.