Batch Image Conversion: Convert Many Images at Once

By FileConvertLab

Published: | Updated:

Batch image conversion showing multiple files being processed simultaneously with progress tracking
Visual representation of batch conversion process showing 247 input files being converted simultaneously to optimized output files with progress tracking and settings panel

You shot 2,000 photos at a wedding and need JPGs for the client. Your WordPress site has 800 PNGs that should be WebP. An e-commerce catalog needs every product image at three sizes. Doing this one file at a time would take days. Batch image conversion processes all files in a single operation with consistent settings — same quality, same dimensions, same format across every image.

Mass Convert PNG to JPG

PNG to JPG is the most common batch conversion. PNGs from screenshots, design exports, or scanned documents produce large files (3-15 MB each) because PNG is lossless. Converting to JPG at 85-90% quality cuts file size by 80-95% with barely visible quality loss on photographs. Our PNG to JPG converter handles multiple files simultaneously.

The key setting is quality level. At 90%, a 5 MB PNG photograph becomes a 400-600 KB JPG. At 85%, it drops to 250-400 KB. Below 80%, compression artifacts become visible in gradients and skin tones. For screenshots with text, go higher (92-95%) because JPG compression smears sharp edges.

One catch: PNGs with transparency lose it during conversion because JPG doesn't support alpha channels. The transparent area becomes white (or whatever background color your converter uses). If you need transparency, convert to WebP instead — it supports transparency with better compression than PNG.

Mass Convert JPG to PNG

The reverse conversion — JPG to PNG — makes sense when you need lossless archives of images that won't be re-edited, or when you need to add transparency later. Converting JPG to PNG won't restore lost quality (the JPG compression already happened), but it prevents further degradation if the files will be edited and saved repeatedly.

Expect file sizes to increase 3-5x. A 500 KB JPG becomes a 1.5-2.5 MB PNG. This is normal — PNG stores every pixel without compression loss. If storage is a concern and you don't need lossless, JPG to WebP gives better compression while still supporting transparency.

Batch Convert PDF to JPG

Converting PDFs to images is common for previews, thumbnails, and social media sharing. Each PDF page becomes a separate JPG. A 50-page document produces 50 images. Our PDF to JPG converter handles multi-page documents and multiple PDFs at once.

Resolution matters here. At 72 DPI (screen resolution), text looks soft and blurry when zoomed. At 150 DPI, you get readable text in a reasonable file size — good for web previews. At 300 DPI, you get print-quality images but large files (a letter-size page at 300 DPI produces a 2550x3300 pixel image). Pick DPI based on how the images will be used, not on "maximum quality."

Batch Resize Images for Web

Camera photos are typically 4000-6000 pixels wide. Displaying them on a website at that size wastes bandwidth — monitors max out at 1920-2560px, and most content areas are 800-1200px. Batch resizing reduces every image to a target dimension before upload.

Common web dimensions and when to use them:

  • 1920px wide: Full-width hero images, background photos. A 6000px original resized to 1920px at JPG 85% goes from 8 MB to 200-400 KB
  • 1200px wide: Blog post images, article headers. The standard for content images where the layout is ~800px but you want 1.5x for retina displays
  • 800px wide: Product cards, gallery thumbnails (large). Works well for catalog grids showing 2-3 images per row
  • 400px wide: Small thumbnails, avatar-sized images. Under 50 KB each at JPG 80%

For responsive websites, you often need multiple sizes of each image for the HTML srcset attribute. Batch conversion can generate 3-4 variants per source image (e.g., 400px, 800px, 1200px, 1920px) in one pass. This gives browsers the right size for each viewport without serving oversized images to mobile devices.

Image Conversion vs. Image Optimization

