Skip to content

Convert Image Format

Turn a JPG, PNG or WebP into another of those three formats in your browser, with the real output size reported after the encode.

1 · Choose an image

2 · Convert to

Destination format

Result

No file chosen yet.

The converted image appears here.

Conversion happens in this browser through a canvas. The file is not uploaded, stored or logged.

Your file is never sent to a server. It is read and processed by your own browser, and the results are not stored.

How to use it

  1. Choose an image. The format is read from the file’s bytes, so a PNG renamed .jpg is still reported as PNG.
  2. Pick the destination format: JPEG, PNG or WebP.
  3. Set quality if you chose JPEG or WebP, and a background colour if you chose JPEG and the image has transparency.
  4. Press Convert, compare the before and after, then download. The extension is written to match the actual bytes.

Limits worth knowing

  • Three formats in, three formats out — JPEG, PNG and WebP. HEIC, TIFF, BMP, GIF and SVG are refused rather than guessed at, because converting them needs a decoder this page does not load.
  • JPEG has no alpha channel. Converting a transparent PNG or WebP to JPEG flattens those areas onto the colour you choose, and the choice is not reversible afterwards.
  • Converting the other way does not create transparency. A JPEG has no alpha channel to recover, so a JPEG-turned-PNG is an opaque image in a PNG container.
  • Re-encoding discards embedded metadata — EXIF, camera model, GPS position, colour profile and orientation are not carried across. Treat the output as a new picture rather than the original with a different name.
  • PNG is lossless and has no quality setting, so its output size is whatever the image needs. A flat graphic converted from JPEG to PNG commonly grows.
  • Files above 25 MB are not opened, and images above 20 megapixels or 8,192 pixels on a side are refused before decoding, because that is where browser tabs fail.

Renaming a file is not converting it

Changing photo.png to photo.jpg leaves a PNG inside a .jpg name. Many upload forms reject it, and some accept it and then display it badly. This tool decodes the picture and writes it again as a different format, which is what a portal expecting JPEG actually needs.

The result is checked against its own bytes: the destination format, the file extension and the signature of the finished file are expected to agree, and the page says which format it produced rather than which one it intended to.

Which format to pick

JPEG is the safest destination when someone else’s form is the judge. It compresses photographs well, is accepted almost everywhere and is the only option that requires you to choose a background colour, because it cannot store transparency.

WebP normally produces a smaller file than JPEG at a comparable quality and does keep an alpha channel, but older upload systems still refuse it.

PNG is lossless and keeps transparency, which makes it right for screenshots, line art and logos. It has no quality control, so it cannot be steered to a file size — if the target is a number of kilobytes, use the compressor instead.

When the converted file is larger

Moving from a lossy format to a lossless one often increases the size, and moving from WebP to JPEG can too, because each encoder trades quality differently. The measured output is shown beside the original either way, so you can decide before downloading rather than discovering it afterwards.

If the file is already in the format you asked for and no quality change is requested, it is offered unchanged. Re-encoding it would lose detail and buy nothing.