Batch PNG Compression Guide
Compress multiple PNG files quickly and consistently for production workflows.
By the CompressItAll team. Published 2025-10-26. Updated 2026-10-24.
Why Batch Compression?
Teams ship dozens of assets per release, such as icons, screenshots, UI sprites. Batch compression ensures consistent quality, smaller downloads, and faster pages without manual effort.
Recommended Workflow
- Export design assets at exact display sizes (avoid oversized images).
- Group PNGs by type (logos, screenshots, UI) to apply consistent rules.
- Upload up to 5 PNGs at once with our tool, review results, and iterate.
- Download all compressed files as a single ZIP for handoff or deployment.
Quality Checks
- Use side-by-side comparisons to verify crisp edges and text readability.
- Confirm transparency renders correctly on light and dark backgrounds.
- Spot-check final pages on real devices for visual artifacts.
Automating at Scale
For larger pipelines, integrate a compression step in CI or pre-commit hooks. Keep source assets in version control and generate optimized artifacts during build. This prevents regressions and keeps diffs small.
Troubleshooting
- Large files: Reduce dimensions or color count where appropriate.
- Blurry edges: Ensure assets are exported at 1x or whole-number scales.
- Color shifts: Remove unnecessary color profiles; stick to sRGB for web.
When Batching Pays Off
One image rarely needs a process. A release with forty images does, because small inconsistencies add up: one screenshot at double size, one logo saved with a color profile, one photo exported as PNG. A batch routine makes the decisions once, applies them to a group, and leaves a record of what the rules were. It also makes review faster, since you compare results against a rule and not against taste.
Step 1: Inventory and Sort
Collect every file and sort by content type before touching a setting, because the right mode depends on what the image shows. A useful split is photographs, screenshots, logos and icons, and images that need transparency. Each group gets one rule, for example lossless for screenshots and a lossy quality setting for photos. See Lossy vs Lossless Compression if the distinction is unfamiliar.
Step 2: Fix Dimensions Before Compression
Decide the maximum display width for each group and resize first. Compressing a huge image gently still leaves a huge image. Resize the files in an image editor or a script before uploading. CompressItAll's Custom mode has maximum width and height fields, but they are not applied reliably at the moment, so do not count on them to resize a batch.
Step 3: Run Batches of Up to 5 Files
The tool accepts up to 5 files per batch in PNG, JPEG, WebP or AVIF. For a larger set, split it into groups of five that share a rule, and run each group through the matching tool page: PNG, JPEG, WebP or AVIF. Uploads go to our servers over HTTPS and are deleted automatically after processing. No registration is needed.
Step 4: Review the Results Table
The results table lists sizes for each file and offers a before and after view. Look at the biggest files first, then open the before and after view for any image with text, fine lines or smooth gradients. If you used a Custom setting such as a target size, confirm each file against your limit instead of assuming it was met, because Custom settings are not applied reliably yet.
Step 5: Download and Hand Off
Download files one by one or as a ZIP. Name the folder after the release or the page so the compressed set stays tied to its purpose, and keep the originals in a separate folder. Never overwrite the originals with the compressed copies, since a later change in rules will need the master.
Mixed Format Batches
| Group | Mode to start with | Review focus |
|---|---|---|
| Screenshots and UI art | Lossless | Text edges |
| Photographs | Lossy, default quality 85 | Gradients, faces |
| Oversized exports | Resize in an editor first, then compress | Sharpness at display size |
| Strict size limit | Check each result against the limit | Whether the limit was actually met |
Keeping Naming and Versions Sane
Pick a naming pattern and stick to it. A suffix such as the target width in the file name makes it obvious which copy is which and prevents a full-size file from being deployed by accident. Store the rule next to the files, even if it is a short text note: which mode, which quality value, which maximum width. When a designer asks why one logo looks different from another, that note answers the question in seconds.
Reviewing as a Team
When more than one person touches the assets, agree on who has the final say on quality. A short review pass works well: one person opens the before and after view for every text-heavy image, another checks the pages in a real browser on a phone and a laptop. Disagreements are usually about a single image, so note it, adjust that file with Custom mode, and leave the group rule alone. Record exceptions, because an exception that nobody wrote down turns into a surprise at the next release.
Common Mistakes
- Applying one quality value to every group instead of one rule per group.
- Skipping the review step because the batch finished without errors.
- Compressing the already compressed output of a previous run.
- Overwriting source files, which removes the ability to redo the job later.
- Assuming a target size was reached without reading the results table.
Checklist
- Files sorted into groups, each with one rule.
- Dimensions decided and applied.
- No more than 5 files per upload, grouped by rule.
- Before and after view checked for text and gradients.
- Originals kept apart from compressed copies.
Group-level choices build on format knowledge. For PNG specifics, see PNG Optimization Best Practices. For picking formats across a whole site, read AVIF vs WebP vs JPEG.