These are different operations that people often conflate. Conversion changes the format: PNG becomes JPG, or JPG becomes WebP. Optimization reduces file size within the same format through smarter encoding. Both reduce file sizes, but they work differently.

  • Format conversion — changes the container and compression algorithm. PNG (lossless) to JPG (lossy) drops file size dramatically because you're accepting some quality loss
  • Quality optimization — reduces quality within a format. JPG at 95% vs. 85% is the same format but different file sizes. Tools like mozjpeg produce smaller JPGs than standard encoders at the same visual quality
  • Metadata stripping — removes EXIF, ICC profiles, and thumbnails embedded in the file. Can save 50-200 KB per image, significant for thumbnails but minor for large photos
  • Resizing — reduces pixel dimensions. This has the largest impact: halving width and height quarters the pixel count and roughly quarters the file size

For maximum file size reduction, combine all four: resize down, convert to an efficient format, optimize compression, and strip unnecessary metadata. See our image optimization guide for detailed compression comparisons.

Real-World Workflows

Photographer: Wedding Delivery

A wedding photographer shoots 2,000-3,000 images in RAW (CR3, NEF, ARW). After culling and editing in Lightroom, they export to full-resolution JPG for archival, then need web-sized versions for the online gallery. Batch convert the full-res JPGs: resize to 2048px wide, quality 88%, strip GPS metadata (privacy), keep copyright EXIF. Output: ~400 KB per image instead of 8-12 MB. The entire gallery loads in seconds instead of minutes.

Web Developer: Site Migration to WebP

A WordPress site has 800+ images accumulated over years — a mix of PNG screenshots, JPG photos, and unoptimized BMPs. Migrating to WebP cuts total image weight by 30-50%. Batch convert everything to WebP at quality 82, keep the originals as fallbacks for <picture> elements. Monitor WebP browser support — as of 2026, it's above 97% globally.

E-commerce: Product Catalog

An online store adds 50-200 new product photos weekly. Each needs four variants: 1200px main image, 400px card thumbnail, 100px cart icon, and 2400px zoom view. Without batch processing, creating four versions of 200 images (800 files) is a full day of work. With batch resize, it takes minutes. Convert to JPG 90% for the main and zoom views, JPG 80% for thumbnails where compression is less noticeable.

Batch Conversion Tools for Developers

If you work in a terminal or need to integrate conversion into build scripts, command-line tools give you full control. These handle thousands of files without a GUI.

ImageMagick (CLI)

ImageMagick's mogrify command converts files in-place. To convert all PNGs in a directory to JPG at 85% quality:

mogrify -format jpg -quality 85 *.png

To resize and convert simultaneously (max 1920px wide, maintain aspect ratio):

mogrify -format jpg -quality 85 -resize 1920x *.png

Use convert instead of mogrify when you want to write to a different directory (keeping originals intact). The -strip flag removes all metadata if you want smaller files.

Python Pillow Script

For custom logic (conditional resizing, format detection, error logging), a Python script with Pillow gives you full flexibility:

from pathlib import Path
from PIL import Image

src = Path("originals")
dst = Path("converted")
dst.mkdir(exist_ok=True)

for f in src.glob("*.png"):
    img = Image.open(f)
    img.thumbnail((1920, 1920))  # max 1920px, keeps ratio
    img.save(dst / f"{f.stem}.jpg", "JPEG", quality=85)

This processes files sequentially. For parallel processing on large batches, wrap the loop with concurrent.futures.ThreadPoolExecutor.

Node.js sharp

Sharp is the fastest image processing library in the Node.js ecosystem, built on libvips. It handles batch conversion natively:

import sharp from "sharp";
import { glob } from "fs/promises";

for await (const file of glob("originals/*.png")) {
  await sharp(file)
    .resize({ width: 1920, withoutEnlargement: true })
    .jpeg({ quality: 85, mozjpeg: true })
    .toFile(file.replace("originals", "converted")
                 .replace(".png", ".jpg"));
}

The mozjpeg: true flag enables mozjpeg encoding, which produces 5-10% smaller files than standard JPEG at the same visual quality.

Automation on Every Platform

Instead of running batch conversion manually each time, set up automated pipelines that trigger on file changes.

  • Windows (PowerShell): Use a FileSystemWatcher to monitor a folder and run ImageMagick when new files appear. Or schedule a Task Scheduler job to convert everything in C:\Uploads nightly
  • macOS (Automator): Create a Folder Action that converts dropped images to your target format. Right-click any folder, attach the action, done
  • Linux (cron + ImageMagick): A cron job running mogrify at 2 AM converts everything added to a watched directory during the day
  • CI/CD pipelines: Add a sharp or ImageMagick step to your build pipeline. Every image committed to the repo gets optimized automatically before deployment

