Forty kilobytes is the largest of the small limits — the cap on some visa and passport-photo portals, company application systems and profile-photo uploads that want a recognisable face rather than a postage stamp. It is also the first of these sizes at which an ordinary phone portrait usually keeps every one of its pixels: the squeeze comes out of quality alone, not dimensions. This tool finds that quality level for you, re-encoding step by step and trimming dimensions only for originals too large or detailed to fit otherwise, and stops at the best result at or under 40KB.
When do you need an image under 40KB?
Forty kilobytes is the limit on a smaller set of forms — some university and board examination portals, professional-body registrations and visa-supporting uploads — that want a clearer photo than the usual 20–30KB caps allow. That extra room matters: at 40KB a portrait keeps visibly more facial detail, which is exactly what these forms are asking for.
- Exam and board portals with a 40KB photograph limit
- Professional registration and licensing forms capped at 40KB
- Any upload rejected for exceeding a 40KB maximum
What 40KB really holds: measured examples
Measured on real test files with the tool's own method — quality first, dimensions only when quality cannot reach the target:
| Portrait photo, 1280 × 1920 (701KB) | 39.9KB — full dimensions kept, every pixel of the original; the first small limit where this happens |
|---|---|
| A4 document scan, 1654 × 2339 (525KB) | 38.0KB — reduced to 748 × 1058; body text readable, small print soft at the edges |
| High-resolution photo, 2560 × 3840 (3,232KB) | 39.6KB — reduced to 1157 × 1736, at 37% quality |
That first row is the story of this size: somewhere between 30KB and 40KB, a normal portrait stops shrinking. Below the line the encoder pays for the budget with pixels; at 40KB it can pay with quality alone, which is a much gentler trade — dimensions are what forms measure and what faces need.
How to use this tool
- Upload your JPG or PNG image.
- Upload the photo your form or portal asked for. If it also states pixel dimensions (many photo specifications do), set them first with the Image Resizer or the matching exam tool, then settle the file size here.
- The search runs automatically — quality steps down, and dimensions are trimmed only for very large or noisy originals. Check the preview: at 40KB a portrait should look close to the original at form size.
- Download the result, ready to upload to the form that requires it.
Settings explained
| Target size | Fixed at 40KB for this page. Need a different limit? Pick any other size below, or use the general Image Compressor for a custom quality level. |
|---|
Tips for the best result at 40KB
- Keep your original file. 40KB is a form copy, not an archive — if the photo matters beyond this application, the uncompressed version stays on your phone or computer.
- Avoid re-compressing a file that was already compressed once. Each JPEG generation discards more; always start from the camera original, not from a messaging-app copy.
- For group or busy-background photos, crop to the person the form is about. Background detail is the most expensive thing in the frame at this budget.
Specifications
| Accepts | JPG, PNG |
|---|---|
| Outputs | JPG |
| Processing | 100% in your browser — files are never uploaded to a server |
| Cost | Free, no account required |
Related tools
Need a different size?
Frequently asked questions
My form says the photo must be between 20KB and 40KB. Is this the right page?
Yes — this is the top of that window, and the tool stops at the highest quality under 40KB, so photographs land just under the cap and inside the range. A very plain scan can finish below 20KB simply because it holds little detail; if your form enforces the minimum strictly, start from a higher-resolution original so the encoder has more to keep.
Does compressing to 40KB change my photo's dimensions?
For most phone photos, no. Our 1280 × 1920 test portrait reached 39.9KB with every pixel intact — the budget came out of quality alone. Only originals that are very large or very detailed are trimmed: the 2560 × 3840 test photo finished at 1157 × 1736. The status line after compressing tells you if your dimensions were reduced.
Is 40KB enough quality for a photo that will be printed?
Not for enlargements. This size is built for uploads — forms, portals and profile pictures viewed on screens, where a 40KB portrait looks clean. Printing magnifies every artefact the encoder left behind, so keep and print from your original file; treat the 40KB result as the form's copy.
Why did my document scan come out softer than my photo at the same 40KB?
Text is the most expensive content there is: every letter edge is fine detail the encoder must pay for, while a portrait's smooth tones are cheap. Our A4 scan finished at 748 × 1058 and 38.0KB with body text readable but small print soft. Scan straight-on in even light and crop to the page edges to give the text the whole budget.
Is my image uploaded to a server?
No. The tool works entirely in your browser — your photo is read, re-encoded and handed back for download without any network transfer in between. There is no sign-up and no stored copy.