Image

How to compress an image to 150KB without losing the details that matter

150 KB is a comfortable limit for photos and scans, so most images fit without visible damage. We ran five test images through the tool, logged every attempt on the hardest one, and checked what happens when you refuse to shrink the pixels.

Updated ยท 11 min read

Featured image: How to compress an image to 150KB without losing the details that matter, 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 150KB, open Dokurapi's free Compress Image tool, choose one photo, type 150 in the Custom target (KB) box, leave Pixel size on Shrink if needed, press Compress photo, and read the Output figure before you press Download result. The tool aims 6% below the number you type, so a 150 KB target means a JPG of at most 141,000 bytes. The photo never leaves your device; the work happens inside the browser tab. In our test a 5.00 MB phone photo came out at 99,949 bytes, still 2400 x 1800 pixels, in under half a second.

150 KB sits between the two presets the tool offers, 100 KB and 200 KB, and it shows up on job portals, school registration forms and membership sites that want a clear photo without a heavy file. Compared with tight limits such as 30 KB or 50 KB it is generous: none of our five test images had to drop below 1,300 pixels on the long side. The interesting cases are the exceptions. A photo of a printed page needed sixteen attempts, a small portrait was already under the limit, and switching the pixel setting to Keep original size made two large photos fail. This guide walks through the steps, the real numbers, and what to check before you upload. For nearby limits, see our guides to 100 KB, 200 KB and 300 KB.

Steps to compress an image to 150KB

You need no account and no app. The tool writes a new JPG and leaves your original file untouched.

  1. Check the current size. The file properties on a computer or the details view in your phone's file manager show it. If the JPG is already under 150 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 explains how.
  3. Type 150 in the Custom target (KB) box. The Target size menu offers 100 KB, 200 KB, 500 KB, 1 MB and 2 MB. A number in the custom box always takes priority, so the menu can stay on 200 KB.
  4. Leave Pixel size on Shrink if needed. For most photos at 150 KB the pixels are never reduced, but the option gives the tool room when quality alone is not enough.
  5. Press Compress photo. On a laptop our slowest test took about two seconds.
  6. Read the result box, then download. It shows the original size, the output size, the final quality and the pixel size. Open the file and zoom in before you upload it.
Dokurapi Compress Image tool with 150 typed as the custom target, showing a 5.00 MB phone photo reduced to 99.9 KB at quality 24% and 2400 x 1800 px
The tool after our first test: a synthetic 5.00 MB phone photo with 150 in Custom target (KB). The safe target was reached at 99.9 KB with quality 24%, and the photo kept 2,400 pixels on the long side.

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

Open the Compress Image tool

How the tool reaches 150KB

The tool works in two stages. 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 above the safe line, it lowers quality by 10 points and tries again, up to seven more times, never below 18%. The quality value goes straight to the browser's own JPEG encoder, described in MDN's toBlob reference, so the exact bytes can differ slightly between browsers.

Only if quality 18% is still too big does the second stage start. The tool shrinks width and height by a factor based on how far the file is from the target, then tries quality 72%, 58%, 45% and 32% at the new size and keeps the smallest file. It repeats with a smaller size until the file fits, and never goes below 640 pixels on the long side.

The safe line is 150 x 1,000 x 0.94 = 141,000 bytes. The tool counts 1 KB as 1,000 bytes, the decimal convention described by NIST's page on binary prefixes. A portal that counts 1 KB as 1,024 bytes allows 153,600 bytes for 150 KB, so a result under 141,000 bytes passes either way. The 6% margin also absorbs the small differences between browsers.

What the tool returned for five test images

We tested five synthetic images that stand in for what people usually upload: a 5.00 MB phone photo (4000 x 3000), a 5.27 MB photo of a printed page (3000 x 4000), a 682 KB cropped scan of the same page, a 140 KB small portrait (480 x 640) and a 278 KB signature scan (1600 x 600). None contain personal data. Each ran through the live tool code with the target set to 150, in English and Indonesian; the byte counts were identical.

Test imageOriginalResultQuality and pixelsAttempts
Phone photo5.00 MB99,949 bytes24%, 2400 x 18007
Document photo5.27 MB126,980 bytes32%, 1301 x 173416
Cropped document682 KB131,613 bytes34%, 1500 x 10006
Small portrait139,852 bytesalready under the lineoriginal kept1
Signature scan278 KB101,407 bytes74%, 1600 x 6002
Five bars against a dashed 141,000 byte safe line: phone photo 99,949, document photo 126,980, cropped document 131,613, small photo 139,852 already under the line, signature scan 101,407
All five images against the 141,000 byte safe line. Four were compressed under it; the small portrait was already below the line, so the tool recommends keeping the original. The cropped document came closest, with 9,387 bytes to spare.

Three patterns stand out. Smooth photos are easy: the phone photo fitted at full 2,400 pixel width just by lowering quality. Text is hard: the photo of a printed page needed the second stage, because fine black strokes on white paper produce many edges, and edges cost bytes in JPEG. Signatures are the opposite: mostly white paper with a few strokes, so the file fitted at quality 74%, where the ink still looks crisp.

Sixteen attempts on a photo of a printed page

The document photo is the one to watch, because it shows how the tool behaves when quality alone is not enough. At the capped size of 1,800 x 2,400 pixels, the first attempt at quality 84% weighed 1,150,666 bytes. Seven more quality steps brought it down to 169,866 bytes at 18%, still 28,866 bytes over the line.

