🧰Locly

Compress Image to Exact File Size (KB)

Compress images to a target file size in KB, processed locally in your browser

πŸ“¦

or drag and drop an image here

Supports: JPG, PNG, WebP

Limits: ≀20MB per file, max 20 images

About This Tool

Batch compress multiple images and download as a ZIP β€” all processed locally in your browser. See before/after file sizes (Original β†’ Compressed KB with % saved) for each image. Perfect for meeting upload limits on websites, email attachments, or social media.

How to Use

  1. Click 'Select Image' or drag and drop multiple image files
  2. Enter your target file size in KB (e.g., 100 for 100KB)
  3. Click 'Compress All' to batch process, or 'Compress' for single image
  4. Review Original β†’ Compressed size and % reduction for each image
  5. Download individually or as a ZIP archive

Common Use Cases

  • Website optimization: Reduce image sizes for faster page loading
  • Email attachments: Compress images to meet attachment size limits
  • Social media: Optimize images for platform upload limits
  • E-commerce: Batch compress product photos
  • Form uploads: Meet website upload size requirements

FAQ

Q1: Can I compress multiple images at once?

Yes! Select or drag multiple images (up to 20), compress them all with one click, and download as a ZIP file. Each image shows its before/after file size.

Q2: How does the compression work?

The tool uses canvas-based compression with adjustable quality settings. It iteratively adjusts the quality to achieve the target file size while preserving the best possible visual quality.

Q3: Will compression affect image quality?

Yes, compression involves a trade-off between file size and quality. The tool optimizes to preserve the best quality at your target size. For minimal quality loss, choose a target size closer to the original.

Q4: Are my images uploaded anywhere?

No. All compression happens locally in your browser using JavaScript. Your images never leave your device, making this tool safe for private or sensitive photos.

Q5: Which format should I use for best compression?

JPEG typically achieves the smallest file sizes for photos. WebP offers excellent compression with better quality. PNG is best for graphics with transparency but compresses less efficiently for photos.

Related Tools