100% Private & Browser Based

How to Compress HTML5 Banner ZIP Files (2026)

Most oversized HTML5 banners are oversized because of their images. Compress the PNG and JPEG files first, then trim the code, then deal with the file count. The free HTML5 Banner Compressor does the image step inside your browser: drop the ZIP, pick a preset, and download a smaller ZIP with every file name and folder left exactly where it was.

1. Know which limit you are compressing toward

There is no single number. Each platform measures something different, so check the booking before you start cutting quality.

Platform What is limited Limit
Google Ads The uploaded ZIP 600 KB, 40 files
Google Ads image ads A single GIF, JPG or PNG 150 KB
Campaign Manager 360 The uploaded ZIP 9.5 MB and 100 files on the asset options page, 10 MB on the HTML5 preparation page
Display & Video 360 Everything a browser downloads when the ad serves 5 MB. The ZIP itself has no size limit, 100 files
IAB guidance Initial load, measured after gzip 150 KB for 300×250, 728×90 and 160×600, 50 KB for 320×50

The IAB figures are recommendations for publishers, not an upload check, and they count what loads before the page's load event. Heavier assets can load later as subload: the IAB allows twice the initial weight there. The full per size list is in the banner ad sizes chart, and the Google Ads rules behind the 600 KB figure are in the Google Ads HTML5 validator guide.

2. Find what is actually heavy

Drop the ZIP into the HTML5 Banner Validator first. It reports the ZIP weight against the selected platform, the file count and any file type the platform refuses, so you know whether you have a weight problem, a count problem or both. The compressor then lists every image with its original size, its new size and the percentage saved, which shows at a glance which two or three files carry most of the weight.

3. Compress the images

This is what the Banner Compressor does to a ZIP, step by step:

One thing the quality slider cannot do: browsers apply the quality setting to JPEG and WebP only. A PNG is encoded again without loss, so it shrinks only when the browser's encoder beats the original file or when you downscale it. If a large PNG is a photo with no transparency, exporting it as a JPEG from your design tool usually saves far more, but then update the reference in the code.

4. Downscale only what is safe to downscale

Many banners ship images at twice their display size for sharp screens. Scaling those to 75% or 50% can halve the weight, but only when something else fixes the size the image is drawn at. When you choose a scale below 100%, the compressor reads the HTML, JS, JSON and CSS in the ZIP and leaves two kinds of image at full size, recompressing them for quality only:

After a downscale the compressor shows a Preview before you ship notice with the number of resized images. Open the new ZIP in the validator and watch every frame before trafficking it.

5. Trim what the compressor does not touch

GIF, SVG, HTML, CSS and JavaScript files pass through unchanged. These are the manual wins:

6. Get under the file count

Google Ads allows 40 files, CM360 and DV360 allow 100. Combine small images into one sprite sheet, merge stylesheets and scripts into one file each, and delete source files, previews and anything the banner never references. CM360 asks for the HTML file plus the files it references and nothing else.

7. Mistakes that cost a rejection