Image Format Converter
Convert images between PNG, JPEG and WebP on canvas — with honest notes on transparency flattening and quality trade-offs.
Reviewed 17 November 2026 · Free · No account needed
How to use
- Choose the image file.
- Pick the output format.
- Process, preview the result and download.
Example
Input: PNG with transparency
Output: JPEG version (white background) or WebP — transparency is flattened to white in every format
How it works
The image is decoded and re-encoded in the target format (PNG, JPEG or WebP) using the canvas API. Transparency is lost when converting to JPEG, which has no alpha channel.
The image is decoded onto a full-size canvas and re-encoded with canvas.toDataURL in the target format — PNG losslessly, JPEG and WebP at the browser's default quality. The tool checks which MIME type the browser actually produced and says so if it fell back.
A transparent PNG converted to JPEG comes out flattened onto a white background, with the size change reported beside the preview.
Edge cases to know
- JPEG has no alpha channel — and because the canvas is painted white before encoding, transparency flattens to white in every target format, PNG and WebP included.
- If the browser cannot encode the chosen format, the fallback is detected and reported instead of silently renaming the file.
- Conversion is a fresh encode: no quality slider in this mode, and original metadata is not preserved.
- Images over 100 megapixels are refused — resize first, then convert.
Limits & compatibility
- JPEG does not support alpha — transparency is flattened to white by design.
- WebP support depends on the browser (universal in current versions).
- PNG→JPEG conversion is lossy; the original file is unchanged.
Privacy
Conversion happens on a canvas in your browser. The file is never uploaded or stored.
Guides that use Image Format Converter
Related tools
Questions about Image Format Converter
Which formats can it convert between?
PNG, JPEG and WebP, in any direction. Input is any image your browser can decode. Conversion happens on a canvas, so there is no upload step and the original file is never modified — the download is always a fresh copy in the format you picked.
What happens to transparency when converting to JPEG?
It is flattened to white, by design — the JPEG format has no alpha channel, so something must replace the transparent area. WebP keeps alpha intact and PNG keeps it losslessly. If you need to preserve transparency, choose either of those two instead of JPEG.
Is the conversion lossless?
It depends on the direction. Converting to PNG keeps every pixel identical; converting to JPEG is lossy, so some detail is traded for a smaller file. Either way the source file is untouched on your disk — only the downloaded copy carries the conversion.
Does WebP output work in every browser?
Encoding WebP depends on the browser engine, though it is universal in current versions of the major browsers. If a browser cannot encode WebP, the conversion fails with a clear message rather than producing a corrupt file. Decoding WebP — converting from it — works essentially everywhere.