Choosing Quality Settings

Quality isn't a linear scale. The difference between 100% and 95% is barely visible but the file size drops 40-60%. The difference between 85% and 80% is noticeable in gradients and skin tones. Here's a practical guide:

  • 92-95%: Archival quality. Use when the converted file becomes the permanent copy. Minimal compression artifacts
  • 85-90%: Production quality. The sweet spot for web images, client deliveries, and portfolios. Most people can't distinguish this from the original
  • 75-84%: Performance quality. Thumbnails, previews, email attachments. Artifacts visible if you zoom in, invisible at display size
  • Below 75%: Only for small thumbnails or cases where file size is critical (e.g., loading 500 product images on a single page)

Always test on 10-20 representative images before batch converting thousands. A setting that works for outdoor landscapes may look terrible on product photos with white backgrounds. For a deeper comparison of format trade-offs, see our PNG vs JPG vs WebP analysis.

Related Topics

Conclusion

Batch image conversion isn't about clicking "convert" on many files. It's about choosing the right format, quality, and dimensions for your specific use case — then applying those settings consistently across hundreds or thousands of images. Start with a test batch of 20 files, verify the output meets your needs, then process the rest. Whether you use an online converter, ImageMagick in a terminal, or a build pipeline, the workflow is the same: define settings once, convert everything, spot-check the results.

Frequently Asked Questions

How long does batch image conversion take?

It depends on file count, resolution, and output format. A rough benchmark: 500 PNG files (3-8 MB each) convert to JPG 85% quality in about 4-10 minutes on a modern machine. Resizing adds 10-20% more time. Batch processing runs 5-10x faster than converting files individually because multiple CPU cores work in parallel.

Can I convert mixed formats (PNG, JPG, WebP) in one batch?

Yes. Most batch tools detect each file's format automatically and convert them all to a single target format. You can drop PNGs, JPGs, WebPs, HEICs, and BMPs into the same batch and get uniform output. The tool handles the differences in color space, bit depth, and alpha channels internally.

Will batch conversion reduce image quality?

Batch conversion applies the same settings as single-file conversion. Quality loss depends on your settings, not the batch process. Converting lossless PNG to JPG at 90% produces excellent results. Converting JPG to JPG at a lower quality introduces generation loss, so avoid re-compressing already-compressed files.

What's the difference between image conversion and optimization?

Conversion changes the format (PNG to JPG). Optimization reduces file size within the same format through smarter compression, metadata stripping, or subsample tuning. You often want both: convert PNG to JPG, then optimize the JPG output. Tools like mozjpeg and pngquant handle optimization specifically.

Should I convert all images to the same format?

Not always. JPG works best for photographs, PNG for graphics with transparency, and WebP for web delivery where browser support exists. However, if you're standardizing a library for one purpose (e.g., all product photos for an e-commerce site), a single format simplifies management. WebP with PNG fallbacks covers most web scenarios.

How do I batch resize without distortion?

Set a maximum width or height and let the tool calculate the other dimension proportionally. For example, 'max width 1920px' converts a 4000x3000 image to 1920x1440 and a 3000x4000 image to 1440x1920 — both keep their original aspect ratio. Avoid setting both width and height unless you want cropping.

What happens if some files fail during batch conversion?

Batch converters skip failed files and continue processing. After completion, you get a summary of successes and failures. Common failure causes: corrupted source files, unsupported color profiles (CMYK in a web converter), or permission issues. You can then fix and reconvert the failures individually.

Can I preserve EXIF metadata during batch conversion?

Most converters preserve EXIF by default (camera model, date, GPS coordinates, copyright). When converting to WebP, verify metadata preservation is enabled — some tools strip it for smaller files. If you need to remove metadata (for privacy), batch stripping is also a common feature.

Batch Image Conversion: Convert Hundreds of Images at Once