
To compress an image to 30KB, open Dokurapi's free Compress Image tool, choose the photo, type 30 in the Custom target (KB) box, leave Pixel size on Shrink if needed, press Compress photo, and check the Output figure before you press Download result. The tool aims 6% below your number, so a 30 KB target means a JPG of at most 28,200 bytes. The photo stays on your device the whole time; the work happens inside the browser tab. In our test a 5.00 MB phone photo came out at 25,168 bytes, 1305 x 978 pixels at JPEG quality 32%, in well under a second.
Thirty kilobytes is a common ceiling for small photos and signature scans on application forms, and it is tighter than it looks. A full size phone photo is about 170 times bigger, so the tool must cut pixels as well as quality. Yet 30 KB turned out to be a useful threshold in our tests: at 20 KB two photos of a printed page could not fit even at the smallest size the tool allows, while at 30 KB both did. This guide covers the steps, how the tool searches for a result, real numbers from five test images, the comparison with 20 KB and 40 KB, and what to check before you upload. For other limits, see our guides to 20 KB, 40 KB, 50 KB and 100 KB.
Steps to compress an image to 30KB
You need no account and no app. The tool writes a new JPG and leaves your original file as it was.
- Check the current size first. The file manager on your phone or the file properties on a computer show it. If the image is already a JPG under 30 KB, upload it as it is.
- Open the Compress Image tool and choose one image. It accepts JPG, PNG and WebP. iPhone photos saved as HEIC need converting first; our HEIC to JPG guide shows how.
- Type 30 in the Custom target (KB) box. The preset menu offers 100 KB, 200 KB, 500 KB, 1 MB and 2 MB, so 30 needs the custom box. A number in the custom box always takes priority over the menu, as the screenshot below shows: the menu still reads 200 KB, but the tool worked to 30.
- Keep Pixel size on Shrink if needed. At 30 KB this is essential for any photo from a phone camera. With Keep original size, a large photo cannot get anywhere near the target, as our test further down shows.
- Press Compress photo. Even a 5 MB photo finished in about half a second on a laptop, although the tool tried 20 versions behind the scenes.
- Read the result box and open the file. It lists the original size, the output size, the final quality and the pixel size. Zoom in on the face, the text or the signature before you upload.

