In this article (6 sections)
Online forms often ask for a passport-style photo and a signature with a strict file size: under 20 KB, under 50 KB, under 100 KB or under 200 KB. Phones take photos of several megabytes, so the upload is rejected. Getting under the limit is easy once you understand what decides a JPG's size.
What decides the size of a JPG
Three things control the file size of a photograph:
- How many pixels it has. More pixels, more data. A 3000 × 4000 phone photo holds 12 million pixels; a 200 × 270 form photo holds 54,000.
- The JPG quality setting. Lower quality throws away fine detail and makes the file smaller, until blocky patches appear.
- How busy the picture is. A plain background compresses far better than a patterned one.
To meet a small limit you normally lower quality a little and reduce the pixel count a lot. That is why a 20 KB photo is small in pixels as well as in kilobytes.
What our tools do
The four size pages (20 KB, 50 KB, 100 KB and 200 KB) share one method, and it runs in your browser:
- It first tries the original size at high quality. If that is already under the limit, the image is left alone.
- If not, it tries progressively smaller sizes at moderate quality: 85, 70, 55, 45, 35, 28, 20, 15 and 10 percent of the original width and height.
- At the first size that fits, it raises the quality again with a binary search so the file lands just under your limit instead of far below it.
- If even the smallest size does not fit, it gives you the smallest result and says so.
The output is always a JPG with a white background in place of any transparency, because that is what forms accept. The new dimensions are shown after the result so you can check them against the form's rules.
Photos and signatures are different
- Photo. Crop to the head and shoulders first with the Image Cropper. The background and empty space use up bytes and add nothing.
- Signature. Sign in dark ink on plain white paper, photograph it in even light, crop close to the ink, and compress. A signature on a clean background is often well under 20 KB.
- Thin lines and stamps. These lose sharpness first at low quality, so look at them at full size before you upload.
When the form also states dimensions
Some forms specify width and height in pixels as well as the size in kilobytes. Do it in two steps: set the dimensions first with the Image Resizer (it fills an exact size by cropping the edges, if you choose), then compress to the size limit. Because the pixel count is already small, the quality stays high. If the file comes out smaller than a stated minimum, raise the target by a few kilobytes and run it again.
Why uploads still get rejected
- Wrong extension or format. Some portals accept only .jpg or .jpeg. Our output is a JPG; do not rename a PNG.
- Over the limit by a hair. Aim a little below the limit, because systems differ on whether a kilobyte is 1,000 or 1,024 bytes.
- Too dark, blurry or cropped. Review the picture the way an officer would.
- A file name the portal dislikes. Avoid spaces and unusual characters.
A quick workflow
- Take or find the original, as large and sharp as possible.
- Crop to the area the form wants.
- Resize to the stated dimensions, if any.
- Compress to the size page that matches the limit.
- Open the result at 100 percent and check the face or the signature.
- If the form wants a PDF, turn the image into one with JPG to PDF afterwards.
Nothing is uploaded while you do this; your photo stays in your browser. For general image compression without a hard limit, the Image Compressor lets you choose the quality yourself.
Related Tools
Compress Image to 50KB
Get a photo under 50 KB as a JPG for upload forms.
Image Compressor
Compress images to reduce file size. Adjustable quality, instant preview and download.
Compress Image to 20KB
Get a photo or signature under 20 KB as a JPG.
Compress Image to 100KB
Get an image under 100 KB while keeping it sharp.
Ready to try it yourself?
Use the free Compress Image to 50KB — no signup, runs entirely in your browser.
FreeToolsVerse Team
We build free online tools and write the guides that explain how they work. No sign-up needed.