Image

How to compress an image to 30KB and still read what matters

30 KB is the smallest round limit where all five of our test images fitted, including two photos of a printed page. Here are the steps, the 20 attempts the tool made on one photo, and how 30 KB compares with 20 KB and 40 KB.

Updated ยท 12 min read

Featured image: How to compress an image to 30KB and still read what matters, with a real screenshot of the Compress Image tool tool on Dokurapi
Inside the frame: a real screenshot of the Dokurapi tool. All processing runs in the browser, nothing is uploaded.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
Dokurapi Compress Image tool with 30 typed as the custom target, showing a 5.00 MB phone photo reduced to 25.2 KB at quality 32% and 1305 x 978 px
The live tool after our first test: a synthetic 5.00 MB phone photo with 30 in Custom target (KB) and Pixel size on Shrink if needed. The safe target was reached at 25.2 KB, quality 32%, with the longest side reduced to 1,305 pixels.

Ready to try it? The tool is free and runs in your browser.

Open the Compress Image tool

How 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.

Line chart of the 20 attempts on a 5.00 MB phone photo: eight quality steps at 2400 px from 971,942 to 60,271 bytes, then rounds at 1806, 1535 and 1305 px, ending at 25,168 bytes under the 28,200 byte safe line
Every attempt the tool made on our phone photo with a 30 KB target, on a logarithmic size scale. Lowering quality alone stopped at 60,271 bytes, so the tool started shrinking the pixels; each new round jumps back up at quality 72% and comes down again. Attempt 16 missed by 4,597 bytes, and attempt 20 fitted.

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.

Compress image to 30KB: results on five test images (28 November 2026)
Test imageOriginalResultQuality and pixelsWhat happened
Signature scan278 KB, 1600 x 60021,443 B24%, 1600 x 600Quality only, seventh step
Small photo140 KB, 480 x 64024,005 B34%, 480 x 640Quality only, sixth step
Phone photo5.00 MB, 4000 x 300025,168 B32%, 1305 x 978Three pixel rounds, 20 attempts
Cropped document682 KB, 1500 x 100023,928 B32%, 676 x 451Three pixel rounds, 20 attempts
Document photo5.27 MB, 3000 x 400027,260 B32%, 518 x 690Three 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.

Five green bars under a dashed 28,200 byte safe line: signature scan 21,443, small photo 24,005, phone photo 25,168, cropped document 23,928 and document photo 27,260
All five results against the 28,200 byte safe line. Every image fitted, with between 940 and 6,757 bytes to spare. The document photo came closest, because fine text is the hardest content to squeeze.

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.

The same five images at 20KB, 30KB and 40KB targets
Test image20 KB target30 KB target40 KB target
Signature scan18,325 B at 18%, 1600 x 60021,443 B at 24%, 1600 x 60029,772 B at 34%, 1600 x 600
Small photo16,261 B at 24%, 480 x 64024,005 B at 34%, 480 x 64031,116 B at 44%, 480 x 640
Phone photo18,726 B at 32%, 1065 x 79925,168 B at 32%, 1305 x 97830,836 B at 32%, 1474 x 1106
Cropped documentNot reached: 20,656 B at 640 x 42823,928 B at 32%, 676 x 45131,839 B at 45%, 723 x 482
Document photoNot reached: 24,351 B at 479 x 64027,260 B at 32%, 518 x 69034,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.

Grid of five test images by three targets: at 20 KB the cropped document and document photo fail, at 30 KB and 40 KB all five fit
Which target each test image reached. Green cells fitted under the safe line; red cells hit the 640 pixel floor and stayed over it. The 30 KB column is the first one with no red cell.

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.

Side by side crop of the same printed lines from the 5.27 MB document photo and from the 27.3 KB result at 518 x 690 px, the result blurred but still readable
The same patch of our document photo before (5.27 MB, 3000 x 4000 px) and after compressing to 30 KB (27.3 KB, 518 x 690 px, quality 32%), scaled to the same width. The words remain readable, but the strokes are clearly softer than at 40 KB.

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.

Dokurapi Compress Image tool with Keep original size selected, showing a 5.00 MB phone photo reduced only to 286 KB at quality 18% and 4000 x 3000 px, with a message that the target was not reached
With Keep original size selected, the same phone photo stopped at 286 KB: quality 18% at the full 4000 x 3000 pixels is the lowest the tool goes, and it reports that the 30 KB target was not reached.

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.

Which setting to use for common 30KB requests
What the form saysPixel size settingDo this first
Photo under 30 KB, no pixel ruleShrink if neededNothing, compress directly
Under 30 KB and exact pixels, for example 300 x 400Keep original sizeResize or crop to the exact pixels
Signature under 30 KBShrink if neededCrop close to the ink
Scan of a document under 30 KBShrink if neededCrop to the paper edges
JPG only, file is PNG or WebPShrink if neededNothing; the output is always JPG
Between 10 KB and 30 KBShrink if neededType 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?
Open the Dokurapi Compress Image tool, choose the image, type 30 in the Custom target (KB) box, keep Pixel size on Shrink if needed, press Compress photo and download the result. It is free, needs no account, and the image stays in your browser.
Why did my 30KB image get smaller in pixels?
A large photo cannot reach 30 KB on quality alone. In our test a 5 MB phone photo was still 60,271 bytes at quality 18%, so the tool reduced the pixels in three rounds until it fitted at 1305 x 978 px.
Is 30KB the same as 30,000 bytes?
In decimal units, yes. Systems that use 1,024 count 30 KB as 30,720 bytes. The tool aims at 28,200 bytes so the file passes either way.
Can a document photo be compressed to 30KB?
In our test, yes. A 5.27 MB photo of a printed page fitted at 27,260 bytes and 518 x 690 px, still readable but soft. At 20 KB the same photo could not fit. Cropping to the paper edges first keeps more detail.
Will a 30KB photo look blurry?
It looks softer than the original but is usually clear enough for a form. Our phone photo kept 1,305 pixels on the long side at quality 32%, and the small portrait kept quality 34%.
Should I use Keep original size for a 30KB target?
Only if the image is already small in pixels. With Keep original size our 5 MB phone photo stopped at 286 KB at quality 18%, about ten times the target.
How do I get a signature under 30KB?
Crop it close to the ink, then compress with a 30 KB target. Our 1600 x 600 signature scan went from 278 KB to 21,443 bytes at quality 24% without being resized.
Is my photo uploaded to Dokurapi?
No. The image is read and compressed by your browser on your own device and is never sent to a server.

Sources

  1. Prefixes for binary multiples, NIST
  2. HTMLCanvasElement: toBlob() method, MDN Web Docs

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

Related articles

Try Dokurapi for Free

No account needed. Pick a tool, drop in a file, and download the result, free.