Category: Image tools
Image Converter
Convert one image between PNG, JPG, WebP and AVIF in the browser
Pick one image, choose PNG, JPG, WebP or AVIF, and set the quality for lossy targets. Pixel dimensions are kept and the conversion runs in your browser.
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
This image converter handles one picture at a time: choose the file, choose the target format, take the result. Four targets are available — PNG, JPG, WebP and AVIF — and this route opens with WebP preselected, with the other three a click away. The source is decoded with createImageBitmap, so any format the browser can already read is accepted as an input; the image is then redrawn at its natural pixel dimensions onto a canvas and encoded with canvas.toBlob. The quality slider runs from 30% to 95% in five-point steps and appears only for the lossy targets, JPEG, WebP and AVIF; PNG is lossless and ignores it, so for PNG the slider is hidden. When the target is JPEG the canvas is painted white before the image is drawn, because JPEG has no alpha channel and a transparent source would otherwise come out black. After encoding, the blob is checked to make sure it really carries the MIME type you asked for: if the browser cannot write that format, you get an unsupported-format error rather than a PNG silently substituted for it. Conversion starts as soon as a file is chosen, runs again immediately when you change the target, and can be re-run from a button. You get a downloadable image named after the source file with the new extension, the original and converted byte sizes side by side, the format the result was actually written in, and a preview. The previous object URL is released each time a new result is produced and again when you leave the page. The limits matter as much as the features. It is one image at a time: no batch conversion, no multi-file selection, no folder input and no ZIP. There is no resizing, cropping or rotation — the result always keeps the source's pixel dimensions. No metadata survives: the canvas re-encode drops Exif, XMP, IPTC and the ICC colour profile, so camera fields, GPS coordinates and colour management are lost. Animation is not preserved either; an animated GIF or WebP produces a single still frame. There is no target file-size field and no automatic search for the quality that lands under a chosen size, no PNG bit-depth, palette or interlacing control and no lossless WebP mode, and no SVG, PDF, ICO, BMP, TIFF, HEIC or RAW output. Whether an exotic source such as HEIC, AVIF or a camera RAW file can be read at all is decided by the browser's own decoder, not by this tool, and WebP and AVIF encoding depend on the browser in the same way. There is no side-by-side comparison beyond the single preview, no background removal, no custom fill colour, and no upload, cloud storage, share link or history. Nothing is uploaded and no asset is fetched at run time.
How to use it
- Select an image the browser can decode; this route starts with WebP as the target format.
- Switch the target to PNG, JPG or AVIF, and set the 30-95% quality slider for the lossy ones.
- Compare the original and converted sizes, check the format actually written, and download the result.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- How do I convert an image to another format?
- Choose the file, then choose the target format. Conversion runs immediately, and changing the target converts again, so you can compare the resulting sizes before downloading.
- Does converting to WebP lose quality?
- WebP, JPEG and AVIF are lossy here, so some detail is traded for size; the quality slider runs from 30% to 95% in five-point steps. PNG is lossless and hides the slider. Pixel dimensions never change.
- What happens to transparency when I convert to JPG?
- JPEG has no alpha channel, so the canvas is painted white before the image is drawn and transparent areas become white rather than black. The fill colour is fixed and cannot be chosen. WebP, PNG and AVIF keep transparency.
- Is my image uploaded when I convert it?
- No. Decoding and encoding use the browser's own createImageBitmap and canvas APIs, and the download comes from an in-page blob object URL. The file and the result stay on your device.
- Why does AVIF sometimes fail to convert?
- Writing AVIF or WebP depends on the browser's encoder. The result is checked against the MIME type you asked for, so when the browser cannot write the format you get an unsupported-format error instead of a mislabelled PNG.