Make a HEIC photo fit an exact file size limit

Enter the maximum size a form allows and the tool searches for the highest quality that fits, in up to 10 attempts. It shows the quality and size reached, or why the target cannot be met.

Drop HEIC photos here, or pick them from your device

Stays on your device. Nothing is uploaded.

Processing on this device

How to use it

  1. Add a HEIC photo.
  2. Enter the target in KB or MB, and choose JPG, WebP or AVIF.
  3. Optionally set maximum dimensions to give the search more room.
  4. Run it. Read the quality and size reached, then download.

What it keeps

  • The best quality that still fits, found by iterative search.
  • Visible orientation.

What it removes or changes

  • Quality is reduced as needed, so the result is lossy.
  • If you set maximum dimensions, the photo is resized down.
  • Metadata is optional and off for location by default.

Limits

  • The search uses at most 10 attempts.
  • If the target is impossible even at minimum quality, the tool says so. Add a smaller maximum dimension and retry.
  • HEIC is not an output here. The output is JPG, WebP or AVIF.

Compatibility

JPG is the best choice for upload portals and forms because they almost always accept it. WebP and AVIF can fit more quality into the same size but fewer systems accept them. Check what the destination takes before picking.

Privacy

The search and encoding run in your browser. The photo is not uploaded.

Target size versus a general compressor

A compressor asks you to guess a quality and check. Target size works the other way: you state the limit and it finds the quality. That suits forms that reject files over, say, a few hundred KB. If the destination also has strict dimensions or format rules, the upload-ready tool checks all of them together.

Troubleshooting

The target is impossible.

Even minimum quality is too large. Reduce dimensions or choose a more efficient format.

The result is far below my target.

The best fit within 10 attempts may land under it. That is expected because the search is bounded.

The photo looks poor.

The target is very tight. Reduce dimensions instead of quality for a cleaner look.

Frequently asked questions

How many attempts does it make?

It makes up to 10 attempts, adjusting quality each time, and keeps the best result that fits.

Can I limit dimensions too?

Yes. Setting a maximum width or height gives the search more room when the target is tight.

Is HEIC output possible?

No. The output is JPG, WebP or AVIF. Use the HEIC compressor if you want to stay in HEIC.

Related tools

Related guides

Last updated 2026-11-10