How to Batch Convert Images: A Complete Guide
Learn how to batch convert multiple images at once — in-browser with PixConvert, or via command line with ImageMagick. Covers use cases, format tips, and when to use each approach.
PixConvert Team
How to Batch Convert Images
Converting images one at a time is fine for a handful of files. With 50 or 500 of them, you want to pick the settings once and run them all together.
What Is Batch Image Conversion?
Batch conversion applies the same change to many images in one run. The change can be a new format, a smaller file or a new size in pixels.
The first thing it saves is clicks. At 30 seconds a file, converting 100 images one by one is 50 minutes of opening, uploading and saving. In a batch you set everything up once and get one ZIP back.
Every file also gets the same settings. When you convert files one by one, it's easy to change the quality halfway through and not notice.
Batch Converting with PixConvert
The converters, the image compressor and the image resizer all take many files at once. Here is how a batch runs in a converter:
- Open the converter for the format you want. A page like JPG to WebP only takes JPG files. If your folder has a mix of formats, use the WebP converter instead. It takes JPG, PNG, GIF and HEIC files and sets each one to WebP.
- Drag your files onto the box, or open the file picker and hold Ctrl (Cmd on a Mac) to select several.
- Check the settings. JPG and WebP output start at quality 90, and the slider goes from 1 to 100. Strip metadata is on by default. Press "Apply to all files" so every file gets the same output.
- Press Convert All, then Download All. Two or more files download as one ZIP. Each file keeps its name with the new extension, so
beach.jpgbecomesbeach.webp.
Each file can be up to 100 MB, and there's no limit on how many you add. Files are converted one after another, so a large batch takes a while to finish.
The image compressor works the same way. Its limit is 50 MB per file, the quality slider starts at 75, and each file gets "-compressed" added to its name.
Keeping Client Files Off Other Servers
Many online converters upload your files to their servers to process them. For client work or unreleased product photos, that means a copy sits on someone else's server under their privacy policy. PixConvert converts in your browser, so your files stay on your device.
Common Batch Conversion Jobs
Converting a Photo Library to WebP
Drop the JPGs on the JPG to WebP converter, keep quality at 90 or lower it to about 80, and download the ZIP. In Google's own tests, lossy WebP files were 25 to 34% smaller than JPGs of the same quality. Open a few results at full size before you replace the originals on your site.
Preparing Images for a Website Launch
A launch usually brings a mix of hero images, blog thumbnails and product photos. Run them all through the image compressor first. Then convert the ones that need a new format, such as photos that were saved as PNG. Logos can stay PNG.
Processing Design Exports
Design tools often export PNG. If you need JPG for email templates or WebP for the web, drop the export folder on PNG to JPG or PNG to WebP. JPG has no transparency, so clear areas are filled with a background color you pick.
Compressing Product Photos for a Store
Before you upload a catalog to Amazon, Shopify or Etsy, drop the folder into the image compressor. Start at the default quality of 75 and look at a few results at full size. You can also type a target file size, such as 500 KB, instead of using the slider. Each platform's size rules are in our guide to preparing product images for e-commerce.
Tips for Large Batches
- Put photos and graphics in separate batches. Photos shrink well as JPG or WebP, while logos and flat graphics stay sharper as PNG.
- On a phone, or with very large files, split a big batch into smaller groups. Phones have less memory for the browser to work with.
- Test 5 to 10 files first and check them at full size before you run the whole folder.
- Keep your originals. You'll need them if you change the settings later or want another format.
PixConvert vs Command-Line Tools
A browser tool suits most people, but a command-line tool such as ImageMagick is the better pick for some jobs.
PixConvert is the easier choice when:
- you want to see each result as you go
- your files must stay on your device
- you convert a batch now and then, not every day
- you don't use a terminal or can't install software
A command-line tool fits better when:
- conversion is one step in a build pipeline or CI job
- you process thousands of images on a schedule, such as every image in a repository on each commit
- you need something PixConvert doesn't do, such as converting CMYK images to sRGB
- your server creates images on the fly
This ImageMagick 7 command turns every JPG in a folder into a WebP:
magick mogrify -format webp -quality 82 *.jpg
It writes a .webp file next to each JPG and leaves the JPGs alone, but you need ImageMagick installed and a terminal open in that folder.