Skip to content

Image Converter: JPG, PNG, WebP and HEIC Guide (2027)

Convert images between JPG, PNG and WebP, from HEIC, SVG, AVIF, GIF and more. Many at once, downloaded one by one or as a ZIP.

Convert to

By · Updated

How do you use the image converter?

Flow chart of the five steps: add images by dragging, browsing or pasting; choose JPG, PNG or WebP; set the quality (starts at 90%) and the JPG background color; read each result's new size; download each image or all of them in one ZIP file.
Using the image converter, step by step

Drop, browse or paste one or many images into this tool, then follow these steps:

  1. Add your images by dragging them in, browsing for files or pasting them.
  2. Choose the output format: JPG, PNG or WebP.
  3. Set the quality for JPG and WebP, which starts at 90%. For JPG, choose the background color that fills transparent areas. For SVG files, set the size.
  4. Read the result for each image. It shows the new size and the change in file size.
  5. Download each image with its own download button, or download all converted images in one ZIP file.

This is also a bulk image converter. Every image in the batch is converted one at a time on your device, and each one gets its own result, so you can check it before you download it.

How does the image converter work?

Flow chart: HEIC files are first decoded with heic2any; the browser opens the image with createImageBitmap, or an img element for SVG; it is drawn onto a canvas at full size, at most 16,384 px on the long side; the canvas is saved with toBlob in the chosen format, falling back to PNG if unsupported.
How each image is converted in your browser

This tool lets your browser do the conversion. The browser opens each image with createImageBitmap, or with an img element for SVG, and draws it onto a canvas at full size. The canvas is then saved with toBlob in the format you chose. The MDN guide to createImageBitmap and the MDN reference for canvas toBlob describe these steps.

Because each image is drawn again from its pixels, the new file is built fresh. That is why metadata is not carried over, a point covered later in this guide.

The quality setting follows the canvas API, where quality is a number between 0 and 1. This tool shows it as a percentage, with a default of 90%. The setting applies only to lossy formats such as JPG and WebP.

HEIC files take one extra step. They are first decoded with heic2any, which runs libheif in the browser.

Two limits are worth knowing. Very large images are scaled to at most 16,384 px on the long side, the canvas limit in most browsers, so a very large photo comes out smaller in pixels than the original. The canvas also falls back to PNG when a browser cannot save the format you pick, so check the file type of each download. The MDN canvas toBlob reference explains this fallback.

How do JPG, PNG, WebP, AVIF, HEIC, GIF and SVG compare?

Grid comparing four formats. Lossless compression: JPG no, PNG yes, WebP yes, AVIF yes. Transparency: JPG no, PNG yes, WebP yes, AVIF yes. Output from this tool: JPG yes, PNG yes, WebP yes, AVIF no.
JPG, PNG, WebP and AVIF compared

The table compares the common formats on the points that matter most when you choose one.

FormatCompressionTransparencyAnimationBrowser and app support
JPGLossyNo, it has no alpha channel——
PNGLosslessYes, full alpha transparencyYes, the PNG standard covers animated imagesEvery browser must support PNG output from a canvas
WebPLossy or losslessYes, lossy WebP tooYes, with loopingLatest major browsers; Safari 14 and macOS Big Sur (11) or newer
AVIFLossy or losslessYesYesChrome 85, Edge 121, Opera 71, Firefox 93, Safari 16.1
HEICApple says it compresses better than JPEG——iPhone camera format (High Efficiency setting)
GIFLossless for 8-bit colorsOne color can be transparentSimple animation—
SVGVector, drawn at any size———

A dash means the sources used for this guide do not cover that point, so check the format's own documentation before you rely on it.

JPG is lossy and cannot hold transparency. PNG is lossless and supports full transparency. WebP and AVIF do both, and both can animate. GIF is lossless for 8-bit colors, and only one color can be transparent. SVG suits diagrams and icons rather than photographs. HEIC is the format Apple's iPhone cameras use, and Apple says HEIF offers better compression than JPEG, so it uses less storage. The Apple support page on HEIF and JPEG gives that statement.

