Image compression · Optional resizing

Compress image to a target size

Set a maximum file size. Keep the original pixel dimensions or explicitly resize once before compression.

Your image bytes stay in this browser. There is no upload or server fallback.

1. Choose an image

Exactly one static image, up to 25 MiB and 64 MP. Animated or unsupported formats are rejected without flattening or fallback.

Or drop images here. You can also focus this area and paste an image.

2. Set the maximum file size

Enter a size from 5 KB through 20 MB. 1 KB = 1,000 bytes and 1 MB = 1,000,000 bytes.

Quick fill

Maximum file size: 500,000 bytes

Optional. Pixel dimensions stay unchanged unless you enable this setting. The image is resized once before the file-size search.

Choose an image to enable this setting. JPEG images default to JPEG; PNG and WebP images default to WebP.

3. Result

ReadyChoose one image to begin.

Compress an image to 50 KB, 100 KB, 200 KB, or 2 MB

Use the quick-fill buttons when a form, profile, or document portal gives you a common maximum file size. The buttons set exact limits of 50,000, 100,000, 200,000, or 2,000,000 bytes. You can also type another supported KB or MB value.

Refentra keeps the original pixel dimensions by default. Enable resize when a destination also requires specific dimensions. If the image cannot be made small enough, the result clearly says the target was not reached.

Technical details

The selected format is fixed before a deterministic, bounded quality search. At most 12 actual encodes are attempted, all from normalized quality 35 through 100, and actual Blob bytes decide whether the ceiling was reached.

Pixel dimensions stay unchanged by default. With explicit resize enabled, EXIF orientation is applied and the image is rendered once at the requested dimensions before compression. Output is normalized upright in sRGB, and EXIF, IPTC, XMP, ICC, and orientation metadata are stripped by re-encoding.

If quality 35 is still too large, the result is explicitly PARTIAL SUCCESS with “Target reached: No.” That best-effort output remains available for a deliberate download; the tool never enables resize or chooses smaller dimensions on its own.

Still seeing an upload rejection?

File size may be only one of the destination's rules. Use the image upload troubleshooting guide to check pixel dimensions and accepted formats before compressing the image again.

How to compress an image to a target size

  1. Choose your image

    Pick a JPEG, PNG, or WebP file from your device.

  2. Set the target size

    Enter a target size in KB or MB, select the output format, and optionally enable resize with your required dimensions.

  3. Compress and save

    Start the compression and download the result once the target size is reached.

Frequently asked questions

Will the pixel dimensions change?

Not by default. Enable Resize before compression to change the pixel dimensions once before the quality search.

Which formats can I compress?

JPEG, PNG, and WebP inputs are supported, and you choose JPEG or WebP as the output format.

Is this the same as resizing?

The tool preserves dimensions by default. You can optionally combine resizing and target-size compression in one local job.