If an editor or upload form needs a PNG, you can convert a transparent WebP on a Mac with the built-in sips command. Check the exported file for both its dimensions and its alpha channel, which controls transparency.
1. Start with a transparent WebP
Download the WebP from its asset page. For this test, we used the AI-generated avocado cutout from Stock Tour. The original is 1254 × 1254 pixels. If you need a different image to work with, browse the free food cutouts and choose one with a transparent background.
2. Export a PNG with the built-in command
Open Terminal. Replace the sample path with your source file, and choose a new output name. The example tells sips to write a PNG without resizing the source.
sips -s format png "$HOME/Downloads/avocado.webp" --out "$HOME/Downloads/avocado.png"
For a menu-based option, Apple documents File → Export → PNG in Preview. Use that route if Preview opens your source successfully, and check its export using the same steps below. The measurements in this article are from the Terminal workflow. Apple’s Preview export instructions.
3. Check the output size and transparency
sips -g format -g pixelWidth -g pixelHeight -g hasAlpha "$HOME/Downloads/avocado.png"
Look for png, the same width and height as the WebP, and hasAlpha: yes. An alpha channel can also contain fully opaque pixels, so put the result on a contrasting background and check that the area around the subject lets the background show through. Look closely at the edges where partial transparency is easiest to miss.

In our test, all alpha values matched the source pixel for pixel. The PNG kept the 1254 × 1254 dimensions and grew from 242,672 bytes to 1,524,256 bytes. Keep the WebP if your destination accepts it and file size matters. For other trade-offs, see how PNG, JPEG, and WebP differ.