WebP has broad support in the latest versions of major browsers. On a Mac, it needs Safari 14 or later and macOS Big Sur (11) or newer. AVIF is supported from Chrome 85, Edge 121, Opera 71, Firefox 93 and Safari 16.1. AVIF does not support progressive rendering, so a file must be fully downloaded before it can be displayed. Source for these browser versions: the MDN image types guide.

This tool writes JPG, PNG and WebP, so it cannot produce AVIF or GIF output.

Which format should you use for photos, screenshots, logos and the web?

For photos, use JPG. The MDN image types guide says JPEG is particularly useful for photographs.

For screenshots, diagrams, logos and line art, use PNG. MDN recommends lossless encoding for these, and PNG uses lossless compression. Lossy compression applied to sharp content like diagrams or charts can give unsatisfactory results, so avoid JPG for them.

If your logo also exists as a vector file, keep the SVG. SVG is ideal for diagrams, icons and images that can be drawn at any size, but it is not generally useful for photographs. This tool can turn an SVG into JPG, PNG or WebP at the size you set.

For the web, MDN recommends WebP or AVIF for raster images, because they generally compress better than PNG, JPEG and GIF. PNG is still preferred over JPEG when you need precise reproduction of an image or transparency. Both points come from the MDN image types guide.

For example, to put a photo on a web page, convert it to WebP with this tool. To support browsers that lack WebP, MDN suggests the picture element with a PNG or JPEG fallback, so keep a JPG copy for that purpose. AVIF is also a modern option, but this tool does not write it.

Lossy or lossless: what does the quality setting mean?

Lossless formats keep every pixel exactly as it was stored, as PNG does. Lossy formats, such as JPG, trade some detail for a smaller file. JPEG uses lossy compression based on the discrete cosine transform, as the MDN image types guide explains. WebP and AVIF can use either mode, which you choose as a setting when encoding.

The quality setting applies only to lossy formats. In this tool, that means JPG and WebP. PNG has no quality value to set, because converting to PNG is lossless.

The tool starts at 90%. Our sources do not say which value looks best for your photos. Convert one image at a few settings, then compare the results and the change in file size each time.

Converting a JPG to PNG keeps the pixels you already have. It cannot bring back detail that the JPG already lost.

Lossy compression can give unsatisfactory results on sharp content, as the MDN image types guide notes. A screenshot of text is sharp content, so keep it as PNG rather than trying a lower JPG setting.

Why does a transparent image get a background when you convert it to JPG?

JPEG does not support an alpha channel, so it cannot store transparency. In PNG, the alpha sample sets each pixel's opacity, and zero means fully transparent. The W3C PNG specification defines this.

When you convert a transparent PNG to JPG, the transparent areas have nowhere to go. This tool fills them with the background color you choose for JPG. For example, a logo with a transparent background, converted to JPG with white selected, appears on a white block. If the logo will sit on a dark page, choose a dark color, or keep the file as PNG.

Lossy WebP also supports transparency, so WebP is another choice when you need see-through areas in a smaller file. Google reports that lossy WebP is typically three times smaller than PNG when transparency is needed, according to its WebP documentation.

How do you convert many images at once?

Drop or browse for several images at once, or paste them, and then choose the output format. Each image is converted one at a time on your device and never uploaded. Because the work runs on your device, a large batch uses your device's processing power while it runs.

When the batch is ready, download each file with its own button, or download all converted images in one ZIP file. The ZIP keeps a batch together in one download, which is easier to move to another device.

Check each result before you use it. The tool shows the new size and the change in file size for every image, so you can spot a file that grew after conversion. If a file grew, you may prefer to keep its original format.

For a set of photos for one web page, convert them in one batch, check the size change on each, and keep the converted files that get smaller. Keep the originals for any file that grows.

What happens to metadata and location when you convert?

This tool does not copy metadata, such as EXIF data or location, into the new file. The converted image carries no camera details and no location. This matters when you convert phone photos before you post them online.

