What this tool does
Convert a local image to PNG, JPEG or WebP and compare output size before downloading.
How to use it
- Choose a local PNG, JPEG or WebP file up to 25 MB and 40 million pixels.
- Choose the output format. Quality applies to JPEG and WebP; PNG ignores it. JPEG replaces transparency with white.
- Convert, inspect the preview and actual file size, then download the result. Changing an input clears the previous download.
Formula and method
The browser decodes the image, draws one still image to a canvas and encodes the selected supported format. JPEG transparency is filled with white. MDN: Canvas toBlob()
Worked example
Try WebP at 85% and compare its actual byte size with the original.
Useful for
- Preparing a web image
- Comparing image formats
- Checking file size before publishing
Limits and notes
Browser codec support varies. Animated images become one still image. PNG ignores quality, while JPEG removes transparency over white. Re-encoding may change color or metadata and does not guarantee removing all metadata. Output can be larger; inspect the downloaded copy.
Frequently asked questions
Will the converted file always be smaller?
No. Size depends on the image, format and quality. Compare the original and converted sizes before downloading.
Is my file uploaded?
No. Decoding and conversion happen in this browser. Keep the original and inspect the downloaded copy.