Private, exact-size compression

Compress image to a specific size

Enter any KB limit and keep the highest useful quality that fits, with every image processed on your device.

No uploadImages stay on this device.
Measured bytesSuccess uses the real file size.
Batch workflowUp to 20 images and one ZIP.

Exact-size image compressor

Browser-only processing · six output formats

Your images never go to an upload server. Decoding, compression, previews, and ZIP creation happen on this device.

1. Choose a target size
KB

Enter 5KB to 10MB. The downloaded file will not exceed this limit when the format can reach it.

2. Choose an output format

HEIC/HEIF is supported as input. Reliable browser-only HEIC export is not available, so choose one of the six formats above.

Advanced settingsDimensions, crop, quality
px
px
92%

Dimensions never upscale. JPEG and BMP replace transparency with white. GIF output is static; animated GIF and WebP inputs use the first decoded frame.

Choose images, confirm the target and output format, then compress.

7input formats
6output formats
20files per batch
0files uploaded
Detailed travel still life before compression
Original PNG3.30 MB
The same travel still life compressed to a JPEG under 100KB
Compressed JPEG95.7 KB

A real before-and-after example

See what the size limit changes

This example starts as a detailed 3.30MB PNG and is processed by the same browser workflow used above. Fine texture is retained while the output stays under the selected 100KB ceiling.

  1. 01

    Decode locallyNo image is sent to a server.

  2. 02

    Search quality firstThe engine keeps the highest result that fits.

  3. 03

    Resize only if neededDimensions change only when quality alone is not enough.

Ready-made limits

Pick the size your form asks for

Each landing page opens the same compressor with the target already selected. A custom KB value is always available.

Why this limit matters

Use the real limit, not a rough preset

Custom target mode is for forms and workflows that ask for an uncommon ceiling. Enter the stated KB value and the engine measures each candidate result before it approves the file.

Practical tip

If the destination rejects files at the exact boundary, set a small safety margin below its published maximum.

Where this target helps

Upload forms with uncommon maximum file sizes

Image performance budgets for a specific component

Batches that need one consistent maximum

Format support

Seven inputs. Six honest outputs.

The output picker includes JPEG, PNG, WebP, AVIF, GIF, and BMP. HEIC and HEIF remain input-only because mainstream browsers do not provide a reliable local HEIC export encoder.

FormatInputOutputBest use
JPEGYesYesBest default for photographs and broad form compatibility.
PNGYesYesLossless output with full transparency.
WebPYesYesCompact modern output with transparency.
AVIFYesYesHigh-efficiency browser output powered by a local codec.
GIFYesYesStatic output; animated input uses the first decoded frame.
BMPYesYesUncompressed legacy output; dimensions may shrink to hit a limit.
HEIC / HEIFYesInput onlyDecoded locally, then exported to one of the six reliable formats.

Compression method

Highest useful quality, without guessing

01

Search quality first

JPEG, WebP, AVIF, and GIF outputs search for the highest setting that stays below your custom limit.

02

Resize only when required

If encoding alone cannot reach the limit, the engine reduces dimensions and searches again. It never upscales.

03

Report the measured result

Every file shows its actual bytes, dimensions, savings, and whether the maximum was reached.

FAQ

Questions before you compress

What custom target sizes can I enter?

Enter any maximum from 5KB to 10MB. The result is measured in real bytes and marked successful only when it fits.

Can the compressor make a file larger?

No. The target is treated as a ceiling. The tool does not upscale or add data just to approach a larger number.

What if my form specifies a minimum and maximum?

Aim comfortably below the maximum while checking that the result still exceeds the stated minimum. This tool currently enforces the maximum only.

Why can PNG miss a very small target?

PNG is lossless, so encoder quality cannot be lowered. The tool must reduce dimensions, or you can switch to JPEG or WebP.

Private by design

Your images stay yours.

The compressor has no image upload API. Analytics never receives file names or image contents.

Compress images