How to batch convert webp to jpg on Mac?

I am having problems with the below answer to a previously asked question,

after following the instructions

(Click "Add..." and select the WEBP files)

there is no add button anywhere?

I only have results or options buttons,


Search for Automator in Spotlight and open it. Choose "Workflow" as the type of document.

In the left pane, search for "Get Specified Finder Items" and drag it to the workflow area. Click "Add..." and select the WEBP files.

Search for "Change Type of Images" and drag it below the previous action. Choose "JPEG" from the dropdown menu.

Click the "Run" button at the top right to batch convert webp to jpg on Mac.



Posted on Nov 24, 2025 8:24 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 25, 2025 5:36 AM

Here is an AppleScript that will prompt you for the source folder containing the .webp images and for a destination folder where the converted jpg images are written. It then loops through all discovered .webp images and performs the conversion at 100% JPG quality.


Tested: macOS Tahoe 26.1.


Click on the Desktop and enter shift+cmd+U to open the Utilities folder. Double-click Script Editor to launch it, and choose New document on your Desktop. Now, copy/paste the following code into the Script Editor:

use scripting additions

-- select folder containing webp images first, then destination folder
-- for the converted jpg images
set afolder to (choose folder with multiple selections allowed)
set srcFolder to POSIX path of (first item of afolder) as text
set dstFolder to POSIX path of (last item of afolder) as text
set args to quoted form of srcFolder & space & quoted form of dstFolder
my webp2jpg(args)
display dialog "Script done. Check your destination JPG folder."
return

on webp2jpg(args)
	return (do shell script "zsh -s <<'EOF' - " & args & " >&  /dev/null" & "
#!/bin/zsh
SRCFOLDER=${1}
DSTFOLDER=${2}
setopt nocaseglob

for f in ${SRCFOLDER}/*.(webp)(.N);
do
   /usr/bin/sips -s format jpeg -s formatOptions 100 -o ${DSTFOLDER}/${f:r:t}.jpg \"${f}\"
done
")
end webp2jpg


Click the hammer icon on the Script Editor toolbar to compile the just pasted code, and then click Run. Ideally, your source and destination folders should be in the same location, so you can click one, press and hold the command key, and select the destination folder. The script will run quickly and inform you when it is done.

15 replies
Question marked as Top-ranking reply

Nov 25, 2025 5:36 AM in response to leetut

Here is an AppleScript that will prompt you for the source folder containing the .webp images and for a destination folder where the converted jpg images are written. It then loops through all discovered .webp images and performs the conversion at 100% JPG quality.


Tested: macOS Tahoe 26.1.


Click on the Desktop and enter shift+cmd+U to open the Utilities folder. Double-click Script Editor to launch it, and choose New document on your Desktop. Now, copy/paste the following code into the Script Editor:

use scripting additions

-- select folder containing webp images first, then destination folder
-- for the converted jpg images
set afolder to (choose folder with multiple selections allowed)
set srcFolder to POSIX path of (first item of afolder) as text
set dstFolder to POSIX path of (last item of afolder) as text
set args to quoted form of srcFolder & space & quoted form of dstFolder
my webp2jpg(args)
display dialog "Script done. Check your destination JPG folder."
return

on webp2jpg(args)
	return (do shell script "zsh -s <<'EOF' - " & args & " >&  /dev/null" & "
#!/bin/zsh
SRCFOLDER=${1}
DSTFOLDER=${2}
setopt nocaseglob

for f in ${SRCFOLDER}/*.(webp)(.N);
do
   /usr/bin/sips -s format jpeg -s formatOptions 100 -o ${DSTFOLDER}/${f:r:t}.jpg \"${f}\"
done
")
end webp2jpg


Click the hammer icon on the Script Editor toolbar to compile the just pasted code, and then click Run. Ideally, your source and destination folders should be in the same location, so you can click one, press and hold the command key, and select the destination folder. The script will run quickly and inform you when it is done.

How to batch convert webp to jpg on Mac?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.