Skip to content

Image Converter

Convert between JPEG, PNG, WebP and AVIF in your browser.

Runs entirely in your browser

The image is decoded and re-encoded in your browser. It is never uploaded, and neither is its metadata.

Format conversion is usually somebody else's requirement rather than your own: a form that accepts JPEG and nothing else, a CMS that rejects WebP, a design tool that hands you a PNG when what the page needs is something a tenth of the size.

More about Image Converter

This converter goes between JPEG, PNG, WebP and AVIF, and shows you the before and after side by side with both file sizes, because the size is usually the reason for converting in the first place. WebP is typically a quarter to a third smaller than a JPEG at the same visual quality, and AVIF smaller again — often half the size of the JPEG.

AVIF appears in the list only when your browser can genuinely encode it. That sounds obvious and is not: canvas does not report an unsupported format, it silently produces a PNG instead, so a converter that trusts the request hands you a file with the wrong extension and the wrong size. This one asks the browser to encode two pixels and checks what comes back before offering the option.

The case worth being careful about is transparency. JPEG has no alpha channel, so a transparent PNG converted to JPEG has to be composited onto something. Most tools quietly use black, which is why a logo converted for a form arrives with a black rectangle behind it. Here the colour is asked for before the conversion runs.

The image is decoded and re-encoded in this page. Nothing is uploaded, which also means the size limit is your device's memory rather than an upload allowance, and that a photograph with location data in it does not leave your machine to be stripped of it.

  • Between JPEG, PNG, WebP and AVIF, in any direction
  • AVIF offered only where the browser can really encode it, never assumed
  • Before and after side by side, with both file sizes and the saving
  • Quality slider for the lossy formats, hidden for PNG where it means nothing
  • Asks for a background colour before flattening transparency to JPEG
  • Large images bounded before decoding, so a huge file cannot take the tab down
  • Runs in your browser: nothing is uploaded, including the metadata

How to use it

  1. 1Drop in an image, or choose one from your device.
  2. 2Pick the format you need.
  3. 3Adjust quality if you are converting to a lossy format.
  4. 4If you are converting transparency to JPEG, choose the background colour.
  5. 5Check the before and after, then download.

Questions

Which format should I use for a photograph on a web page?

WebP, or AVIF if you can serve a fallback. Both are substantially smaller than JPEG at the same visual quality, and every current browser displays them.

Why did my PNG get larger when I converted it to JPEG?

JPEG is poor at flat colour and sharp edges — logos, screenshots, diagrams — where PNG is efficient. Convert those to WebP instead, which handles both kinds of image well.

Why is AVIF sometimes missing from the list?

Because this browser cannot encode it, which is checked rather than assumed. Chrome and recent Safari can; some older browsers and some Linux builds cannot.

Will converting to PNG restore quality lost by a JPEG?

No: the detail JPEG discarded is gone, and PNG will faithfully preserve the artefacts. Converting to PNG usually just produces a much larger file of the same picture.

Does converting remove the photo's location data?

Yes, as a side effect: the image is redrawn from its pixels, so EXIF metadata including GPS coordinates is not carried into the output. The orientation is applied before that happens, so the picture stays the right way up.

More Image Tools
Esc

16 results