Compress Image to a Target Size
Turn a JPG, PNG or WebP image into a smaller JPEG that fits a KB limit. Preset to 200 KB, adjustable, and processed in your browser.
Compress a photo to 200 KB
Processed in your browserFiles stay in this browser tab. Nothing is uploaded to a server.
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 WhatsAppTo compress an image for an online form, you need two things: the size limit the form states, and a tool that aims for that limit instead of guessing. Dokurapi does exactly that. You set a target (200 KB by default), and it lowers JPEG quality step by step until the file is safely under it, then shows you the quality it ended up using.
What the tool does to your image
The image is decoded by your browser, so any format your browser can open works, including JPG, PNG and WebP. Then:
- If the longest side is larger than 2400 px, the image is scaled down to 2400 px.
- It is encoded as JPEG starting at the starting quality slider value, 84% by default.
- If the file is still too big, quality drops by 10 points per step, for up to 7 steps, and never below 18%. If the file is still too big at the 18% floor, the tool then shrinks the pixel dimensions step by step (never below 640 px on the longest side) and shows the final dimensions in the result.
- It stops at the first result under the safe target, which is your limit times 0.94.
The output is always JPEG. Transparent areas in a PNG become white, which is fine for photos and documents but worth knowing if you are compressing a logo.
Picking a size
Presets cover the common cases, and the custom KB field overrides them when your form uses another number:
| Target | Typical use |
|---|---|
| 100 KB | Small profile photos, signatures, thumbnails |
| 200 KB | Application photos, ID card scans, selfies |
| 500 KB | Document photos with fine print |
| 1 MB | Detailed photos for sharing or archiving |
KB on this site means 1000 bytes, so 200 KB is 200,000 bytes and the safe target is 188,000 bytes.
Reading the result
After compression you see the original size, the new size and the JPEG quality used. A quality in the 60s to 80s generally looks close to the original on screen. If the tool had to go down to the 20s or 30s, look closely for blocky edges around text and faces. In that case, cropping away empty background before compressing gives the encoder less to store and lets it keep a higher quality.
If the target cannot be reached even at the minimum quality, the tool says so and still offers the smallest version. Try a lower resolution source or a tighter crop.
Privacy and metadata
Your photo is never uploaded; the work happens in the browser tab. Re-encoding also drops EXIF metadata, which removes camera details and GPS location from the file you share. That is a quiet benefit when you send personal photos to forms you do not control. If you need several photos in one document, convert them with photo to PDF instead.
How to use
Choose an image
Select one JPG, PNG or WebP image from your phone or computer.
Set the target
Keep the 200 KB preset, pick another preset, or type a custom KB value from your form.
Adjust starting quality if needed
The slider starts at 84%. Lower it if you prefer a smaller file from the first attempt.
Compress and review
Run the compressor and check the original size, output size and JPEG quality used.
Download
Save the JPEG. Use Clear to remove the image from the page.
Other sizes and tools
Frequently asked questions
Which image formats can I compress?
Why did my transparent PNG get a white background?
Does compressing remove location data from my photo?
Can I compress several images at once?
What does the JPEG quality number in the result mean?
More tools
Try Dokurapi for Free
No account needed. Pick a tool, drop in a file, and download the result, free.