Back to Blog
Advanced TutorialNovember 12, 20256 min read

Batch Image Compression: Resize 100 Images to KB at Once

Need to compress 100+ images to 20KB each? I've tested every batch compression method. Here's the fastest way to process hundreds of photos without spending hours.

By Sarvesh
Batch image compression tutorial

When You Need Batch Compression

Compressing images one by one is fine for 5-10 photos. But what if you have:

  • Wedding photos to upload to a gallery (50-200 images)
  • Product catalog for e-commerce (100+ product shots)
  • Real estate listings (20-30 photos per property)
  • Student records with passport photos (entire class)
  • Blog article images for the year (hundreds of photos)

You need a batch workflow. Manual compression would take hours. Here's how to do it in minutes.

Best Batch Compression Tools

Method 1: XnConvert (Best for Windows/Mac)

Free desktop software that can process unlimited images at once. Set it up once, reuse the preset forever. Supports 500+ formats.

Step-by-Step Tutorial:

  1. Download XnConvert from xnview.com/en/xnconvert (100% free)
  2. Add your images: Click "Add Files" or drag entire folder
  3. Go to "Actions" tab: Click "Add Action" → "Image" → "Resize"
    • • Set target dimensions (e.g., 800×600 pixels for 20KB target)
    • • Check "Keep aspect ratio"
  4. Go to "Output" tab:
    • • Format: JPEG
    • • Quality: Start at 75% (adjust based on file size)
    • • Choose output folder
  5. Test with 1 image first: Select one image, click "Convert"
  6. Check file size: Right-click output → Properties
    • • Too large? Lower quality to 65%
    • • Too small? Increase to 85%
  7. Process all images: Once settings are right, click "Convert" for all

✅ Pros:

  • • Process unlimited images
  • • Save presets for reuse
  • • Very fast (100 images in 30 seconds)
  • • 100% free, no watermarks

❌ Cons:

  • • Need to install software
  • • File size is approximate (not exact KB)
  • • Learning curve for first setup

Best For: Regular batch processing (photographers, designers, businesses)

Method 2: iLoveIMG (Best for Web)

Online tool for batch compression. No installation. Good for occasional bulk work.

How to Use:

  1. Go to iloveimg.com/compress-image
  2. Upload up to 30 images at once (free tier)
  3. Click "Compress images"
  4. Download as ZIP file

✅ Pros:

  • • No installation needed
  • • Simple interface
  • • Works on any device

❌ Cons:

  • • Free: 30 images max per batch
  • • Can't specify exact KB size
  • • Need premium for 100+ images

Best For: Occasional batches of 10-30 images

Method 3: Photoshop Actions (For Professionals)

If you already have Photoshop, use Actions + Image Processor for maximum control.

Quick Setup:

  1. Open one sample image in Photoshop
  2. Window → Actions → Create New Action
  3. Record these steps:
    • • Image → Image Size → Set to 800×600px
    • • File → Export → Save for Web → JPEG quality 60%
  4. Stop recording
  5. File → Scripts → Image Processor
  6. Select source folder, choose action, run

Best For: Professional photographers with existing Photoshop workflow

Method 4: ImageMagick (For Developers)

Command-line tool for ultimate automation. Script it once, run forever.

# Install ImageMagick first

brew install imagemagick # Mac

# Batch compress all JPGs to ~20KB

mogrify -resize 800x600 -quality 75% *.jpg

Best For: Developers automating image pipelines

Real-World Workflows

Scenario 1: Wedding Photographer (200 photos)

Challenge: Client wants online gallery. Each photo must be under 100KB for fast loading.

Solution: XnConvert

  1. Import 200 wedding photos
  2. Resize to 1920×1080 pixels (HD resolution)
  3. JPEG quality 80% (balances size and quality)
  4. Output to "Wedding_Compressed" folder
  5. Process time: 2 minutes for 200 images

Scenario 2: E-commerce Store (150 product photos)

Challenge: Product catalog needs uniform sizing. Each photo exactly 50KB for consistency.

Solution: Photoshop Action

  1. Create action: Resize to 1000×1000px, white background
  2. Export at JPEG quality 70%
  3. Use Image Processor on entire product folder
  4. Manually check first 5, then batch process rest

Scenario 3: HR Department (500 employee photos)

Challenge: ID card system requires exactly 20KB per photo. 500 employees to process.

Solution: XnConvert with precise settings

  1. Test with 10 sample photos to find perfect settings
  2. Resize to 600×600 pixels (passport size)
  3. JPEG quality 65% (gives ~20KB for 600×600)
  4. Save preset as "ID_Card_20KB"
  5. Process all 500 photos: 3-4 minutes total

Scenario 4: Blogger (100 article images)

Challenge: Year's worth of blog images. Need web-optimized versions under 100KB each.

Solution: iLoveIMG (quick and easy)

  1. Upload 30 images at a time (free limit)
  2. Compress automatically
  3. Download ZIP, extract
  4. Repeat 4 times for 100 images
  5. Total time: 10 minutes

Pro Tips for Batch Compression

Tip #1: Always test with 5-10 samples first

Don't compress all 500 images only to find they're too large or too compressed. Test a small batch, check quality and file size, then process the rest.

Tip #2: Keep originals in separate folder

Never overwrite your original files. Always output compressed images to a different folder. You might need originals later.

Tip #3: Match dimensions to your target KB

Want 20KB? Try 800×600 pixels. Want 50KB? Try 1200×900. Want 100KB? Try 1920×1080. Dimensions affect final file size more than quality slider.

Tip #4: Use consistent naming convention

Add suffix to filenames: "_compressed", "_20kb", "_web". Makes it easy to tell originals from compressed versions. XnConvert can auto-add suffixes.

Tip #5: For exact KB targets, compress individually

Batch tools give approximate sizes. If you need EXACTLY 20KB per image (e.g., government forms), use ResizeKB to process individually or in small batches.

Comparison: Which Method for Your Needs?

MethodImages/BatchSetup TimeCostBest For
XnConvertUnlimited10 minFreeRegular batch users
iLoveIMG30 (free)0 minFreemiumOccasional use
PhotoshopUnlimited15 min$10/moProfessionals
ImageMagickUnlimited30 minFreeDevelopers
Manual1 at a time0 minFreeUnder 10 images

My Recommendation

For most people: Download XnConvert. Yes, it takes 10 minutes to learn. But once you set it up, you can process 1000 images in 5 minutes. Worth the initial investment.

For quick one-time batches: Use iLoveIMG. No installation, works on any device, perfect for 10-30 images.

For exact KB requirements: Batch tools give approximate sizes. When you need EXACTLY 20KB per image (government forms), compress individually with ResizeKB.

Need Exact KB Sizes?

For government forms and applications requiring exact file sizes

Compress to Exact KB →