ok.OK UtilityA LITTLE EVERYDAY MAGIC

Image Compressor

Compress images to a maximum size such as 20 KB or 50 KB, with quality control and optional pixel-dimension reduction.

Your image workspace

Images

How to use Image Compressor

Reduce image file size by choosing an encoding quality or a maximum number of KB per image. A target such as 20 KB is a ceiling, not an exact padded size; smaller dimensions are used only if you enable that option.

  1. Choose images and the JPG, PNG or WebP output format.
  2. Choose quality mode, or Maximum file size and a KB limit; allow smaller dimensions only if you want that fallback.
  3. Select Compress images, review actual bytes and dimensions for every image, and download the result.

Example: A 20 KB maximum permits at most 20,480 bytes per image. If an image cannot fit at its original dimensions, the tool reports the failure unless dimension reduction is enabled.

How it works: Target bytes = KB limit × 1,024. In target mode the tool tests encoded files, reduces JPG/WebP quality within the supported range, and optionally reduces dimensions until each image fits. PNG does not respond to a lossy-quality slider; impossible targets produce an error.

Understanding the result

Read the actual output bytes and dimensions together. A smaller file can result from encoding quality, format choice, or reduced dimensions when that fallback was explicitly enabled. A low-quality JPEG is not equivalent to a lossless copy.

The quality setting affects lossy JPG and WebP encoding. PNG does not respond to that lossy-quality control in the same way. Transparent PNG converted to JPEG needs a solid background because JPEG cannot preserve transparent pixels.

Use quality mode for a visual-quality decision, or Maximum file size when an upload has a byte limit. The target is per image rather than the size of the whole ZIP.

A 50 KB maximum allows 50 × 1,024 = 51,200 bytes per encoded image. Two successful images can therefore total up to 102,400 bytes before ZIP overhead.

A calculation you can check

A form accepting a maximum of 50 KB allows 51,200 bytes under this tool's 1,024-byte convention. If the destination instead states 50,000 bytes, choose a lower limit and verify the actual downloaded byte count.

What to check before using the answer

  • A maximum is a ceiling; the tool does not pad a smaller file to an exact byte count.
  • Re-encoding can discard metadata. Keep the original when capture information is important.
  • Allow smaller dimensions only if you accept fewer pixels. PNG ignores lossy-quality settings, and some targets cannot be met without resizing or a different format.
Will the image keep its original width and height?

Quality adjustment alone retains them. Maximum-size mode reduces dimensions only if you enable the smaller-dimensions fallback; inspect the output dimensions afterward.

Will it make every image exactly the requested KB?

No. It returns an image at or below the byte limit or reports that the target cannot be reached under your selected constraints. It does not add padding to reach an exact size.

Guidance updated . Methods and corrections

Are my inputs saved?

Your calculation values and selected files are not stored. Recent and saved tools keep tool identifiers; your market preference keeps only its country code in this browser.

Can I switch to a related tool?

Use the grouped tool selector above the form. Each tool has its own URL, and your browser’s Back button returns to the previous tool.

Search the complete directory ESC to close
Your everyday toolkit