Compress images without changing their format or dimensions
This compressor accepts one JPG, PNG, or WebP image, redraws its pixels locally in your browser, and re-encodes it in the same format at the same pixel dimensions. It does not impose a fixed byte limit, but large pixel dimensions can exceed the browser's available decode or Canvas memory. The image file is not uploaded to FiloTool for compression. Canvas re-encoding does not preserve source metadata. Animated images are not supported as animations; only the browser-decoded still frame is processed.
Example compression results
Compression results vary by image content, format, source encoding and selected setting. These Smart-mode examples use reproducible synthetic test images from FiloTool's test suite, measured in Playwright Chromium on 2026-08-13. A retained original means the browser encoder did not create a smaller file.
| Example | Dimensions | Input | Setting | Output | Size change |
|---|---|---|---|---|---|
| Synthetic JPEG photo | 640 × 420 | 31.96 KB | Smart | 11.45 KB | 64.18% smaller |
| Text-heavy PNG screenshot | 640 × 420 | 7.34 KB | Smart | 7.34 KB | 0%; original retained |
| Transparent PNG graphic | 480 × 360 | 32.62 KB | Smart | 32.62 KB | 0%; original retained |
| Synthetic WebP photo | 640 × 420 | 12.65 KB | Smart | 5.14 KB | 59.36% smaller |
Method: Synthetic fixtures encoded and measured in bundled Playwright Chromium using the production Canvas MIME types and preset quality values. The production original-file fallback is applied when a candidate is not smaller.
How each format behaves
JPEG/JPG: Quality, Smart and Extreme use lossy qualities 0.88, 0.78 and 0.55. Photos often tolerate lower quality differently from screenshots or small text. Repeated JPEG encoding can add visible blocks, ringing or softness.
PNG: Browser Canvas uses lossless PNG encoding and exposes no quality control here, so every preset uses the same encoder. Transparency is preserved where the browser supports it. Screenshots and flat graphics may compress efficiently already, while photograph-like pixels can remain large.
WebP: The tool uses lossy WebP qualities 0.86, 0.66 and 0.44. Transparency can be preserved, but animation is not. Results depend strongly on the source WebP's existing encoding.
When compression may not help
An already heavily compressed image, a very small file, an efficiently encoded WebP, or a high-quality setting may leave little room to shrink. Some PNGs re-encode to the same size or a larger candidate. When the candidate is not smaller, FiloTool returns the original instead of presenting a negative saving as success.
A useful three-step check
- Add a supported image and note its dimensions and original size.
- Start with Smart; choose Quality for more detail or Extreme for stronger lossy compression.
- Compare the original and result, then inspect text, faces, gradients, sharp edges and transparency before replacing your file.
Compress, resize or convert?
Compression aims to reduce bytes without changing format or dimensions. Resize an image to change pixel dimensions, often the largest saving for oversized photos. Convert its format when JPG, PNG or WebP is a better match for the content. Format-specific controls are also available in the JPG, PNG and WebP compressors.
Choose a format before compressing
Review FiloTool's measured image format comparison and the practical JPG, PNG, and WebP guide, then test your own file.
Frequently asked questions
Does the compressor change the image format?
No. JPG remains JPG, PNG remains PNG, and WebP remains WebP. Use Image Converter when changing formats is the goal.
Why did my download not get smaller?
If browser re-encoding produces a larger file, FiloTool returns the original instead. Already-optimised images and PNG graphics often have little or no further reduction available.
Why do PNG levels behave differently?
Browser Canvas PNG encoding does not expose a lossy quality control. The three levels therefore use lossless PNG re-encoding and may produce similar results; format conversion can make a larger difference.
What do the JPG and WebP levels change?
They use progressively lower encoder quality settings. Stronger compression can reduce file size but may soften fine texture, introduce blocks, or create halos around sharp edges.
Are images uploaded?
No. The current JPG, PNG, and WebP workflow decodes and re-encodes the image in your browser.