Image Converter
Convert between JPEG, PNG, WebP, and AVIF instantly, entirely in your browser.
Private & Secure
How it works
- 1
Your file is decoded into an ImageBitmap via createImageBitmap(), which handles any format the browser natively supports.
- 2
The bitmap is drawn onto an OffscreenCanvas sized exactly to the original dimensions using drawImage().
- 3
OffscreenCanvas.convertToBlob() re-encodes the pixel data in the target format using the browser engine's built-in codec.
- 4
AVIF and WebP use codecs native to the browser. No third-party library or server-side processing is involved.
- 5
The output blob is transferred to the main thread and rendered into the preview via a temporary object URL.
AVIF achieves the highest compression ratios because its codec was designed specifically to outperform both JPEG and WebP.