Compress an image to 5 KB
Compress an image to another size
How to compress an image to 5 KB
- Choose the photo: JPG, PNG, WebP, GIF or an iPhone HEIC photo. You can pick several at once.
- “Other…” is already picked with 5 filled in as the size in KB. Change it if your form asks for another size.
- Leave “Save as” on JPG: it is the format that gets photos smallest.
- Click Resize. The new file downloads, and the result line shows its size and pixel size.
What 5 KB gets you: our test
| Test picture | Original | Result | Pixels | JPG quality |
|---|---|---|---|---|
| a 16-megapixel public-domain camera photo (4608 × 3456 px, 4.94 MB) | 4.94 MB | 5,037 bytes | 294 × 221 | 37% |
| a 1920 × 1080 PNG screenshot (714 KB) | 714 KB | 5,039 bytes | 246 × 139 | 44% |
To fit, the photo was made smaller in pixels; at 10 KB it was 496 × 372 px. If your form shows the photo small (most do), the difference is hard to see.
Our own test in Chrome on 2026-12-06 with the same code this page runs. Results depend on the picture: busy, detailed photos need more bytes than plain ones.
When a form asks for 5 KB
A 5 KB limit is very tight. It usually belongs to a small icon, an avatar on an older system, or a thumbnail field. A full photo has to shrink to roughly the size of a postage stamp on screen to fit.
Is it 5 KB or 5,000 bytes?
Docmend counts 1 KB as 1,024 bytes here, the way Windows, macOS Finder in “KB” and most phones show sizes. So “5 KB” means up to 5,120 bytes. Our photo came out at 5,037 bytes, which is over 5,000 bytes.
If your form counts 1 KB as 1,000 bytes and rejects the file, pick “Other…” and type 4. The result is then always under 5,000 bytes, so it passes either way.
If the picture looks too soft
- Crop first. Cut the picture down to what the form needs (a face, a signature) with Crop image. Fewer pixels to keep means more detail in each one.
- Signatures: sign in dark ink on white paper. Black and white removes paper colour, which saves bytes.
Common questions
How does Docmend get a photo under 5 KB?
It tries JPG quality levels from high to low and keeps the best one under 5 KB. Only if the lowest quality is still too big does it make the picture smaller in pixels, step by step. In our test the result was 294 × 221 px at 37% quality.
Is 5 KB the same as 5,000 bytes?
Not always. Docmend counts 1 KB as 1,024 bytes, so 5 KB means up to 5,120 bytes. If your form counts 1 KB as 1,000 bytes, choose “Other…” and type 4 to stay under 5,000 bytes.
Can a signature fit in 5 KB?
Usually yes. A signature scanned on white paper is mostly blank, and blank areas take almost no space in a JPG, so a signature fits far more easily than a photo. Crop close to the ink first.
Are my photos uploaded?
No. Docmend works on the picture inside your browser, so it never leaves your phone or computer. Nothing is stored after you close the tab.