toolgarden.xyz
中文
WebPimage to WebPJPG to WebPPNG to WebP

How to Convert Images to WebP: Quality Settings and Pitfalls for JPG, PNG and GIF

Convert JPG, PNG, GIF and SVG to WebP locally in your browser: how to choose quality, what happens to transparency and animation, why files sometimes grow, and a safe fallback pattern for web pages.

ToolGarden tools prioritize browser-local processing, so files and text do not need to be uploaded to a server.

Published July 1, 2026Updated October 14, 20269 min readBy ToolGarden

A speed-test tool tells you to "serve images in next-gen formats" and suggests WebP. So you convert a few dozen JPGs and PNGs, and some come out less than half the size, some come out larger, one transparent logo has grey fringes, and an animation has turned into a still. WebP is not a magic "convert and it shrinks" switch. It has a sweet spot and a few traps you should know. This article covers them and gives a complete browser-local batch workflow.

What WebP is, and who it suits

WebP is an image format from Google that supports lossy compression, lossless compression, an alpha transparency channel and animation. The lossy mode builds on video coding technology and suits photographs; the lossless mode suits screenshots, line art and anything that must be pixel-exact. Compared with JPG, its key advantage is that lossy compression can carry transparency; compared with PNG, its lossless mode and its lossy-plus-alpha mode are more compact for many images. "More compact" depends on content and quality settings, and not every image shrinks. Today all major current browsers can display WebP; compatibility trouble comes mainly from old image software, some OS previews, email clients and some content management systems.

FormatCompressionTransparencyAnimationBest for
JPGLossyNoNoPhotos, best compatibility
PNGLosslessYesNo (APNG aside)Screenshots, icons, graphics that must be lossless
GIFLossless, 256 colours max1-bitYesSimple animations, usually large
WebPLossy or losslessYes, and with lossyYesGeneral-purpose web images
AVIFLossy or losslessYesYesOften higher compression, but slower to encode and less supported in old software

Converting locally with ToolGarden: the steps

  1. Open Image to WebP and drop images in or click to choose; several at once is fine. Inputs include JPG, PNG, GIF, BMP, SVG, AVIF and anything else your browser can decode.
  2. Look at the Output quality slider. It defaults to 90 percent. For photographs, start between 80 and 90; for screenshots and text-heavy images, go higher.
  3. Wait for each image to show as done; the page shows the output size and time for each. Open the preview to compare source and output.
  4. Inspect the details: banding in gradients, stray colour around text and edges, grey halos on transparent edges. If unhappy, raise the quality and convert again.
  5. Download one by one, or use the batch ZIP. The limit is 50 MB and about 40 million pixels per file; beyond that you will see a message.

Choosing a quality value

The quality slider controls how hard lossy compression works: higher keeps more detail and makes a bigger file; lower makes it smaller but introduces blur, banding and blockiness. No single best value suits every image because different content tolerates compression very differently. The table gives starting points based on experience; your own eyes make the final call.

Image typeStarting pointWhat to inspect
Landscape and portrait photos75 to 85 percentBanding in sky gradients, over-smoothed skin
Product and e-commerce hero images85 to 90 percentEdges, material texture and brand colour accuracy
Screenshots and text-heavy images90 percent and aboveColour noise around text, small text legibility
Icons and cut-outs with transparency85 to 95 percentGrey or ragged transparent edges
Blurry-background thumbnails60 to 75 percentUsually forgiving, so you can be more aggressive

A dependable routine: take three to five representative images (a complex photo, a screenshot with text, one with transparency), try 90, 80 and 70 on each, note the file sizes, compare at real display size, choose the lowest setting you accept, and use it for the batch. Do not zoom to 400 percent hunting for flaws; that is not what visitors see.

A worked example: slimming a blog page

Assume (numbers purely for illustrating the arithmetic) a page with 12 images, each an average 180 KB JPG, so about 2.1 MB of imagery in total. You want to convert them to WebP.

  1. Check the displayed size first. If the page container is 800 px but the source is 2400 px wide, use Image Resize to bring it to 1600 px (leaving room for high-density screens). This step often gains more than switching format.
  2. Then batch convert with Image to WebP at around 80 percent and download the ZIP.
  3. Compare each one: place the source and the WebP side by side in the same page. If the picture with a large blue-sky gradient shows banding, reconvert that one at 88.
  4. Use Image EXIF Viewer & Cleaner to confirm there is no location data. Output re-encoded through a canvas usually does not carry the original EXIF, but checking before publishing is the reliable route.
  5. Deploy it on the page with a fallback for older browsers, shown next.

The fallback pattern is below; the browser picks the first source it supports:

<picture>
  <source srcset="photo.webp" type="image/webp">
  <img src="photo.jpg" alt="Describe the image" width="1600" height="1200" loading="lazy">
