- Runs in your browser
- No upload
- Free, no signup
40 KB is a hard limit for many upload fields. This preset aims at 40960 bytes or less and keeps as much detail as that budget allows.
A typical photo fits about 0.27 megapixels in this budget, roughly 600 × 450 pixels. That is more than enough for most web pages and forms, but far less than a modern camera produces.
| Target file size | 40 KB (40960 bytes) |
|---|---|
| Dimensions | Auto: reduced only as needed |
| Best formats | JPG, WebP, AVIF (PNG is lossless) |
| Typical pixel budget | ≈ 0.27 MP (600 × 450 at 4:3) |
What fits in 40 KB
File size depends on both pixel count and how much detail the picture holds. The estimates below use rules of thumb for photos saved as JPG at web quality (roughly 0.08 to 0.3 bytes per pixel); your own result will vary with the image.
A typical 12-megapixel phone photo is around 3.5 MB, so reaching 40 KB means roughly a 90× reduction. Most of that comes from reducing the pixel count, not only from lowering quality.
| Kind of image | Roughly fits in 40 KB |
|---|---|
| Smooth image (sky, studio backdrop, flat graphics) | 830 × 620 px (0.51 MP) |
| Typical photo | 600 × 450 px (0.27 MP) |
| Detailed photo (foliage, text, crowds) | 430 × 320 px (0.14 MP) |
How to stay under 40 KB with the best quality
- Start from the original. Compressing a copy that was already compressed stacks artifacts on top of each other.
- Crop first. Removing empty background means the same 40 KB is spent on the part of the picture that matters.
- Use JPG or WebP for photographs. Keep PNG for flat-color graphics; a photographic PNG is usually many times larger than the same picture as a JPG.
- Do not rename the file extension to change format. Choose the output format in the tool so the file is actually re-encoded.
- Expect visible softness on detailed images. If a form lists both a size limit and minimum pixel dimensions, check them against the table above before you start.
About this size limit
Here 1 KB is 1,024 bytes, so 40 KB is 40960 bytes. Some systems count 1 KB as 1,000 bytes, which makes their limit about 2.3% smaller. If a portal is strict, choose a target a little below its stated limit; an extra margin costs very little quality.
How to resize an image to 40KB
- Add your image. Select a photo or drag it onto the box above. JPG, PNG, WebP, AVIF, HEIC and BMP files are accepted, and the file stays on your device.
- Check the 40 KB target. The editor opens with the target file size already set to 40 KB and the dimensions left on Auto, so the tool only reduces quality and size as far as it must.
- Pick an output format. JPG or WebP usually give the smallest result for photos. PNG is lossless, so it cannot be squeezed by lowering quality.
- Download and verify. Download the result and check its size in your file manager. If it is still above 40 KB, lower the pixel dimensions slightly or crop out unneeded areas and run it again.
Related presets
Nearby file-size limits
More in this category: Resize Image to a Target File Size. For several photos at once, use the bulk image resizer.
Frequently asked questions
How do I resize an image to 40KB without it looking blurry?▼
How many pixels can a 40 KB image have?▼
What if the result is still larger than 40 KB?▼
Which format gives the smallest 40 KB file?▼
Is my image uploaded anywhere?▼
Can I resize several images to 40 KB at once?▼
Looking for a different size or format?
Explore over 1,500+ curated presets for social media, print, and strict file sizes.