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.
- Open Compress image and add the file, or a whole batch that shares one limit. Compress image
- 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.
- 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.
- Press Apply. Each file is encoded until the highest quality under the target is found, and the size it reached is shown beside it.
- 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.