</picture>

To be clear, nearly every visitor's browser today can show WebP, so this fallback mostly covers rare old devices. The real need for a fallback is usually not the browser but the case where an image gets downloaded and opened in old software, and there a JPG copy is the safer option. And if you use Next.js's image component, it already serves WebP and other formats depending on the browser, so you often do not need to convert each file by hand.

Transparency and animation

  • Transparency: WebP supports it, together with lossy compression, which is its main advantage over JPG. After conversion check the edges for grey fringing and raise quality if you see any.
  • Animated GIF: the current static converter does not keep the full frame sequence, so a GIF source gives a single still image. For animation, split it with GIF Split / Compose, or use a dedicated tool that writes animated WebP.
  • SVG: converting to WebP rasterises the vector into a fixed-size bitmap that no longer scales losslessly. If an icon or logo can be used as SVG directly, do not convert it.
  • AVIF source: it can be converted to WebP, but going from one lossy format to another adds loss again, so start from the highest-quality original available.

Why a file can grow after conversion

SymptomCauseFix
A tiny icon got largerAlready-small PNG or JPG where container overhead dominatesKeep the original format, or use SVG
A heavily compressed JPG barely changesLossy to lossy re-encoding gains little and stacks lossConvert from the original high-quality source where possible
Screenshot or flat-colour image larger at high qualityLossless or high-quality PNG is already efficient on large flat areasCompare the real sizes; keep PNG if WebP does not win
Quality set too highAbove 90 percent size grows fast for almost no visible gainDrop to the lowest setting that looks identical
Dimensions never reducedPixel count unchanged, so format gains are limitedUse Image Resize to the size really needed first

Other pitfalls

  • The browser cannot encode WebP: a few browsers cannot export a canvas as WebP. The page then says this browser cannot export the format; try a different browser.
  • Downstream systems refuse it: some content management systems, email clients and old office software do not recognise WebP. Test with one real upload or open.
  • OS previews do not show it: recent systems usually do, older ones need an extension, so keep a JPG copy.
  • Metadata is gone: output normally has no original EXIF (capture time, camera model, GPS). That helps privacy but means copyright fields need separate handling.
  • Server configuration: if you host the images yourself, make sure .webp is served as image/webp, otherwise some browsers may not display it.

Choosing a format for web pages

ScenarioRecommended formatReason
Photographic imagesWebP (AVIF where justified)Usually smaller than JPG at similar appearance
Graphics needing transparencyWebP or PNGWebP can be lossy with alpha; PNG has the best compatibility
Icons and logosSVGVector, scales to any size, small
Sent to third parties, printed or emailedJPG / PNGCompatibility first
Simple animationAnimated WebP or videoMuch smaller than GIF, but needs suitable tooling

When not to convert to WebP

  • The image is going to a print shop or a recipient with older software; they most likely accept only JPG, PNG or TIFF.
  • You need an archive that keeps EXIF, GPS or full colour profiles. Conversion drops them; store the original.
  • The source is already tiny or heavily compressed. The gain is small and you may lose quality a second time.
  • The target platform explicitly accepts only JPG or PNG. Compatibility beats size.
  • You need animation. The static converter does not preserve it; use a dedicated tool.

In short: photographs and large web images suit WebP, icons suit SVG, and compatibility-first situations keep JPG or PNG. Before any bulk run, validate your quality setting on a few representative images, then scale up.

Frequently asked questions

Q.Does converting to WebP upload my files?

Not in ToolGarden's Image to WebP. Conversion happens locally in your browser and data is cleared when you close the page. You can confirm it in the Network panel of your developer tools: no request carrying your image content should appear during conversion.

Q.What quality should I use?

There is no single answer. Try 80 to 90 percent for photographs and higher for screenshots and text-heavy images. Test a few representative images at several settings, compare at real display size, pick the lowest acceptable value, then run the batch.

Q.Why did my file get bigger after converting to WebP?

It is common with very small icons, already heavily compressed JPGs and flat-colour screenshots, where the gain is small to begin with, and an overly high quality value inflates size. Judge by the actual output size and keep the original format when WebP does not win.

Q.Will an animated GIF still animate as WebP?

The current static converter does not keep the full frame sequence, so a GIF yields one still image. For animation use a dedicated tool that writes animated WebP.

Q.Do I still need a JPG fallback for old browsers?

Every current major browser displays WebP, so on a web page you usually do not. Keep a JPG copy if a meaningful share of your visitors run very old systems, or if images get downloaded and opened in legacy software; a picture element can provide the fallback on the page.

Q.Transparent edges look grey after conversion. What now?

Raise the output quality and convert again; if it still bothers you, use a higher setting for that kind of image or keep PNG. Only converting to JPG fills transparency with white; WebP itself supports transparency.