Image Compressor
Re-encode a browser-supported image and compare its output size. JPEG quality is adjustable; PNG keeps transparency.
How to Use
Choose an image
Select a file no larger than 20 MB that your browser can decode.
Adjust JPEG quality
For non-PNG input, compare the preview at different quality levels. PNG quality is fixed by the browser encoder.
Inspect size and appearance
Check readability, transparency, and whether the generated output is actually smaller.
Download and reopen
Keep the original image and check the exported file in its destination application.
Choose settings that match the output
The tool draws the decoded image to a canvas at its original pixel dimensions. PNG input produces PNG output; other supported images produce JPEG output. The quality slider applies to JPEG only. PNG transparency is retained; JPEG output uses a white background.
Check the result
Start with the default 80% quality for JPEG, inspect the preview, then lower quality if needed. Compare actual generated bytes and reopen the downloaded file. Re-encoding can increase file size, so a saving is not guaranteed.
How It Works
Output size is calculated from decoded Base64 bytes, excluding the data URL header and padding. Saving (%) = (input bytes − output bytes) / input bytes × 100 A 200,000-byte input and 150,000-byte output save 25%. A larger output is reported as larger, not as a successful reduction.
Frequently Asked Questions
Why does the PNG quality slider not work?▼
Why is my result larger?▼
Are animation and metadata preserved?▼
Can a file below 20 MB still fail?▼
Limits and assumptions
- 20 MB input-file limit; decoding also depends on browser codec and memory support.
- PNG quality is not adjustable. Non-PNG input is exported as JPEG.
- Animation and original metadata are not preserved; smaller output is not guaranteed.
Worked guides
References
Documentation updated on . How we review tools
Related Tools
Explore other tools in this category.
Image Resizer
Change the pixel dimensions of any image rapidly in your browser.
PNG to JPG Converter
Quickly flatten PNG images with transparency into standard JPG files.
JPG to PNG Converter
Convert JPEG images to PNG format directly in your browser without uploading to a server.
Image to Base64
Extract the raw Base64 Data URL string directly from an image file for inline HTML usage.
PNG to WebP Converter
Convert PNG images to modern, lightweight WebP format with transparency support.
JPG to WebP Converter
Convert JPEG photos into lightweight WebP format to drastically improve website speed.