Ready to try it? The tool is free and runs in your browser.
Open the Compress Image toolHow the tool gets an image down to 30KB
The tool works in two stages. In the first, it draws the image on a canvas with the longest side capped at 2,400 pixels and saves a JPG at the starting quality, 84% by default. If the file is still above the safe line, it lowers the quality by 10 points and tries again, up to seven times, never going below 18%. That quality value is passed directly to the browser's own JPEG encoder, as described in MDN's toBlob reference, so results can differ by a few hundred bytes between browsers.
For our phone photo the first stage got nowhere near: even at quality 18% the 2,400 pixel image weighed 60,271 bytes, more than twice the limit. So the second stage began. The tool shrinks the width and height by a factor based on how far the file still is from the target, then retries at quality 72%, 58%, 45% and 32%, keeping the smallest file. It repeats with a smaller size until the file fits, and it never goes below 640 pixels on the long side.
The phone photo needed three rounds, at 1,806, 1,535 and 1,305 pixels, and the twentieth attempt fitted. The safe line itself is 30 x 1,000 x 0.94 = 28,200 bytes. The tool counts 1 KB as 1,000 bytes, the decimal convention explained by NIST, and the 6% margin covers portals that count 1 KB as 1,024 bytes (30,720 bytes) or round sizes up. Our general guide to compressing an image uses the same logic for every target.
What the live tool returned for five test images
We made five synthetic images with no personal data: a colourful phone style photo at 4000 x 3000 pixels, a photo of a printed page at 3000 x 4000, a 1500 x 1000 crop of that page, a scanned signature at 1600 x 600, and a small 480 x 640 portrait style photo of the kind used as a pas foto. Each went through the live tool with a 30 KB custom target and the default settings, once on the English page and once on the Indonesian page, with identical byte counts.
| Test image | Original | Result | Quality and pixels | What happened |
|---|---|---|---|---|
| Signature scan | 278 KB, 1600 x 600 | 21,443 B | 24%, 1600 x 600 | Quality only, seventh step |
| Small photo | 140 KB, 480 x 640 | 24,005 B | 34%, 480 x 640 | Quality only, sixth step |
| Phone photo | 5.00 MB, 4000 x 3000 | 25,168 B | 32%, 1305 x 978 | Three pixel rounds, 20 attempts |
| Cropped document | 682 KB, 1500 x 1000 | 23,928 B | 32%, 676 x 451 | Three pixel rounds, 20 attempts |
| Document photo | 5.27 MB, 3000 x 4000 | 27,260 B | 32%, 518 x 690 | Three pixel rounds, 940 bytes to spare |
Two groups appear. Images that are already small in pixels, the signature and the portrait, reach 30 KB by lowering quality alone and keep their full size. Large photos must lose pixels, and fine detail costs the most: the page full of small text ended at 518 pixels wide, while the smoother phone photo kept 1,305. File size alone tells you little about the outcome; the 682 KB crop ended smaller in pixels than the 5 MB phone photo, because text and paper grain are expensive to encode.
30KB compared with 20KB and 40KB
Forms that ask for a small photo usually pick a round number, and the gap between 20, 30 and 40 KB matters more than it sounds. We put the same five images through the same algorithm at all three targets. The 30 KB column is the live test above; the 20 KB and 40 KB columns match our 20 KB test and 40 KB test.
| Test image | 20 KB target | 30 KB target | 40 KB target |
|---|---|---|---|
| Signature scan | 18,325 B at 18%, 1600 x 600 | 21,443 B at 24%, 1600 x 600 | 29,772 B at 34%, 1600 x 600 |
| Small photo | 16,261 B at 24%, 480 x 640 | 24,005 B at 34%, 480 x 640 | 31,116 B at 44%, 480 x 640 |
| Phone photo | 18,726 B at 32%, 1065 x 799 | 25,168 B at 32%, 1305 x 978 | 30,836 B at 32%, 1474 x 1106 |
| Cropped document | Not reached: 20,656 B at 640 x 428 | 23,928 B at 32%, 676 x 451 | 31,839 B at 45%, 723 x 482 |
| Document photo | Not reached: 24,351 B at 479 x 640 | 27,260 B at 32%, 518 x 690 | 34,000 B at 32%, 604 x 805 |
The step from 20 to 30 KB is what rescues documents: at 20 KB both page photos hit the 640 pixel floor and still missed, and at 30 KB both fitted with room to spare. The step from 30 to 40 KB mostly buys detail, such as the portrait rising from quality 34% to 44% and the phone photo gaining about 170 pixels on the long side. If a form gives a range, such as 20 to 30 KB, aim near the top of it; the extra bytes turn straight into sharpness.
How a 30KB image looks
For a photo of a person or a scene, 30 KB at around 1,300 pixels looks fine on a phone screen and acceptable on a laptop. Quality 32% smooths away fine texture such as hair and fabric, but faces and shapes stay clear, and the result is sharper than a tiny image saved at high quality. For a portrait the size of a pas foto, 480 x 640 pixels at quality 34% is still clean enough for most portals. Our guides to 3x4 photo size and passport photo size list the pixel sizes forms usually want, and a smaller pixel size leaves more of the 30 KB for quality.
Documents are the hard case. At 518 x 690 pixels and quality 32%, our page photo was still readable at normal zoom, as the comparison below shows, but the letters turned noticeably soft and grey, and very small print would start to merge. The fix is to remove what nobody needs to read before compressing: crop away the table, the background and the margins, so the remaining pixels all go to the text. Our photo cropping guide shows how. If a document must stay sharp, ask whether the form accepts a PDF instead, since a PDF with a larger limit usually serves documents better than a 30 KB photo.

