Private by design: your image is opened, edited and saved by your own browser with the Canvas API. It is never uploaded to a server, and the page keeps working offline once loaded.
How to make an image 40 KB
- Choose or drop the image. JPG output is preselected because it compresses photos best.
- The size limit is already set to 40. The tool tries quality values by binary search (7 steps) and keeps the best one under 40 KB.
- If even very low quality is too big, it reduces width and height and searches again; the note under the result tells you what changed.
- Download. Check the result size shown above the preview.
How many pixels fit in 40 KB?
A JPEG’s size is roughly pixels × bits per pixel ÷ 8. Bits per pixel depend on detail and quality, so these are rough planning numbers, not guarantees:
| Image type | Typical rate | Pixels that fit | 4:3 size | Square |
|---|---|---|---|---|
| simple graphic / document scan, quality 70 | 0.6 bits/pixel | 0.55 MP | 853 × 640 | 739 × 739 |
| average photo, quality 70 | 1.2 bits/pixel | 0.27 MP | 603 × 452 | 522 × 522 |
| average photo, quality 85 | 2 bits/pixel | 0.16 MP | 467 × 350 | 404 × 404 |
| detailed photo, quality 90 | 3.2 bits/pixel | 0.1 MP | 369 × 277 | 320 × 320 |
40 KB is a typical limit for form uploads, ID photos, avatars and email-friendly images. For such small targets, crop away background first and aim for around 400–800 px wide; a face does not need more.
KB vs kB
This tool counts 1 KB as 1024 bytes, which is how most upload forms and operating systems measure. If a form uses 1 kB = 1000 bytes, 40 KB means 40,000 bytes, so the file here will also pass.