Forum Discussion
Best way to bulk convert JPG to WebP on Windows 11 for a website?
You can use the Official Google cwe bp Tool to convert JPG to WebP, this is the most direct, official command-line tool from Google for creating WebP images. It's free, open-source, and gives you complete control over the compression quality.
1. Download: Get the "WebP Codec" ZIP file for Windows from Google's official website .
2. Extract: Unzip the file to a folder, for example, C:\webp. Inside, you'll find the executable file cwe bp.exe .
3. Open Command Prompt: Press Win + R, type cmd, and hit Enter .
Navigate: You can either navigate to the folder containing cwe bp.exe using the cd command, or add the folder to your system's PATH variable for easier access from any location .
Run Conversion: Use the following command to convert JPG to WebP:
text
cwe bp -q 80 input.jpg -o output.webp
-q 80: Sets the quality (0-100, with 75-85 being a good balance) .
-o output.webp: Specifies the name of the output file.
For Batch Conversion, you can use a simple for loop in the Command Prompt. For example, to convert all .jpg files in the current folder:
cmd
for %i in (*.jpg) do cwe bp -q 80 "%i" -o "%~ni.webp"