Why Keep original size fails at 30KB
The Pixel size menu has a second option, Keep original size (no resize). It tells the tool to lower only the JPEG quality and never touch the pixel count. That is useful when a form demands the exact pixel dimensions you already prepared, but for a large photo at 30 KB it cannot work. We tried it with the same 5.00 MB phone photo: the tool went all the way down to quality 18% at the full 4000 x 3000 pixels and produced 285,869 bytes, about ten times over the limit. The status line said so plainly: the image was reduced, but the target was not reached at the minimum quality.
The crop of the document behaved the same way at 1500 x 1000 pixels: Keep original size stopped at 68,176 bytes, while Shrink if needed reached 23,928. The small 480 x 640 photo, by contrast, gave the same 24,005 byte result with either setting, because it never needed shrinking. So the rule is simple. If you must keep exact pixels, make the image small first with our resize guide, then compress it with Keep original size. Otherwise leave Shrink if needed on and let the tool find the size.

Signatures and small photos at 30KB
A scanned signature is the easiest file to bring under 30 KB, and it shows why pixel count matters more than the original file size. Our 1600 x 600 signature started at 278 KB and reached 21,443 bytes at quality 24% without losing a single pixel, because most of the image is plain white paper that compresses well. If your signature scan is much larger than that, crop it close to the ink first. A signature photographed on a desk with shadows and a wooden background carries far more detail than the signature itself, and the tool has to spend bytes on all of it.
Small portrait photos behave in a similar way. At 480 x 640 pixels our portrait fitted on quality alone at 34%. If a form asks for a photo of exactly that size, resize first and then compress, and the result will keep the pixel size the form expects. For a white or blank background, darker shadows and noise cost extra bytes, so a clean, evenly lit photo leaves more room for the face. Our guide to the job application photo covers lighting and framing that also help compression.
Matching what the form asks for
Small upload limits often come with extra rules about format or pixel size. Read the whole requirement before compressing, because the order of the steps matters. The table below maps common wordings to the setting to use.
| What the form says | Pixel size setting | Do this first |
|---|---|---|
| Photo under 30 KB, no pixel rule | Shrink if needed | Nothing, compress directly |
| Under 30 KB and exact pixels, for example 300 x 400 | Keep original size | Resize or crop to the exact pixels |
| Signature under 30 KB | Shrink if needed | Crop close to the ink |
| Scan of a document under 30 KB | Shrink if needed | Crop to the paper edges |
| JPG only, file is PNG or WebP | Shrink if needed | Nothing; the output is always JPG |
| Between 10 KB and 30 KB | Shrink if needed | Type 30 and check the result stays above 10 KB |
DPI is a common source of confusion on forms with small limits. A request for 300 DPI describes print density, not file size, and you cannot convert one into the other. Our explainer on image DPI covers what forms usually mean. PNG screenshots and logos are another trap: the tool always saves JPG and fills transparent areas with white. Our PNG to JPG guide explains when that switch helps.
Check the file before you upload it
Before the upload, confirm three things: the byte count in the result box is below the limit, the file type matches what the form wants, and the image is still usable. Open the downloaded file and zoom to 100%. If a face or a line of text is too soft, try a tighter crop, or check whether the form really insists on 30 KB; some accept up to 50 or 100 KB, and the extra room makes a visible difference.
If the form also sets a minimum, such as at least 10 KB, a result around 21 to 27 KB is safely inside the range. In the rare case that a file comes out too small, our guide to increasing an image size in KB covers the reverse direction. For a refresher on reading sizes in bytes, kilobytes and megabytes, see checking file size before upload.
When you are preparing several files for one application, compress them one at a time and rename each download straight away. The tool names its output after the original with -dokurapi added at the end, so originals and compressed copies stay easy to tell apart. And if one image refuses to fit even with shrinking, our note on a file that is still too big lists the remaining options.
Frequently asked questions
How do I compress an image to 30KB for free?
Why did my 30KB image get smaller in pixels?
Is 30KB the same as 30,000 bytes?
Can a document photo be compressed to 30KB?
Will a 30KB photo look blurry?
Should I use Keep original size for a 30KB target?
How do I get a signature under 30KB?
Is my photo uploaded to Dokurapi?
Sources
Need help?Result not quite right, or unsure about a form rule? Ask Dokurapi support on WhatsApp. Please do not send personal documents in chat.
Chat on WhatsApp