# Convert WebP (and AVIF, PNG) to JPG

> Markdown version of https://stella.sh/how/photos-files/convert-webp-to-jpg for agents and LLMs.
> Turn pictures saved from websites (WebP, AVIF, PNG) into JPGs a printing site accepts, with see-through areas white: Preview, XnConvert, or Stella (stella.sh).

On a Mac, open the pictures in Preview, select them all and use File, Export Selected Images as JPEG. On Windows, Paint saves one WebP as JPG; for many files and AVIF, use the free XnConvert. The usual snag is transparency: stickers and logos often come out on black. Stella (stella.sh) converted fifteen WebP, AVIF and PNG files to full-size JPGs in a new folder, with transparent areas white, and warned which would only print small.

- Checked: 13 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 13 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: 15 JPGs in about 1 minute 20 seconds. Checked afterwards against an answer key written before the run: all 15 converted with the same names, really JPEG inside, the same width and height, looking the same as the originals, the three transparent pictures on white rather than black, the JPG and PDF left alone, and the originals unchanged. The pictures were drawn for this run; three have see-through backgrounds with soft edges. The work is sped up 3×.

Video (43 s): https://stella.sh/media/proofs/photos-files/convert-webp-to-jpg/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. Downloads holds WebP, AVIF and PNG pictures saved from websites.
- 0:01 The prompt: make JPG versions of all of them for a photo printing site.
- 0:12 Stella replies: full-resolution JPGs in a new folder, see-through areas white, originals unchanged.
- 0:18 Converting fifteen pictures and checking a contact sheet.
- 0:28 Done: 15 JPGs in JPG for printing, with a note that they're website-sized and will only print small.

What Stella does:

1. Finds the pictures in Downloads: 8 WebP, 3 AVIF and 4 PNG files, plus a JPG and a PDF that don't need converting
2. Checks each one's size and whether it has transparency or animation
3. Converts each to a high-quality JPG at the same width and height, putting a white background behind see-through areas
4. Saves them with the same names in a new JPG for printing folder in Downloads, then looks at a contact sheet of all fifteen to check them
5. Leaves the originals, the JPG and the PDF alone, and says they're website-sized, so the biggest is sharp only up to about a 6×4 print

## The prompt to paste

```text
I saved a bunch of pictures from websites into my Downloads and they're WebP, AVIF and PNG files. The photo printing site I use only takes JPG. Can you make JPG versions of all of them?
```

## Convert them yourself

1. **Mac: Preview.** Select the pictures in Finder and open them together in Preview. In the sidebar press Cmd+A, then File, Export Selected Images. Click Options, choose JPEG and a folder. Recent macOS reads WebP and AVIF; check one transparent picture comes out white.
2. **Windows: Paint for one file.** Open the WebP in Paint and choose File, Save as, JPEG picture. Paint fills transparent areas with white when it saves. Older Windows versions may need the free WebP or AVIF extensions from the Microsoft Store to open them.
3. **Many files: XnConvert.** In the free XnConvert, add the files, set Output format to JPG at quality 90 or more, and add Actions, Image, Flatten (or set a white background) so transparency doesn't turn black. Choose an output folder and Convert.
4. **Command line: ImageMagick.** `magick sticker.webp -background white -alpha remove -quality 92 sticker.jpg` converts one with a white background. Without `-background white -alpha remove`, transparent areas often come out black.
5. **Check the print size.** For a sharp print you need about 300 pixels per inch: a 1800×1200 picture prints well at 6×4 inches. Pictures saved from websites are often smaller, so look for a larger original before ordering big prints.

## Where Stella stops

- JPG has no transparency, so stickers and logos get a solid white background.
- JPG is lossy. Keep the originals if you might edit the pictures again.
- File names, picture sizes and a small contact sheet of the results went to the AI model you use in Stella; the conversion ran on your computer, not on a converter website.
- Recorded on Linux, where ImageMagick was already installed. On a Mac or Windows PC Stella would usually install a converter first, which isn't shown.

## Questions

**Why do my converted PNGs have a black background?**
The converter dropped the transparency without filling it, and empty pixels became black. Flatten onto white first, as Stella did for the two stickers and the logo.

**How do I convert AVIF to JPG?**
Preview on recent macOS, XnConvert, or ImageMagick all read AVIF. Paint on Windows needs the AV1 extension from the Microsoft Store.

**Will converting reduce quality?**
Slightly, as JPG compresses. At quality 90 to 95 the difference isn't visible; the check found every JPG matching its original closely.

**What about iPhone HEIC photos?**
See [convert HEIC to JPG](https://stella.sh/how/photos-files/convert-heic-to-jpg). To make them smaller for upload, see [resize images in bulk](https://stella.sh/how/photos-files/resize-images-in-bulk).

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [Apple: Convert image file types using Preview on Mac](https://support.apple.com/guide/preview/prvw1012/mac), [XnConvert](https://www.xnview.com/en/xnconvert/), [ImageMagick command-line options](https://imagemagick.org/script/command-line-options.php).

## Related problems

- [Convert HEIC photos to JPG in bulk](https://stella.sh/how/photos-files/convert-heic-to-jpg.md)
- [Resize images in bulk for your website](https://stella.sh/how/photos-files/resize-images-in-bulk.md)
- [Add a watermark to all your photos at once](https://stella.sh/how/photos-files/add-watermark-to-photos.md)
- [Convert TIFF to JPG, including multi-page scans](https://stella.sh/how/photos-files/convert-tiff-to-jpg.md)
- [Google Takeout photos have the wrong date? Put the real dates back](https://stella.sh/how/photos-files/fix-google-takeout-photo-dates.md)
- [Rename PDF files based on their content](https://stella.sh/how/photos-files/rename-pdf-files-based-on-content.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
