It's 11:12 PM on a Thursday. The product campaign goes live at 8:00 AM.
A Slack screenshot lands in #paid-media: Google Ads just bounced the 300x250.zip with one of its famously unhelpful HTML5 upload errors. The designer immediately opens TinyPNG and starts crushing retina product photography into muddy 8-bit soup, trying to drag a 184 KB banner down under 150 KB because a 2019 Medium post at the top of search results said Google Ads caps HTML5 ZIPs at 150 KB.
Except 184 KB wasn't the problem.
Google Ads Display accepts HTML5 ZIPs up to 600 KB. The actual culprit? A single animation: ctaGlow 1.6s ease-in-out infinite; left on the button, plus macOS Finder quietly stuffing __MACOSX/._index.html into the archive when someone right-clicked Compress.
If you ship display banner sets for clients or performance marketing teams, you've probably lost at least one evening to this exact headache. Here are the real 2026 specs across the five major ad networks, why the 150 KB myth won't die, and how we built a zero-dependency, 0-upload HTML5 ad ZIP validator right inside the browser so nobody has to guess at 11 PM again.
1. The 5 HTML5 Ad Specs People Keep Mixing Up
The 150 KB ceiling isn't made up. It's just the wrong network. 150 KB is the IAB Strict Standard Display (LEAN initial-load) limit, which Adform also enforces. Somewhere along the way, agency Notion wikis copy-pasted "150 KB" onto Google Ads checklists and never touched them again.
Here is what the five networks performance teams actually upload to enforce today:
| Ad Network | Max Compressed ZIP | Max Files | Max Animation | Required Metadata & Click Handler |
|---|---|---|---|---|
| Google Ads Display | 600 KB | 40 | ≤ 30s (no infinite) | <meta name="ad.size">, clickTag (or ExitApi), HTTPS Google-hosted external URLs only |
| IAB Strict Display | 150 KB | 15 | ≤ 30s (no infinite) | Standard window.clickTag + window.open(clickTag) |
| DV360 / CM360 | 200 KB | 40 | ≤ 30s (no infinite) | <meta name="ad.size">, clickTag variable |
| Adform DHTML | 150 KB | 40 | ≤ 30s (no infinite) | Root manifest.json + Adform.DHTML.js + dhtml.getVar('clickTAG') |
| Google App Campaigns (UAC) | 5 MB (5,120 KB) | 512 | ≤ 30s (no infinite) | <meta name="ad.size"> + exitapi.js + ExitApi.exit() (plain clickTag fails) |
Even when your ZIP is 40 KB, four silent traps still bounce uploads:
- The App Campaigns vs. Display click-handler mismatch. Drop a perfectly valid
clickTagbanner into a Google App Campaign and it gets rejected. UAC strictly expectshttps://tpc.googlesyndication.com/pagead/gadgets/html5/api/exitapi.jsand anExitApi.exit()call. - Adform's
manifest.json+ capital-TAGtrap. Adform doesn't just readindex.html. It expects a valid rootmanifest.jsondeclaringsource,width,height, andclicktags.clickTAG, paired withAdform.DHTML.js(s1.adform.net) anddhtml.getVar('clickTAG'). - Unapproved external hosts. Pull a font from an unwhitelisted CDN, hotlink a client logo from a staging S3 bucket, or leave one stray
http://link in CSSurl(...), and Google Ads rejects the whole bundle. Bundle assets inside the ZIP, or stick strictly to whitelisted HTTPS hosts (fonts.googleapis.com,fonts.gstatic.com,s0.2mdn.net,tpc.googlesyndication.com,ajax.googleapis.com). - Silent ZIP packaging bugs. Windows zip utilities occasionally write backslash (
\) entry paths likeassets\hero.pnginstead of POSIX forward slashes (assets/hero.png), choking Linux ad-ingestion servers. macOS Finder sneaks in__MACOSX/and.DS_Storejunk files (burning slots against IAB's 15-file limit). And zipping the folder instead of its contents buriesindex.htmlatcampaign-v3/index.htmlinstead of the ZIP root.
2. Parsing & Validating HTML5 Ad ZIPs in Pure Browser JS (0 Bytes Uploaded)
When we built a pre-flight checker for these five specs, one rule came first: zero bytes uploaded to a server.
Paid-media teams handle embargoed launches: unreleased pricing, upcoming SKUs, client rebrands under NDA. Telling a designer or media buyer to upload pre-launch client creative to a random third-party backend just to check <meta name="ad.size"> is a bad habit.
You don't need a backend for this anymore, and you don't even need JSZip. Modern browsers (and Node 20+) ship DataView, TextDecoder, DecompressionStream('deflate-raw'), and CompressionStream('deflate-raw'). That's enough to parse, audit, preview, and even pack clean POSIX ZIPs inside a browser tab with the Wi-Fi switched off.
Three real engineering details make it hold up on messy production ZIPs.
A. Read the ZIP Backwards From EOCD (0x06054b50), Not Byte 0
The classic mistake when writing a JS ZIP reader from scratch is walking Local File Headers (0x04034b50) forward from byte 0. That works on half the ZIPs in the wild and breaks on the other half, because streaming ZIP creators (including macOS Finder and several CLI tools) set the data-descriptor flag and write 0 for compressedSize in the local header.
The real directory sits at the end of the file. Scan backward from the end of the ArrayBuffer for the End of Central Directory (EOCD) signature 0x06054b50, read each Central Directory entry (0x02014b50), inspect the raw filename bytes (flagging Windows \ backslashes before normalizing), and inflate method 8 entries with native DecompressionStream('deflate-raw'):
async function inflateRaw(compressedBytes) { const source = new ReadableStream({ start(controller) { controller.enqueue(compressedBytes); controller.close(); } }); const reader = source .pipeThrough(new DecompressionStream("deflate-raw")) .getReader(); const chunks = []; let totalLength = 0; while (true) { const { done, value } = await reader.read(); if (done) break; chunks.push(value); totalLength += value.byteLength; } const out = new Uint8Array(totalLength); let offset = 0; for (const chunk of chunks) { out.set(chunk, offset); offset += chunk.byteLength; } return out; } export async function parseZipBuffer(buffer) { const bytes = new Uint8Array(buffer); const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength); // Scan backwards for EOCD signature 0x06054b50 (max 64KB ZIP comment) const minOffset = Math.max(0, bytes.byteLength - 65557); let eocdOffset = -1; for (let i = bytes.byteLength - 22; i >= minOffset; i--) { if (view.getUint32(i, true) === 0x06054b50) { eocdOffset = i; break; } } if (eocdOffset === -1) throw new Error("Missing ZIP EOCD signature."); const entryCount = view.getUint16(eocdOffset + 10, true); let offset = view.getUint32(eocdOffset + 16, true); const decoder = new TextDecoder("utf-8", { fatal: false }); const files = []; let hasBackslashPaths = false; for (let i = 0; i < entryCount; i++) { if (view.getUint32(offset, true) !== 0x02014b50) { throw new Error("Corrupt Central Directory entry."); } const method = view.getUint16(offset + 10, true); const compressedSize = view.getUint32(offset + 20, true); const nameLen = view.getUint16(offset + 28, true); const extraLen = view.getUint16(offset + 30, true); const commentLen = view.getUint16(offset + 32, true); const localOffset = view.getUint32(offset + 42, true); const rawName = decoder.decode(bytes.subarray(offset + 46, offset + 46 + nameLen)); if (rawName.includes("\\")) hasBackslashPaths = true; const path = rawName.replace(/\\/g, "/"); offset += 46 + nameLen + extraLen + commentLen; if (path.endsWith("/")) continue; // directory entry const localNameLen = view.getUint16(localOffset + 26, true); const localExtraLen = view.getUint16(localOffset + 28, true); const dataStart = localOffset + 30 + localNameLen + localExtraLen; const slice = bytes.subarray(dataStart, dataStart + compressedSize); const data = method === 0 ? slice.slice() : method === 8 ? await inflateRaw(slice) : (() => { throw new Error(`Unsupported ZIP method: ${method}`); })(); files.push({ path, method, compressedSize, bytes: data }); } return { zipBytes: bytes.byteLength, files, hasBackslashPaths }; } Going the other direction (packing clean POSIX ad ZIPs inside our Figma plugin and our on-the-fly sample generator) runs the same primitives in reverse: a 12-line IEEE 802.3 CRC-32 table (0xedb88320), CompressionStream('deflate-raw') for HTML/CSS/SVG, and automatic STORE (method 0) fallback for already-compressed .png, .jpg, .webp, or .woff2 files so we never burn bytes re-deflating compressed images.
B. Catching CSS Animations That Sneak Past 30 Seconds
A naive /infinite/ regex misses stacked timing math (animation-delay: 22s; animation-duration: 3s; animation-iteration-count: 4; = 34 seconds, rejected) and fires false positives on CSS comments or class names.
Two edge cases tripped us up early:
- Strip
/* comments */and@keyframes { ... }blocks first (tracking{/}brace depth) so the declaration-block parser only reads real selector rules. - Never blindly
.split(",")ananimationshorthand. If a layer usescubic-bezier(0.22, 1, 0.36, 1), naive comma-splitting shreds the declaration into junk tokens. Split only on top-level commas outside parentheses.
For every layer rule, total runtime is plain arithmetic:
// Per animation entry on a selector: const totalSeconds = iterations === Infinity ? Infinity : Math.max(0, delay + duration * iterations); Track the maximum across every <style> block and .css file in the ZIP. If hasInfiniteLoop is true or maxDurationSeconds > 30, flag it red before the archive ever touches Google Ads.
C. Sandboxed Live iframe Preview + Click-Exit Verification
Header checks catch spec violations, but designers also want to watch the animation play and click the banner to prove clickTag or ExitApi.exit() actually fires, without executing untrusted ad JavaScript inside the host page's origin.
Since every file from the ZIP is already unpacked as Uint8Array bytes in memory, we rewrite relative asset references (<link rel="stylesheet">, <style> url(...), <img src>, <script src>) into in-memory data: URIs, prepend a tiny click-monitor shim inside <head>, and mount the document in a locked-down iframe:
const iframe = document.createElement("iframe"); iframe.setAttribute("sandbox", "allow-scripts"); // no allow-same-origin, no parent DOM/cookie access iframe.setAttribute("width", String(width)); iframe.setAttribute("height", String(height)); iframe.setAttribute("srcdoc", inlinedHtmlWithClickShim); Inside srcdoc, the injected shim wraps window.open, stubs window.ExitApi.exit() and window.dhtml.getVar('clickTAG'), and calls window.parent.postMessage({ type: "adpack-preview-click", source, url }, "*"). Click inside the banner preview, and the host UI reports the exact exit call and destination URL. Zero popups, zero network requests, zero bytes uploaded.
Want to test a campaign ZIP against all five networks right now? The free validator is live with no signup at adpack.localledgerstudio.xyz. There's a 1-click sample 300×250 pure-CSS ZIP button if you just want to watch the parser and click monitor work — or switch your Wi-Fi off after the page loads and drop an NDA client ZIP in.
3. Why We Built This (And the $49/Month Figma Tax)
This validator didn't start as a standalone website. It started as the pre-flight engine inside AdPack HTML5, a Figma-to-HTML5 banner exporter plugin we just submitted to Figma Community (currently in review, submission #1707636481667288351).
Here is the blunt reason we built it:
Figma Professional costs roughly $15/mo per seat. Yet the go-to Figma HTML5 banner plugin most paid-media teams install, Bannerify, costs $49/mo per seat ($588/yr billed monthly, or $499/yr annual).
Let's be fair: Bannerify is a solid plugin. It isn't broken. The annoyance is paying 3× the price of Figma itself every month just to export pure-CSS @keyframes display banner ZIPs.
Run the two-year seat math for a small 3-designer performance agency:
- Bannerify (3 seats, 2 years):
$2,994on annual billing, or$3,528billed monthly. - AdPack HTML5 (3 seats, 2 years):
$414on annual ($69/yr/seat), or$237total on the one-time pass ($79/seat, zero renewal bills).
We put together the full side-by-side feature and 2-year cost breakdown — including the exact spots where Bannerify legitimately wins — on our honest Bannerify vs. AdPack HTML5 comparison.
4. Who Should NOT Use AdPack HTML5
Before you bookmark another tool and burn 20 minutes testing it on the wrong pipeline, here is where AdPack HTML5 is the wrong fit:
- After Effects / Lottie character animation or bespoke GSAP timelines. Don't buy a pure-CSS exporter and fight it. Keep Bannerify's GSAP hooks or build in AE/Lottie.
- MP4/WebM video renders or animated GIFs for paid social out of the same Figma plugin. AdPack only compiles clean HTML5 display ZIPs.
- Dynamic real-time product-feed retargeting (swapping 5,000 e-commerce SKUs, live prices, and stock counts at impression time). That is Celtra, Bannerflow, or Google Studio DCO territory, not a local Figma ZIP exporter.
Where AdPack HTML5 does belong: solo performance designers, front-end devs tired of hand-coding 8 banner sizes every Tuesday, and boutique agencies shipping standard display sets (300×250, 728×90, 160×600, 300×600, 320×50, 970×250) from Figma who want accurate 5-network pre-flight checks without a $49/mo/seat invoice.
Try the Free Validator Now (Plus Transparent Launch Pricing)
While Figma finishes reviewing plugin #1707636481667288351, the Free Browser-Local HTML5 Ad ZIP Pre-Flight Validator is free to use permanently with zero account and zero server uploads.
Once the Figma plugin clears review, it ships with 3 free unwatermarked single-banner Google Ads exports per month so you can upload a real ZIP into your ad account before paying a cent. For unlimited exports, multi-size batch ZIPs, 1-click cross-size animation sync, Client Approval Gallery HTML, and all five ad-network presets, Pro plans are:
- $12/mo, $69/yr, or a $79 one-time pass (v1.x, 3 devices per key).
- For launch week, code
EARLY25takes 25% off for the first 50 buyers ($9/mo,$51.75/yr, or$59.25one-time). - Every paid plan includes a 14-day no-questions-asked refund handled directly through Dodo Payments.
No VC deck, no cloud render farm to subsidize — just one independent developer shipping local-first tools.
Question for anyone who ships display ads: What's the most baffling HTML5 rejection Google Ads, DV360, or Adform has ever hit you with? If there's a real-world edge case our validator misses (a quirky DSP manifest field, an odd external-host allowlist, or a broken ZIP generator), drop it in the comments — or email a redacted sample ZIP to qq459538565@gmail.com and I'll patch the check in.