Tool — Image Compressor

Compress Image

Shrink JPG, PNG & WebP photos to an exact size — 20KB, 50KB, 100KB or any target. Your images never leave this device.

Canvas API · Zero upload · Free
Click to choose or drag images here
JPG · PNG · WebP · Multiple files · Stays on your device

Compress images online free — to any size you need

PDFZero's image compressor reduces the file size of JPG, PNG and WebP photos directly inside your browser — nothing is uploaded to a server, there's no signup, and no watermark is added. It's built for the most common real-world need: getting a photo or signature under a strict size limit like 20 KB, 50 KB, 100 KB or 200 KB for exam applications, job portals, government forms, visa applications and email attachments.

How to compress an image to 20KB, 50KB or 100KB

  1. Click the drop zone above and choose one or more images (JPG, PNG or WebP), or drag them in.
  2. Select Target size (KB) mode and pick a preset — 20 KB, 50 KB, 100 KB — or type any custom size.
  3. Optionally choose an output format (JPG is usually smallest for photos) and a maximum resolution.
  4. Click Compress images. PDFZero automatically searches for the highest quality that fits under your target size.
  5. Download each image, or all of them at once. Nothing is stored or uploaded anywhere.

Why compress images in the browser instead of uploading?

Most online image compressors upload your photo to a server, process it there, and send it back. That means a copy of your image — which might be your passport photo, signature, ID card or a private picture — sits on someone else's infrastructure. PDFZero uses your browser's own HTML5 canvas engine to re-encode the image locally, so the file never crosses the network. Once the page has loaded, it even works offline. For identity documents and personal photos, local processing is the most private option available.

JPG vs PNG vs WebP — which should you choose?

JPG is the best choice for photographs and scanned documents — it compresses photos to the smallest sizes and is accepted by virtually every website and government portal. WebP is even smaller than JPG at the same quality, but some older portals don't accept it. PNG is lossless and keeps sharp edges perfect (good for screenshots and logos), but produces much larger files — if your PNG photo is too big, converting it to JPG here will usually shrink it by 80–95%.

Common size limits this tool is used for

Exam and job portals in many countries enforce photo and signature upload limits — commonly photo between 20 KB and 100 KB and signature between 10 KB and 50 KB. Email providers typically cap attachments around 25 MB, and websites load faster when images are under 200 KB. With target-size mode you type the exact number the portal asks for and get a file that fits — no trial and error.

Frequently asked questions

How do I compress an image to exactly 20KB, 50KB or 100KB?

Choose your image, switch to Target size mode, type the size you need (for example 20 KB or 100 KB), and click Compress. PDFZero automatically finds the best quality setting that fits under your target size — ideal for exam forms, job applications and government portals that enforce strict upload limits.

Is it safe to compress photos with PDFZero?

Yes. Compression happens entirely in your browser using the HTML5 canvas — your photos are never uploaded to any server. Personal photos, ID documents and signatures stay on your device the whole time.

Which image formats can I compress?

You can compress JPG/JPEG, PNG and WebP images. You can also convert between formats while compressing — for example turn a large PNG into a much smaller JPG or WebP.

Will compressing reduce my image quality?

Some quality is traded for a smaller file, but at 70–85% quality most photos look visually identical to the original. Aggressive targets like 20KB may show visible compression on large photos — the built-in preview lets you check before downloading.

Can I compress multiple images at once?

Yes. Select or drag in several images and PDFZero compresses each one with the same settings, then lets you download them individually or all at once.

Is there a file size or usage limit?

No. Because everything runs locally in your browser there is no server-side cap, no daily limit, no signup and no watermark. Very large images just take a moment longer on slower devices.