Column chart of 16 attempts on a 5.27 MB document photo: eight quality steps at 1800 px from 1,150,666 to 169,866 bytes, then 1530 px from 540,080 to 225,932 bytes, then 1301 px from 285,997 to 126,980 bytes, which fits under the 141,000 byte line
Every attempt the tool made on our document photo with a 150 KB target. Quality alone stopped at 169,866 bytes, so the tool reduced the pixels twice; each new round starts again at quality 72%. The sixteenth attempt fitted.

The tool then shrank the page to 1,530 pixels wide and started again at quality 72%. That round ended at 225,932 bytes, so it shrank again to 1,301 x 1,734 pixels, where quality 32% produced 126,980 bytes. The whole search took about two seconds. The result is softer than the original but the printed lines remain readable, which is what a form reviewer needs. If you want sharper text, crop away the table, the shadow and the background first. Our guide to cropping a photo shows how, and the cropped scan in our test fitted at 1,500 pixels and quality 34% without any shrinking.

What happens with Keep original size

The Pixel size menu has a second option, Keep original size. It stops the tool from changing the pixel dimensions, so only JPEG quality goes down. That helps when a form requires exact pixels, for example 400 x 600, but it is risky with full size phone photos. We ran three images with Keep original size and the same 150 KB target.

  • Phone photo: stayed at 4000 x 3000 pixels and stopped at 285,869 bytes at quality 18%, almost double the limit. The tool says the target was not reached.
  • Document photo: stayed at 3000 x 4000 pixels and stopped at 476,899 bytes.
  • Signature scan: fitted at 101,407 bytes, exactly as before, because it never needed shrinking.

So Keep original size is only safe when the image is already close to the size the form wants. If the form fixes the pixel dimensions, resize first with our resize photo guide, then compress with Keep original size.

When the image is already under 150KB

Our small portrait was 139,852 bytes, just under the 141,000 byte line. The tool noticed and said so: the original is already under the target, so it does not need compressing, and the JPG it made is only useful if the portal insists on JPG. That JPG was 104,481 bytes at quality 84%, smaller but not better looking. When the original fits, upload the original.

Dokurapi Compress Image tool with a 140 KB small photo and target 150, showing the message that the original is already under the target and a 104 KB JPG result at quality 84% and 480 x 640 px
The message you see when the file already fits: the 140 KB portrait is under the 141,000 byte line, so the tool suggests keeping the original. The 104 KB JPG below is only for portals that require JPG.

This check uses the same 6% margin, so an image between 141,000 and 150,000 bytes is still compressed. That is deliberate: some portals count kilobytes with 1,024 bytes, and some add a few bytes when they rename the file. A little room avoids a rejection at the last step. If a form also sets a minimum size, for example at least 50 KB, every result in our test stayed above 99 KB. The reverse problem, a file that is too small, is covered in our guide to increasing image size in KB.

Which setting to use for common forms

Most 150 KB requests come with one or two extra rules. The table matches them with the right setting.

Form asks forPixel size settingExtra step
Photo under 150 KB, any pixelsShrink if neededNone
Photo under 150 KB and exact pixelsKeep original sizeResize or crop to the exact pixels first
Scan of a document under 150 KBShrink if neededCrop to the paper edges for sharper text
Signature under 150 KBShrink if neededCrop close to the ink
JPG only, file is PNG or WebPShrink if neededNone, the output is always JPG
PDF under 150 KBNot this toolUse the PDF compressor with target 150

The last row matters because many forms say file when they mean PDF. Our article on compressing a PDF to 150KB covers that case. PNG screenshots and logos are another trap: the tool always saves JPG and fills transparent areas with white, which our PNG to JPG guide explains.

Check the file before you upload it

Before you press upload, confirm three things: the byte count in the result box is below the limit, the file type is what the form wants, and the image is still usable. Open the downloaded file at 100% zoom and look at the face, the text or the signature. At 150 KB that check usually passes, but photos of printed pages deserve a second look.

When you prepare several files for one application, compress them one at a time and rename each download straight away. The tool adds -dokurapi to the original name, so originals and compressed copies stay easy to tell apart. Our note on checking file size before upload explains how to read bytes, kilobytes and megabytes on Windows, Mac, Android and iPhone. If an image still refuses to fit, a file that is still too big lists the remaining options, and the general guide on how to compress an image covers other targets.

Frequently asked questions

How do I compress an image to 150KB for free?
Open the Dokurapi Compress Image tool, choose the image, type 150 in Custom target (KB), 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.
What is the exact byte limit for 150KB?
The tool aims for at most 141,000 bytes, which is 6% under 150,000 bytes. That passes portals that count 1 KB as 1,000 bytes and portals that count 1 KB as 1,024 bytes (153,600 bytes).
Will my photo lose quality at 150KB?
Usually very little. In our test a 5 MB phone photo fitted at 99,949 bytes while keeping 2400 x 1800 pixels. Photos of printed text lose more detail, so crop them first.
Why did the tool reduce the pixel size of my image?
Because quality 18% at the capped size was still above 141,000 bytes. The tool then shrinks the width and height step by step, never below 640 pixels on the long side, until the file fits.
Can I keep the original pixel size?
Yes, choose Keep original size. Only JPEG quality goes down, so large phone photos may not reach 150 KB. In our test a 4000 x 3000 photo stopped at 285,869 bytes.
My image is already under 150KB. Should I still compress it?
No. If the original is under 141,000 bytes the tool tells you to keep it. Compressing again only makes sense when the portal requires JPG and your file is PNG or WebP.
Is my image uploaded to a server?
No. Dokurapi compresses images inside your browser tab with the canvas API. The file is not sent to a server.
Can I compress a PDF to 150KB with this tool?
No, this tool is for images. Use the Dokurapi PDF compressor and type 150 as the custom target.

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.