File4Edit

How to get an image under a file size limit

Type the limit into the By size mode of Compress image, and File4Edit finds the highest quality that fits. If even the lowest quality is too big, reduce the pixel dimensions as well: half the width is a quarter of the pixels.

Why is the file too big?

An image's file size comes down to two things: how many pixels it holds, and how hard its format squeezes them. A photo straight from a phone camera is thousands of pixels on each side, and a PNG, or a JPEG saved at a very high quality, keeps nearly every detail and pays for it in bytes. An upload form that stops at 2 MB does not care which of the two is to blame, but the fix depends on it.

Quality is the lever to try first, because the picture keeps its dimensions. Dimensions are the stronger lever: the pixel count falls with the square of the width, so a photo resized to half its width holds a quarter of the pixels.

How do you hit an exact size limit?

Let the tool do the guessing. Compress image has a By size mode that takes the limit itself and searches for the highest quality that still fits, encoding the image several times over and keeping the best result under the target.

  1. Open Compress image and add the file, or a whole batch that shares one limit. Compress image
  2. Switch Mode from By quality to By size, and type the limit into Target size. Entries such as 200kb, 1.5mb and 900 all work, and a bare number is read as kilobytes.
  3. Choose a format. Keep leaves each file in the format it arrived in; WebP and JPEG are the two that a quality search can actually shrink.
  4. Press Apply. Each file is encoded until the highest quality under the target is found, and the size it reached is shown beside it.
  5. Download the file, or the whole batch as one ZIP.

Worth knowingWhen the target cannot be reached, File4Edit says so and names the smallest size it managed, instead of handing back a file that is still too big. That message is the cue to reduce the dimensions.

Why can a file that fits still be refused?

Because not everyone counts a megabyte the same way. Some forms count it as 1,000,000 bytes and others as 1,048,576. File4Edit reads 2mb the second way, as 2,097,152 bytes, so a file it fitted under 2mb can still be turned away by a form that counts the first way.

The safe habit is to aim a little low. Typing 1.9mb for a 2 MB limit asks for 1,992,294 bytes at most, which passes either count.

What if quality alone is not enough?

Reduce the dimensions, then compress again. Resize image takes a width, a height or a percentage, keeps the proportions, and shrinks large images in halving steps so they stay sharp. A photo resized to 1920 pixels wide, one of its presets, still fills a Full HD screen edge to edge.

Resize first and compress second. A smaller image reaches the same file size at a higher quality, so it looks better than a full-size image compressed hard, and the quality search has less to throw away.

If only part of the picture matters, Crop image is the most effective size reduction there is: every pixel cut away is one that never has to be stored.

Which format gets a photo smallest?

For photographs, WebP or JPEG. Google's published comparison found lossy WebP files 25 to 34 percent smaller than JPEGs of equal measured quality, so under a tight limit a WebP keeps more detail. Check that the form accepts WebP first, because many still ask for JPG or PNG. A photo saved as PNG usually shrinks a long way just by becoming a JPEG, which the PNG to JPG converter does.

A quality setting does nothing to a PNG, which is lossless, so target-size mode cannot shrink one that stays a PNG. For a screenshot or a diagram, crop away what is not needed or reduce its dimensions instead; converting it to JPEG would blur its edges.

AVIF can be smaller again, but no browser's built-in image encoder can write it and File4Edit has no AVIF encoder of its own, so it does not offer AVIF as an output. And if the file that is too big is a PDF, the tools are different: see How to make a PDF small enough to email.

Size limits: common questions

Does compressing a photo make it look worse?

A little, and target-size mode spends as little of it as it can by finding the highest quality that fits. JPEG and WebP drop the detail the eye is least likely to miss, so at the qualities a sensible limit needs, most photos look the same on a screen.

Why does target-size mode say it could not reach my limit?

Because even the lowest quality it tried was still too large, which happens with very large images and with PNGs, where quality changes nothing. Reduce the dimensions with Resize image and try again.

Can I get a whole batch under the same limit?

Yes. The target applies to every file you add, each one gets its own quality search, and the batch downloads as one ZIP.

Are my photos uploaded to do this?

No. Every encode in the search happens in your browser tab on your own device, however many it takes, and nothing is sent anywhere.