Skip to content

Convert a folder of images to WebP on Windows, offline

Store note. ImageBatch Pro is available on this website and in our Telegram store: pay with PayPal, in US dollars, on its product page, or open it in the bot @Agitools_ai, pay in Telegram Stars, and the bot sends the ZIP to the same chat. Its prices are on its product page.

You can complete every command and Explorer step below without ImageBatch Pro.

Why WebP, and when it is not a win

WebP is a format browsers have supported for years. It can be lossy (a quality slider, like JPEG) or lossless (like a tighter PNG). Google's format overview is at developers.google.com/speed/webp. web.dev on image performance discusses when a modern format helps a page — in general, not as a test of any AGI TOOLS product.

It is not automatically smaller than the file you started with. In the illustrative test later in this guide, a small graphic PNG grew when encoded as lossy WebP and shrank only when encoded as lossless WebP. Photographs often shrink at a moderate quality, but that is a tendency, not a guarantee. Keep a JPEG or PNG fallback if you still have to support a client that cannot read WebP.

Transparency (an alpha channel) is something WebP can keep. JPEG cannot. If the source is a PNG logo with a transparent background, a JPEG export will invent a background colour.

Inputs and a Windows-safe output folder

A typical batch is a folder of JPEG and PNG files, written as .webp into a new folder. Leave the originals alone.

Google's official cwebp documents its inputs as PNG, JPEG, TIFF, WebP or raw Y'CbCr (cwebp documentation). In a test on the Linux test machine used for this guide, official cwebp 1.6.0 refused a .bmp (“Cannot read input picture file”). If your folder is BMP, you need another encoder, or a first step that writes PNG or JPEG.

ImageBatch Pro lists JPEG, PNG, WebP and BMP as inputs and WebP, JPEG or PNG as outputs. That is a documented difference versus stock cwebp, not a reason to invent further format support. The same product page says GIF, TIFF, HEIC and RAW input, animated images, watermarks and cropping are not in 1.0. Animated WebP is therefore out of scope here.

Method 1: cwebp on a folder (tested on a Linux test machine)

Official reference: cwebp documentation. The binary used here is official libwebp 1.6.0. cwebp -longhelp on that binary reports a default quality (-q) of 75, and -metadata default none.

One file, quality 80:

cwebp -q 80 input.jpg -o output.webp

Optionally cap width and keep the aspect ratio, without enlarging (height 0 means “compute from width”; -resize_mode down_only is from that same help text):

cwebp -q 80 -resize 1600 0 -resize_mode down_only input.jpg -o output-1600.webp

Lossless, typically more useful for graphics than for photographs:

cwebp -lossless input.png -o output.webp

cwebp converts one file at a time. On Windows you can loop a folder in PowerShell, always writing into a separate output directory. This guide did not run a Windows loop (the test machine is Linux). Inspect a few results before you trust the quality setting.

Illustrative test (not an ImageBatch Pro result)

Prepared on 16 November 2026 on a Linux test machine, official cwebp 1.6.0, Python Pillow 13.0.0, seed 20261116. Sources are synthetic test images with no camera EXIF — not real photographs.

Source Command Result
JPEG 2,400 × 1,600, 1,965,777 bytes cwebp -q 80 2,400 × 1,600, 550,236 bytes (28.0 % of the JPEG in this test)
Same JPEG cwebp -q 80 -resize 1600 0 -resize_mode down_only 1,600 × 1,067, 212,602 bytes
PNG graphic 1,200 × 800 with alpha, 7,208 bytes cwebp -q 80 8,428 bytes, still with alpha — larger than the PNG
Same PNG cwebp -lossless 1,182 bytes

Your own photos will produce different sizes. The ImageBatch Pro page already says, of its own screenshots, that the sample run used synthetic test images and that “your savings depend on your photos.”

Method 2: ImageMagick (cited, not run)

ImageMagick's magick mogrify documentation states that mogrify overwrites the original unless you change the suffix with -format, and that -path writes images to another directory. ImageMagick was not installed on the test machine. No command was executed; no sizes are shown.

Pattern from those docs, for illustration only — try it on a copy first:

magick mogrify -path output-folder -format webp -quality 80 *.jpg

Confirm flags against the current docs before you rely on them.

Method 3: PowerToys Image Resizer (cited, not a WebP converter)

PowerToys is “a set of free, open-source utilities.” Image Resizer resizes selected images from File Explorer (Fit / Fill / Stretch). Fill “Crops the image as needed.” Microsoft's page says the fallback encoding “isn't a file type conversion tool.” Use it if you need to cap dimensions locally; do not expect it to be your WebP encoder.

A Windows app that can write a folder to WebP

ImageBatch Pro can output WebP from a folder of JPEG, PNG, WebP or BMP, on your PC, with optional maximum width and height (aspect ratio kept, never enlarged). Presets listed on the page: Fast, Balanced (recommended) or Maximum compression, with a quality you can still adjust. Originals stay untouched; results go to their own folder, with a CSV report of every file. It works fully offline: no upload, no account, no ads, no telemetry.

Status, as written on that page: Available. It is sold on this website and in our Telegram store. Price and how to buy.

For converting and shrinking a whole folder, with an optional maximum size and no cropping: ImageBatch Pro: batch convert and shrink folders on Windows (available on this website and in our Telegram store).

Buy ImageBatch Pro in the Telegram store (@Agitools_ai). About an order, send /paysupport in the bot.

How to Compress and Resize Many Images at Once on Windows0:58Watch on YouTubeNothing loads from YouTube until you press play. The player then loads from youtube-nocookie.com, YouTube's privacy-enhanced mode, and connects to Google's servers. Privacy