PixelTools

Compress

Compress image to 30KB

Get any photo under 30KB automatically, at the highest quality that fits.

Private: processed on your device, never uploaded

Compression

MaxKB

Output format

More options

Size (pixels)

How it works

  1. 1

    Choose images, drop them onto the box, or paste one with Ctrl/⌘+V.

  2. 2

    Set the quality — or switch to “Target file size” for an exact limit.

  3. 3

    Download each file, or all of them at once as a ZIP.

About this tool

30 KB limits are common for ID-style photos on registration portals. A passport-style photo usually fits at a good quality after a small resize.

Pick your image and the tool searches for the best JPG quality that keeps the file under 30KB. If even a low quality is too big, it reduces the width and height step by step until it fits — so you always get the sharpest possible result within the limit.

You can change the target at any time, or switch the output to WebP for an even better-looking result at the same size (if the site you're uploading to accepts WebP).

Frequently asked questions

Why is my image a little under 30KB rather than exactly 30KB?

Encoders can't produce an exact byte count, so the tool picks the highest quality whose file is at or below the limit. Being slightly under is what upload forms require.

Will the dimensions change?

Only if necessary. The tool first lowers the compression quality; it reduces width and height only when the image still doesn't fit. The final dimensions are shown next to the result.

My form needs JPG. Is the output JPG?

Yes, the default output here is JPG, which every upload form accepts. You can switch to WebP, AVIF or PNG if you prefer.

Are my images uploaded to a server?

No. The image is decoded, processed and re-encoded entirely inside your browser using WebAssembly. Nothing is sent to us or anyone else, which also makes it fast — there is no upload or download wait.

Related tools