How to Compress an Image Online, Free
A photo straight off a phone camera can run 5-10MB — too big for an email attachment limit, too slow for a web page, and more storage than most of it needs to use. The FlexFiles image compression tool shrinks JPEG, PNG, GIF, and WebP files, free and online.
Minimal, Balanced, and Maximum Are Just Shortcuts
The three presets aren't three different compression engines — they're shortcuts to a single compression-level slider that runs from 1 to 100. Minimal sets it to 20%, Balanced to 50%, Maximum to 80%. Picking a preset just moves the slider to a sensible starting point; you can also skip the presets and drag to any level in between, or type an exact number, if none of the three line up with what you want.
What Compression Actually Does, by Format
JPEG is re-encoded at the quality level your setting implies — this is lossy compression, meaning some image detail is genuinely discarded to make the file smaller. Higher compression levels trade away more of it.
PNG works differently by nature: PNG compression is lossless, so a transparent PNG keeps its alpha channel and only gets its lossless compression tightened — no pixel data is thrown away, which also means the file won't shrink nearly as dramatically as a JPEG would at the same setting.
If your PNG has no transparency to protect and you push the compression level above 70%, FlexFiles switches the output to JPEG automatically to get an actual size reduction — the file comes back as a .jpg instead of a .png in that case. That's deliberate: without transparency in the picture, JPEG will almost always produce a smaller file at the same visual quality, so there's little reason to keep it as a PNG that can't compress much further.
GIF and WebP are each re-optimized in their own format — WebP encoded at your chosen quality, GIF through its own optimizer.
It Won't Make an Already-Optimized Image Bigger
Compressing a file that's already well-optimized can sometimes produce a larger result than the original — re-encoding has overhead that doesn't always pay off on a file that's already tight. FlexFiles checks for this: if the compressed output comes back bigger than what you uploaded, it discards the attempt and hands you back the original file untouched — unless you deliberately set the compression level to 90% or higher, in which case it respects your choice even if the result isn't smaller.
This Changes File Size, Not Dimensions
Worth being clear about: compression changes how the pixels are stored, not the image's width or height. A 4000×3000 photo compressed at the highest setting is still a 4000×3000 photo, just encoded more efficiently. If a picture needs to be smaller because its physical dimensions are too large for where it's going — a hero image that only needs to display at 1200px wide, for instance — resizing it down will typically save far more than compression alone, and it's a separate step from this one.
How to Compress an Image Online
Compressing a file takes three steps:
1. Open the Compress Image tool and upload your image — or several at once.
2. Pick a preset, or drag the slider to the exact compression level you want.
3. Download the result — or a single ZIP if you compressed more than one image.
Conclusion
Smaller images load faster, fit into emails that would otherwise bounce, and take up less storage, usually without looking any different to a viewer. The FlexFiles image compression tool gets there in one step, free, for JPEG, PNG, GIF, and WebP. Try the Compress Image tool free, no account needed.



