Compress Image to 40KB
Compress a photo to under 40KB for application forms — a sharp, natural-looking face at an exact limit, and a safe choice for "20–50 KB" photo fields. Free, and it runs in your browser.
or drop JPG, PNG or WEBP images here
or import from
Processed in your browser — your images never leave your device.
Every image will be compressed to under 40 KB.
More tools
40KB is a photo limit in its own right on many application forms, and it is also the sensible number to aim for when a form asks for a photo "between 20 KB and 50 KB": comfortably above the minimum and comfortably below the maximum. At this size a passport-style photo keeps natural skin tones and clear detail around the eyes. Add your photo and you get a JPG under 40KB at the highest quality that fits.
How to compress a photo to 40KB
- 1
Add your photo
Crop it to head and shoulders and add it — JPG, PNG or WEBP.
- 2
Compress to under 40KB
The 40KB limit is already set; change it if your form needs a different number.
- 3
Download
Download the JPG and attach it to your application.
A safe target inside a 20–50 KB range
Aiming right at the top of a range is risky: a file of 49.9KB on one computer can be counted as 51KB by a form that measures differently. 40KB leaves room on both sides, so the photo is accepted however the form counts, while still carrying twice the detail of a 20KB file.
If a form gives the range and a file of yours is already somewhere inside it, there is no need to compress it again — only files outside the range need changing.
What a 40KB photo keeps
A head-and-shoulders photo of about 400 × 500 pixels fits in 40KB at good quality: enough for eyelashes and individual strands of hair to stay distinct, and plenty for the photo to print sharply on an ID card or admit card.
Crop to the head and shoulders before compressing, so the budget is spent on the face rather than on the room behind it.
Using a printed passport photo
If you only have a printed studio photo, lay it flat in daylight and photograph it from directly above with the phone held parallel to it. Tilt the print slightly away from the window if you see a glare, and fill the frame with the photo.
Crop off the white border and the table before compressing. A clean copy of a print compresses well, because studio photos already have even lighting and a plain background.
Natural colours
Indoor lamps turn skin orange and some phone cameras push faces towards blue or green. Forms that check photos sometimes reject a strong colour cast, and compression cannot fix it. Take the photo in daylight near a window, with the overhead lights off, and the colours come out natural.
One photo for several forms
Most people need the same passport-style photo for more than one application, and each form sets its own limit. Keep the original photo — the full-size file from your phone or studio — in a safe folder, and make every upload version from it: 40KB for this form, 20KB or 100KB for the next.
Compressing an already compressed copy again loses a little more detail each time, so a photo that has been squeezed to 20KB and then needs to be 40KB will never look as good as one made from the original. Name each version by its size, such as photo_40kb.jpg, so you upload the right file to the right form.
Compress Image to 40KB features
Natural, sharp faces
About 400 × 500 pixels at good quality — skin tones and fine detail kept.
Safe inside ranges
40KB passes 20–50KB photo fields with margin on both sides.
Private
Your photo is compressed in your browser and stays on your device.
Security & privacy
Photos are compressed on your device, in your browser. For normal photo sizes nothing is uploaded or stored. Only an image above about 16 megapixels, too large for a browser tab, goes to our server and is deleted within about an hour.
Frequently asked questions
How do I compress a photo to 40KB?
Add it here and press Compress — the 40KB limit is already set. You get a JPG under 40KB at the highest quality that fits.
My form says 20 to 50 KB — is 40KB right?
Yes. 40KB sits safely inside the range, whichever way the form counts kilobytes.
How many pixels is a 40KB photo?
Usually about 400 × 500 pixels for a head-and-shoulders photo. Larger photos are reduced automatically until they fit.
How do I turn a printed passport photo into a file?
Photograph it flat in daylight from directly above, avoiding glare, crop off the border and compress it here.
Why does my photo look orange or blue?
Indoor light and some phone settings tint the photo. Take it again in daylight; compression keeps colours as they are and cannot correct them.
Will a 40KB photo print well on an ID card?
Yes. ID cards and admit cards print the photo small, and 40KB is more than enough detail for that.
Is 40KB the same as 0.04MB?
Yes, 40KB is 40,000 bytes. The file also passes forms that count 1KB as 1,024 bytes.
Should I keep the original photo after compressing?
Yes. Make every size you need from the original, not from a compressed copy — each extra round of compression loses a little detail.