Image converter

Change pictures between JPG, PNG, WebP and AVIF, with GIF and BMP accepted as input. Pick the quality and the background colour. Your pictures stay in your browser.

Image converter

How to change an image format

  1. Add your pictures: drag them onto the box above or click to browse. Up to 50 at a time.
  2. Choose Convert to: JPG, PNG, WebP or AVIF.
  3. Set Quality, tick Lossless WebP, or change the background colour if you need to.
  4. Click Convert images and read the note under each result.
  5. Download each file, or Download all as ZIP.

What this image converter does

Add pictures, choose a format, and get a converted copy of each. JPG, PNG, WebP, AVIF, GIF and BMP go in. JPG, PNG, WebP and AVIF come out. Convert to starts on WebP, Quality on 85, Lossless WebP is off, and the background colour for transparent areas starts at #ffffff and matters only for JPG.

Use this page for what the single-purpose pages do not cover: GIF or BMP in, AVIF out, or mixed formats in one batch. For the common pairs, those pages have the options preset: PNG to JPG, JPG to PNG, JPG to WebP, WebP to JPG, AVIF to JPG and, for iPhone photos, HEIC to JPG. HEIC and SVG files are refused here.

Nothing leaves your browser. In a test browser with a photo added we recorded 18 requests, none carrying data, and the outside hosts were Google's ad and analytics services and jsDelivr (the codecs). The codecs now come from jsDelivr, with no hash check. Only Chromium was tested. Results keep the original name with the new extension, plus "-converted" if the format is unchanged, and "(2)" if two files would share a name.

What each format costs in bytes

Our test photo is a 1280 by 960 JPG of 247,358 bytes. At quality 85 it became 42,846 bytes as WebP, 71,879 as JPG and 78,508 as AVIF. As PNG it was 1,442,513. No format wins everywhere: at quality 50 AVIF gave 5,700 bytes, WebP 11,138 and JPG 15,091, all with an average pixel change of about 2 out of 255. The table has the runs. The samples are synthetic, so your photos will differ.

Lossless output and what it cannot undo

PNG and Lossless WebP keep every pixel. Our PNG photo, 620,844 bytes, became 8,248 as WebP at quality 75, 574,862 as lossless WebP and 599,378 as PNG, with identical pixels in both lossless files. Lossless cannot repair a lossy file: our JPG photo became 1,219,696 bytes as lossless WebP, five times the JPG, with the same pixels as before. Converting a lossy file into another lossy format adds loss, as JPG to JPG at 85 did.

Transparency and the JPG background

PNG, WebP and AVIF kept our logo's transparent corner. JPG cannot, so it fills those areas with the background colour. With #ff0000 the corner came out red, and a short code like f00 worked. The note under each JPG result names the colour used.

Bytes can surprise you. Our 21,105 byte logo became 22,624 bytes as lossy WebP, 12,628 as lossless WebP, 9,237 as AVIF and 23,861 as red-background JPG. One quirk: an invalid colour code such as #xyz stops the conversion even for WebP, which does not use it.

Rotation, metadata, GIF and BMP

Camera details, location and colour profile are not copied. We read back JPG, PNG, WebP and AVIF outputs of a photo with EXIF data and found no EXIF tags or profile in any. Our photo was stored sideways and came out upright in all four. We did not test a Display P3 photo.

GIF and BMP are input only. A 24-bit BMP of our photo came out at 12,766 bytes as WebP. An animated GIF or WebP keeps its first frame, and the page says so: our 3-frame GIF came out as one frame. The note also appears for a still GIF. The compressor and resizer pages give no such warning.

Limits and what we did not test

You can add 50 files, each up to 100 MB, and a 51st is refused. Fifty photos to WebP took about 11 seconds, on our test machine. One setting applies to every file, and six files in five formats made six PNGs in one run. A fake .png fails with "this is not an image this tool can read." We did not test files near 100 MB, CMYK, 16-bit, real camera photos, other browsers, or a GIF from a real animation tool.

Which format for which job

A website: WebP or AVIF, which were smaller at low quality in our runs, though older programs may not open them. A form that asks for JPG: JPG. Transparency: PNG or WebP. A copy to edit again: PNG. To shrink without changing format, use the image compressor. To change pixel size, use the image resizer. All the image tools are listed together.

Measured results

Test pictures converted in a Chromium test browser. The last column is the mean pixel change from the source, out of 255.
SourceOutputSettingResult bytesPixel difference
JPG photo, 247,358 bytesJPGQuality 8571,8791.69
JPG photoWebPQuality 8542,8461.86
JPG photoAVIFQuality 8578,5081.6
JPG photoPNGLossless1,442,5130
JPG photoWebPQuality 5011,1382.07
JPG photoAVIFQuality 505,7002.05
JPG photoJPGQuality 5015,0912.1
JPG photoWebPLossless1,219,6960
PNG photo, 620,844 bytesWebPQuality 758,2481.87
PNG photoWebPLossless574,8620
PNG photoPNGLossless599,3780

Prefer desktop software?

Use a desktop image program when you need to keep camera and colour-profile data, convert HEIC or SVG, or make animated files. This page drops metadata and applies one setting to every file.

GramFile has download pages for IrfanView and XnView MP.

Frequently asked questions

Are my pictures uploaded?

No. A request log of our test showed 18 requests, none with data in it, and outside GramFile only Google's ad and analytics services and jsDelivr (the codecs). Codecs now load from jsDelivr.

Does converting reduce quality?

Into a lossy format, a little: our photo as WebP at 85 changed by 1.9 out of 255 on average. Into PNG or lossless WebP, pixels stay exactly the same.

Is transparency kept?

In PNG, WebP and AVIF, yes. JPG fills transparent areas with the background colour, white by default.

Does it keep EXIF and location data?

No. Camera details, location and colour profile are dropped, and rotation is applied.

Which format is best for a website?

WebP or AVIF for photos. At quality 50 our photo was 5,700 bytes as AVIF, 11,138 as WebP and 15,091 as JPG.

What happens to an animated GIF?

Only the first frame is kept, and the page tells you.

How many pictures at once?

Up to 50, each up to 100 MB, with one setting for all.