To make an image smaller without making it look obviously worse, first identify what is wasting bytes: excessive pixel dimensions, inefficient encoding, or the wrong file format. Those are three different problems, and treating them separately usually gives better results than simply dragging a quality slider downward.
The three levers that control image size
Dimensions determine how many pixels must be stored. Compression determines how efficiently those pixels are encoded. Format determines which compression methods and features are available.
A 5000×3500 JPEG can be well compressed and still be too large for a 900-pixel card. A tiny PNG can be technically lossless but unnecessarily heavy for a photograph. A transparent logo cannot simply become JPEG without changing its appearance.
What our own compressor test taught us
In our 30-image batch, the total fell from 21.4 MB to 12.1 MB. But 20 of the 30 files were left untouched because the proposed re-encode was not meaningfully smaller.
That is useful evidence against a common assumption: exporting again is not automatically an optimization.

Resize first when the pixel count is excessive
When the image is much larger than its display target, resizing usually offers the cleanest saving. With aspect ratio locked, set one target dimension and let the other follow automatically. Avoid enlarging small source images unless you specifically need upscaling.
Choose a format for the content, not the trend
JPEG remains practical for photographs. PNG is useful when exact pixels or transparency matter. WebP can handle both lossy and lossless images and transparency. AVIF is highly efficient but should be used with browser and workflow compatibility in mind.
Modern formats can help, but format conversion is not a magic shrink button. An already optimized JPEG may actually become larger when it is re-encoded to WebP at a high visual-quality setting.
How to check quality without pixel-peeping forever
- View the result at the size people will actually see it.
- Check faces, hair, text, gradients and sharp edges.
- Compare one or two representative files at 100% if the image will be zoomed.
- Keep the smallest result that still looks appropriate for the use case.
A five-minute optimization checklist
- Are the pixel dimensions larger than the image is ever displayed?
- Does the file need transparency?
- Is the current file already small enough that another encode is pointless?
- Can you remove metadata before publishing?
- Have you tested the actual result rather than relying on a generic quality percentage?
Optimization is successful when the image is appropriate for its destination and still looks right—not when every file reaches the same arbitrary number.
Frequently asked questions
Does smaller file size always mean lower quality?
No. Removing metadata, reducing excessive dimensions or using a more efficient encoding can reduce size without an obvious visual difference.
Is WebP always smaller than JPEG?
No. It often can be, but the result depends on the source file and encoding settings. In our test, several already optimized JPEGs became larger when re-encoded.
Should I resize or compress first?
If the source is far larger than the required display dimensions, resize first. Then compress the resized result.
What is the safest format for transparency?
PNG and WebP both support transparency. JPEG does not.
Bottom line
Start with the biggest structural waste first. If dimensions are excessive, resize. If dimensions are correct, compress. If the format is a mismatch for the content, convert. You rarely need to sacrifice obvious visual quality just to remove unnecessary bytes.
Technical references: MDN image format guide

Questions or something we missed?
Share a question or useful detail. Comments appear after approval.
Be the first to start the conversation.