Location is worth checking before you share photos. On iPhone, Location Services lets apps including Camera use your location, and you can change this in Settings > Privacy & Security > Location Services. The Apple support page on Location Services explains this. Google Photos keeps locations private by default, and apart from partner sharing, items you share do not include location details by default, according to its Google Photos help page.

How do you convert images on macOS, iPhone, Windows and Android without a tool?

Your device may already convert images. Here is what our sources show:

  • macOS, Preview: Choose File > Export, then pick a format from the Format menu: HEIC, JPEG, JPEG-2000, OpenEXR, PDF, PNG or TIFF. Hold the Option key while you click the Format menu to see more formats. The Apple Preview guide covers the steps.

  • macOS, Photos: When you export, choose JPEG, TIFF or PNG from the Photo Kind menu. JPEG has a JPEG Quality menu. The Apple Photos guide covers the steps.

  • iPhone: Settings > Camera > Formats > Most Compatible makes new photos use JPEG, and High Efficiency returns to HEIF. When HEIF photos are imported into Photos, Image Capture or a PC over USB, they might be converted to JPEG. Settings > Apps > Photos > Keep Originals stops this. The Apple support page on HEIF and JPEG gives these settings.

  • Windows and Android: We did not find official built-in conversion steps for these systems to cite, so we do not describe them. GIMP can export an image to another format with File > Export As. Its Save command writes only GIMP's own XCF format, as the GIMP export documentation explains.

What are the best file size tips?

Start with the format, then check the result.

  1. For photos on the web, try WebP. Google reports that lossy WebP files are 25 to 34% smaller than comparable JPEG files at equivalent SSIM quality, according to its WebP documentation.
  2. For screenshots and logos, keep PNG, since lossy compression can give unsatisfactory results on sharp content.
  3. When you need transparency and a smaller file, lossy WebP is typically three times smaller than PNG, according to Google.
  4. Compare the change in file size for each image, and keep the version that is smaller and still looks right.
  5. If you do not need full size, resize very large images in an image editor before you convert them.

These are Google's figures, not measurements from this tool, so check the results on your own images.

More guides in Image Tools.

Frequently asked questions

What is the best image format for websites?
MDN recommends WebP or AVIF for photos and other raster images on the web, because they generally compress better than PNG, JPEG and GIF. Use SVG for icons and diagrams, and keep a PNG or JPEG fallback with the picture element for browsers that lack WebP or AVIF.
Does converting an image reduce its quality?
Converting to PNG is lossless. Converting to JPG or WebP is lossy and uses the quality setting, which starts at 90% in this tool. JPG also drops transparency, so transparent areas get the background color you choose.
Can I convert images to PDF?
No. This tool outputs only JPG, PNG or WebP. macOS Preview can export a PDF from its Format menu.
Is it safe to convert images online?
This tool converts each image on your device and never uploads it, so private photos stay in your browser. Some online converters upload files to a server, so check where a converter sends your files before you use it.

Sources

  1. createImageBitmap() creates a bitmap from a given image source. (developer.mozilla.org)
  2. In the browser canvas API, the quality setting is a number between 0 and 1 and applies onl (developer.mozilla.org)
  3. Apple says HEIF offers better compression than JPEG, using less storage while preserving t (support.apple.com)
  4. JPEG uses lossy compression based on the discrete cosine transform. (developer.mozilla.org)
  5. PNG is a file format for lossless, portable, well-compressed storage of static and animate (www.w3.org)
  6. WebP lossless images are 26% smaller than PNGs, according to Google. (developers.google.com)
  7. On iPhone, Location Services lets apps including Camera use your location, and you can cha (support.apple.com)
  8. Google Photos keeps locations private by default, and items you share do not include locat (support.google.com)
  9. In macOS Preview, you convert an image with File > Export and choose HEIC, JPEG, JPEG-2000 (support.apple.com)
  10. In Photos for Mac, you export photos as JPEG, TIFF or PNG from the Photo Kind menu; JPEG h (support.apple.com)
  11. In GIMP, you export an image to another format with File > Export As; Save is only for GIM (docs.gimp.org)

All free tools