<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Apps66]]></title><description><![CDATA[Apps66]]></description><link>https://apps66.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/69ecae5017d72fa4cd833b41/5b9cc88b-2898-42c0-bf09-4d62d76a8a00.png</url><title>Apps66</title><link>https://apps66.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 22:52:09 GMT</lastBuildDate><atom:link href="https://apps66.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Strict Portal & Marketplace Image Spec Cheat Sheet (2026): 20-500 KB Limits, Shopify, Etsy & Amazon]]></title><description><![CDATA[Disclosure: I build and maintain Apps66. The browser-local HTML5 Canvas binary-search compression algorithm below is completely reusable in your own…]]></description><link>https://apps66.hashnode.dev/strict-portal-marketplace-image-spec-cheat-sheet-2026-20-500-kb-limits-shopify-etsy-amazon</link><guid isPermaLink="true">https://apps66.hashnode.dev/strict-portal-marketplace-image-spec-cheat-sheet-2026-20-500-kb-limits-shopify-etsy-amazon</guid><category><![CDATA[Web Development]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[performance]]></category><category><![CDATA[ecommerce]]></category><category><![CDATA[HTML5]]></category><dc:creator><![CDATA[Apps66]]></dc:creator><pubDate>Sat, 28 Nov 2026 15:07:47 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/69ecae5017d72fa4cd833b41/c87cb382-0b1c-44b8-a6d9-008bafc564dc.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Disclosure: I build and maintain <a href="https://apps66.com">Apps66</a>. The browser-local HTML5 Canvas binary-search compression algorithm below is completely reusable in your own JavaScript projects, and every Apps66 image link below runs 100% client-side with zero uploads (verifiable offline in DevTools).</em></p>
<p>Image upload failures split into two frustrating worlds: <strong>hard byte-ceiling portals</strong> (passports, visas, competitive exams, HR forms that reject a 50.4 KB JPG outright) and <strong>strict dimension marketplaces</strong> (Shopify, Etsy, Amazon, Instagram, YouTube where wrong widths break hover-zoom or trigger blurry server-side recompression).</p>
<p>Below is a single 2026 reference table for both worlds - plus a quick GPU Power-of-Two texture note, a drop-in JavaScript 7-step binary-search Canvas compressor, and a 20-second DevTools offline privacy audit.</p>
<h2>1. 2026 Government, Visa, Exam &amp; Job Portal KB Spec Table</h2>
<p>Two hidden culprits blow past strict KB limits before quality even enters the equation: raw 12 MP camera dimensions (<code>4000×3000 px</code>) and embedded EXIF/ICC metadata (<code>15-60 KB</code> of invisible overhead). Pairing the right pixel budget with sRGB JPG (not lossless PNG) keeps portraits and signatures razor-sharp under the cap.</p>
<table>
<thead>
<tr>
<th align="left">Hard KB Cap</th>
<th align="left">Common Portals &amp; Use Cases</th>
<th align="left">Optimal Pixel Dimensions</th>
<th align="left">Recommended Format &amp; Quality</th>
<th align="left">Browser-Local Preset</th>
</tr>
</thead>
<tbody><tr>
<td align="left"><strong>20 KB</strong></td>
<td align="left">Exam signatures (SSC, UPSC, IBPS, GATE), legacy university avatars, lightweight email signatures</td>
<td align="left"><code>200×60 px</code> (signatures) to <code>300×300 px</code> (headshots)</td>
<td align="left">JPG (<code>#FFFFFF</code> fill); Q 60-80</td>
<td align="left"><a href="https://apps66.com/compress-image-to-20kb">Compress to 20 KB</a></td>
</tr>
<tr>
<td align="left"><strong>50 KB</strong></td>
<td align="left">Passport &amp; visa headshots (DS-160, Schengen, UK/Indian/Canadian portals), exam IDs, HR onboarding</td>
<td align="left"><code>350×450 px</code> to <code>600×600 px</code></td>
<td align="left">JPG (sRGB); Q 72-86</td>
<td align="left"><a href="https://apps66.com/compress-image-to-50kb">Compress to 50 KB</a></td>
</tr>
<tr>
<td align="left"><strong>100 KB</strong></td>
<td align="left">Job application portals, resume avatars, web registrations, Core Web Vitals blog thumbnails</td>
<td align="left"><code>800×800 px</code> to <code>1200×800 px</code></td>
<td align="left">JPG (forms) / WebP (web); Q 76-88</td>
<td align="left"><a href="https://apps66.com/compress-image-to-100kb">Compress to 100 KB</a></td>
</tr>
<tr>
<td align="left"><strong>200 KB</strong></td>
<td align="left">US Visa / DV Lottery (<code>240 KB</code> safety margin), passport scans, Shopify product cards, WordPress heroes</td>
<td align="left"><code>1200×900 px</code> to <code>1600×1200 px</code></td>
<td align="left">WebP (stores/web) / JPG (portals); Q 80-90</td>
<td align="left"><a href="https://apps66.com/compress-image-to-200kb">Compress to 200 KB</a></td>
</tr>
<tr>
<td align="left"><strong>500 KB</strong></td>
<td align="left">Photography portfolios, real-estate listings, full-bleed hero banners, email attachments, PDF embeds</td>
<td align="left"><code>1920×1080 px</code> to <code>2400×1600 px</code></td>
<td align="left">JPG (email/PDF) / WebP (galleries); Q 85-94</td>
<td align="left"><a href="https://apps66.com/compress-image-to-500kb">Compress to 500 KB</a></td>
</tr>
<tr>
<td align="left"><strong>Custom (5 KB-20 MB)</strong></td>
<td align="left">Odd portal limits (<code>235 KB</code> for <code>240 KB</code> visa caps, <code>300 KB</code> CMS caps, <code>1 MB</code> store limits)</td>
<td align="left">Matched to destination aspect ratio</td>
<td align="left">JPG or WebP binary-searched to exact target</td>
<td align="left"><a href="https://apps66.com/compress-to-size">Custom Exact-KB Tool</a></td>
</tr>
</tbody></table>
<h2>2. 2026 E-Commerce &amp; Social Marketplace Image Spec Table</h2>
<table>
<thead>
<tr>
<th align="left">Platform</th>
<th align="left">Primary Recommended Size</th>
<th align="left">Format &amp; Payload Target</th>
<th align="left">Key Secondary Presets &amp; Gotchas</th>
<th align="left">Browser-Local Preset</th>
</tr>
</thead>
<tbody><tr>
<td align="left"><strong>Shopify</strong></td>
<td align="left"><code>2048×2048 px</code> (1:1 square)</td>
<td align="left">WebP (or JPG) under <code>200-300 KB</code> (max <code>4472×4472</code> / <code>20 MB</code>)</td>
<td align="left">Collection <code>1024×1024</code>, Hero <code>1920×1080</code>, Portrait <code>1600×2000</code>, Blog <code>1200×630</code></td>
<td align="left"><a href="https://apps66.com/shopify-image-resizer">Shopify Resizer</a></td>
</tr>
<tr>
<td align="left"><strong>Etsy</strong></td>
<td align="left"><code>2000×2000 px</code> (1:1) or <code>2000×1500 px</code> (4:3)</td>
<td align="left">JPG (sRGB) under <code>1 MB</code>; min <code>2000 px</code> shortest side for zoom</td>
<td align="left">Big Banner <code>3360×840</code>, Mini Banner <code>1200×160</code>, Shop Icon <code>500×500</code></td>
<td align="left"><a href="https://apps66.com/etsy-image-resizer">Etsy Resizer</a></td>
</tr>
<tr>
<td align="left"><strong>Amazon</strong></td>
<td align="left"><code>1600×1600 px</code> to <code>2000×2000 px</code></td>
<td align="left">JPG (sRGB) on pure white <code>#FFFFFF</code>; <code>1600 px+</code> enables hover-zoom</td>
<td align="left">Range <code>500-10,000 px</code>; A+ Banner <code>970×600</code>, A+ Header <code>970×300</code>, Brand Store <code>3000×600</code></td>
<td align="left"><a href="https://apps66.com/amazon-product-image-resizer">Amazon Resizer</a></td>
</tr>
<tr>
<td align="left"><strong>Instagram</strong></td>
<td align="left"><code>1080×1350 px</code> (4:5 portrait)</td>
<td align="left">JPG at exact <code>1080 px</code> width (prevents server downscaling blur)</td>
<td align="left">Square <code>1080×1080</code>, Stories/Reels <code>1080×1920</code>, Landscape <code>1080×566</code>, Profile <code>320×320</code></td>
<td align="left"><a href="https://apps66.com/instagram-image-resizer">Instagram Resizer</a></td>
</tr>
<tr>
<td align="left"><strong>YouTube</strong></td>
<td align="left"><code>1280×720 px</code> (16:9 HD)</td>
<td align="left">JPG/PNG strictly under <code>2 MB</code> (JPG Q 88 is typically <code>120-300 KB</code>)</td>
<td align="left">Min <code>640 px</code> wide; Banner <code>2560×1440</code>, Avatar <code>800×800</code>, Shorts <code>1080×1920</code>; avoid bottom-right timestamp corner</td>
<td align="left"><a href="https://apps66.com/youtube-thumbnail-resizer">YouTube Resizer</a></td>
</tr>
<tr>
<td align="left"><strong>Custom Bulk</strong></td>
<td align="left">Any exact pixel width/height</td>
<td align="left">JPG, PNG, or WebP (Keep Ratio or Exact Crop)</td>
<td align="left">Uniform aspect ratios across product catalogs and blog galleries</td>
<td align="left"><a href="https://apps66.com/resize">Bulk Image Resizer</a></td>
</tr>
</tbody></table>
<h2>3. Quick GPU Power-of-Two Texture Note (WebGL &amp; 2D Games)</h2>
<p>If you build 2D games or WebGL apps instead of e-commerce catalogs, remember that <strong>disk KB != GPU VRAM</strong>. Decoded RGBA8 textures occupy <code>width × height × 4 bytes</code> in GPU memory regardless of PNG compression:</p>
<ul>
<li><code>2048×2048</code> PNG (<code>180 KB</code> on disk) = <strong>16 MB RGBA8 VRAM</strong></li>
<li><code>2050×2050</code> NPOT PNG = breaks mipmap generation or pads up to <code>4096×4096</code> (<strong>64 MB VRAM</strong>)</li>
</ul>
<p>You can check Power-of-Two alignment, RGBA8 VRAM cost, and alpha waste completely offline in our browser-local <a href="https://apps66.com/sprite-sheet-slicer">Sprite Sheet Slicer &amp; Texture Atlas Inspector</a>.</p>
<h2>4. The 7-Step Binary-Search HTML5 Canvas Algorithm</h2>
<p>Fixed quality presets ("compress to 70%") either waste sharpness on simple images or overshoot tight byte ceilings on complex portraits. A 7-step binary search over <code>HTMLCanvasElement.toBlob()</code> converges to <code>0.82 / 2^7 ≈ 0.0064</code> quality precision locally in the browser - automatically stripping EXIF bloat, flattening PNG transparency onto pure <code>#FFFFFF</code> for JPEG output, and only stepping down pixel dimensions when even <code>q = 0.12</code> exceeds the target ceiling:</p>
<pre><code class="language-javascript">async function compressToExactBytes(img, targetBytes, mime = 'image/jpeg') {
  const toBlob = (canvas, quality) =&gt;
    new Promise((resolve) =&gt; canvas.toBlob(resolve, mime, quality));

  let scale = 1.0;

  for (let pass = 0; pass &lt; 8; pass++) {
    const w = Math.max(32, Math.round(img.naturalWidth * scale));
    const h = Math.max(32, Math.round(img.naturalHeight * scale));

    const canvas = document.createElement('canvas');
    canvas.width = w;
    canvas.height = h;

    const ctx = canvas.getContext('2d');
    if (mime === 'image/jpeg') {
      // Prevents black halos on transparent PNG signatures &amp; Amazon cutouts
      ctx.fillStyle = '#ffffff';
      ctx.fillRect(0, 0, w, h);
    }
    ctx.imageSmoothingEnabled = true;
    ctx.imageSmoothingQuality = 'high';
    ctx.drawImage(img, 0, 0, w, h);

    // 1. Ceiling fast-path: keep near-lossless quality if already under target
    const high = await toBlob(canvas, 0.94);
    if (high &amp;&amp; high.size &lt;= targetBytes) {
      return { blob: high, width: w, height: h, quality: 0.94 };
    }

    // 2. Floor check + 7-step binary search over [0.12, 0.94]
    const low = await toBlob(canvas, 0.12);
    if (low &amp;&amp; low.size &lt;= targetBytes) {
      let lo = 0.12;
      let hi = 0.94;
      let best = low;
      let bestQ = lo;

      for (let i = 0; i &lt; 7; i++) {
        const mid = (lo + hi) / 2;
        const candidate = await toBlob(canvas, mid);
        if (candidate &amp;&amp; candidate.size &lt;= targetBytes) {
          best = candidate;
          bestQ = mid;
          lo = mid;
        } else {
          hi = mid;
        }
      }
      return { blob: best, width: w, height: h, quality: Number(bestQ.toFixed(3)) };
    }

    // 3. Area-proportional downscale when dimensions cannot fit at q = 0.12
    const ratio = low ? Math.sqrt(targetBytes / Math.max(1, low.size)) : 0.75;
    scale *= Math.max(0.45, Math.min(0.85, ratio * 0.92));
    if (w &lt;= 48 || h &lt;= 48) break;
  }

  return null;
}
</code></pre>
<h2>5. How to Verify 100% Browser-Local Zero-Upload Execution Offline</h2>
<p>Sensitive identity photos (passports, visas, signatures) and unreleased product catalogs should never touch a third-party server. You can verify client-side execution yourself in 20 seconds:</p>
<ol>
<li>Open <a href="https://apps66.com/compress-to-size">apps66.com/compress-to-size</a> (or any preset above) and wait for initial load.</li>
<li>Open DevTools (<code>F12</code> / <code>Cmd+Opt+I</code>) -&gt; <strong>Network</strong> tab -&gt; clear the log.</li>
<li>Set Network throttling to <strong>Offline</strong> (or switch off Wi-Fi).</li>
<li>Drop your image, run compression or resizing, and click <strong>Download</strong>.</li>
<li>Confirm <strong>zero <code>POST</code>/<code>PUT</code> upload requests</strong> fire and the result saves directly from a local <code>blob:</code> URL.</li>
</ol>
<h3>Free vs Pro Limits (Full Transparency)</h3>
<ul>
<li><strong>Free (no signup):</strong> Compress or resize up to <strong>5 images per batch</strong> locally with individual downloads and no input file-size upload cap.</li>
<li><strong>Apps66 Pro:</strong> Unlocks <strong>unlimited images per batch</strong> and <strong>1-click Download All as ZIP</strong> (plus 500 MB chunked server uploads across Apps66's server tools) via a one-time <strong>$4.99 7-Day Pass</strong> (no subscription) or <strong>$9/month</strong> / <strong>$79/year</strong> (both with a 7-day free trial).</li>
</ul>
<hr />
<p><em>Originally published at <a href="https://apps66.com/blog/strict-portal-marketplace-image-specs-2026">apps66.com/blog/strict-portal-marketplace-image-specs-2026</a>.</em></p>
]]></content:encoded></item><item><title><![CDATA[Game Audio Format & Magic-Byte Compatibility Matrix (2026): FSB5, WEM, BNK, BFSTM, HCA & XWB]]></title><description><![CDATA[Disclosure: I build and maintain Apps66 and the MIT-licensed game-audio-signatures CLI referenced below. Every local open-source workflow in this reference…]]></description><link>https://apps66.hashnode.dev/game-audio-format-magic-byte-compatibility-matrix-2026-fsb5-wem-bnk-bfstm-hca-xwb</link><guid isPermaLink="true">https://apps66.hashnode.dev/game-audio-format-magic-byte-compatibility-matrix-2026-fsb5-wem-bnk-bfstm-hca-xwb</guid><category><![CDATA[Game Development]]></category><category><![CDATA[audio]]></category><category><![CDATA[Open Source]]></category><category><![CDATA[cli]]></category><category><![CDATA[Web Development]]></category><dc:creator><![CDATA[Apps66]]></dc:creator><pubDate>Sat, 28 Nov 2026 14:26:37 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/69ecae5017d72fa4cd833b41/d6dd699d-5148-4743-9f34-305047878495.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Disclosure: I build and maintain <a href="https://apps66.com">Apps66</a> and the MIT-licensed <a href="https://github.com/PeakProductivity/game-audio-signatures"><code>game-audio-signatures</code></a> CLI referenced below. Every local open-source workflow in this reference works completely offline without using our hosted tools.</em></p>
<p>Generic media converters fail on game audio for one predictable reason: game sound assets are usually middleware banks or console stream containers, not consumer MP3 or WAV files. They pack custom headers, stripped Vorbis codebooks, sample-accurate loop offsets, or bit-masked CRIWARE encryption flags - and in the case of <code>.vpk</code>, two completely unrelated ecosystems share the exact same file extension.</p>
<p>Checking the first 4 to 16 magic bytes before running any decoder eliminates blind trial-and-error. Bookmark this 2026 compatibility matrix for FMOD, Audiokinetic Wwise, Nintendo, CRIWARE, Microsoft XACT, and PlayStation 2 / Valve Source <code>.vpk</code> assets.</p>
<h2>2026 Magic-Byte &amp; Codec Compatibility Matrix</h2>
<p>All signatures below are raw on-disk bytes starting at offset <code>0x00</code> unless noted. For Wwise <code>.wem</code>, the outer wrapper is standard RIFF WAVE, so you must inspect the 16-bit little-endian <code>wFormatTag</code> inside the <code>fmt </code> chunk (bytes <code>8..9</code> after the ASCII <code>fmt </code> marker).</p>
<table>
<thead>
<tr>
<th align="left">Format / Ext</th>
<th align="left">Engine / Middleware</th>
<th align="left">Magic Bytes (Offset <code>0x00</code>)</th>
<th align="left">Inner Codecs &amp; Variants</th>
<th align="left">Container &amp; Loop Behavior</th>
<th align="left">Primary Decoder</th>
</tr>
</thead>
<tbody><tr>
<td align="left"><code>.fsb</code> (FSB5)</td>
<td align="left">FMOD Studio / Core</td>
<td align="left"><code>46 53 42 35</code> (<code>FSB5</code>)</td>
<td align="left">Vorbis (mode 15), FADPCM (mode 14), IMA ADPCM, MP3, PCM16, XMA2, AT9, Opus</td>
<td align="left">Multi-subsong bank (<code>1..N</code>); per-sample loop offsets</td>
<td align="left"><code>vgmstream-cli</code></td>
</tr>
<tr>
<td align="left"><code>.fsb</code> (FSB4/3)</td>
<td align="left">FMOD Ex (Legacy)</td>
<td align="left"><code>46 53 42 34</code> (<code>FSB4</code>) / <code>46 53 42 33</code> (<code>FSB3</code>)</td>
<td align="left">MP3, IMA ADPCM, GCADPCM, XMA, PCM8/16</td>
<td align="left">Multi-subsong bank with legacy sample headers</td>
<td align="left"><code>vgmstream-cli</code></td>
</tr>
<tr>
<td align="left"><code>.wem</code></td>
<td align="left">Audiokinetic Wwise</td>
<td align="left"><code>52 49 46 46</code> (<code>RIFF</code>) + <code>WAVE</code> at <code>0x08</code>; <code>fmt </code> tags <code>0xFFFF</code>, <code>0xAAC0</code>, <code>0x3039</code>-<code>0x3041</code>, <code>0x8311</code></td>
<td align="left"><code>0xFFFF</code> Wwise Vorbis (packed codebooks), <code>0xAAC0</code> AAC, <code>0x3039</code>-<code>0x3041</code> Opus, <code>0x8311</code> PTADPCM, <code>0xFFFE</code> PCM/XMA2</td>
<td align="left">Single stream; loop markers in <code>smpl</code> chunk</td>
<td align="left"><code>vgmstream-cli</code></td>
</tr>
<tr>
<td align="left"><code>.bnk</code></td>
<td align="left">Audiokinetic Wwise</td>
<td align="left"><code>42 4B 48 44</code> (<code>BKHD</code>)</td>
<td align="left">Embedded <code>.wem</code> streams in <code>DIDX</code> + <code>DATA</code> chunks (or event-only <code>HIRC</code> metadata)</td>
<td align="left">Multi-subsong SoundBank; may reference external <code>.wem</code></td>
<td align="left"><code>vgmstream-cli</code></td>
</tr>
<tr>
<td align="left"><code>.pck</code></td>
<td align="left">Audiokinetic Wwise</td>
<td align="left"><code>41 4B 50 4B</code> (<code>AKPK</code>)</td>
<td align="left">Indexed package bundling <code>.bnk</code> banks and <code>.wem</code> streams by language/ID</td>
<td align="left">Multi-subsong package archive</td>
<td align="left"><code>vgmstream-cli</code></td>
</tr>
<tr>
<td align="left"><code>.bfstm</code></td>
<td align="left">Nintendo (Switch / Wii U)</td>
<td align="left"><code>46 53 54 4D</code> (<code>FSTM</code>); BOM <code>FF FE</code> (Switch LE) / <code>FE FF</code> (Wii U BE) at <code>0x04</code></td>
<td align="left">Nintendo DSP ADPCM, IMA ADPCM, PCM8/16</td>
<td align="left">Single multi-channel stream; exact loop points in <code>INFO</code></td>
<td align="left"><code>vgmstream-cli</code> / <code>VGAudioCli</code></td>
</tr>
<tr>
<td align="left"><code>.bcstm</code></td>
<td align="left">Nintendo (3DS)</td>
<td align="left"><code>43 53 54 4D</code> (<code>CSTM</code>); BOM <code>FF FE</code> (LE) at <code>0x04</code></td>
<td align="left">Nintendo DSP ADPCM, IMA ADPCM, PCM8/16</td>
<td align="left">Single stream; exact loop points in <code>INFO</code></td>
<td align="left"><code>vgmstream-cli</code> / <code>VGAudioCli</code></td>
</tr>
<tr>
<td align="left"><code>.brstm</code></td>
<td align="left">Nintendo (Wii / GC)</td>
<td align="left"><code>52 53 54 4D</code> (<code>RSTM</code>); BOM <code>FE FF</code> (BE) at <code>0x04</code></td>
<td align="left">Nintendo DSP ADPCM, PCM8/16</td>
<td align="left">Single multi-channel stream; loops in <code>HEAD</code></td>
<td align="left"><code>vgmstream-cli</code> / <code>VGAudioCli</code></td>
</tr>
<tr>
<td align="left"><code>.dsp</code></td>
<td align="left">Nintendo (GC / Wii)</td>
<td align="left">96-byte structured header (no FourCC; format <code>0x0000</code> at <code>0x0E</code>, 16 ADPCM coeffs at <code>0x1C</code>-<code>0x3B</code>)</td>
<td align="left">Mono 4-bit GC/Wii DSP ADPCM (stereo pairs often <code>_L</code>/<code>_R</code> or <code>.idsp</code>)</td>
<td align="left">Single mono stream; loop flag at <code>0x0C</code></td>
<td align="left"><code>vgmstream-cli</code> / <code>VGAudioCli</code></td>
</tr>
<tr>
<td align="left"><code>.hca</code></td>
<td align="left">CRIWARE (Atom / ADX2)</td>
<td align="left"><code>48 43 41 00</code> (<code>HCA\0</code> plain) or <code>C8 C3 C1 00</code> (<code>XOR 0x80</code> masked)</td>
<td align="left">CRI High Compression Audio (MDCT); cipher type in <code>ciph</code> chunk</td>
<td align="left">Single stream; exact <code>loop</code> chunk (encrypted needs key)</td>
<td align="left"><code>vgmstream-cli</code> / <code>VGAudioCli</code></td>
</tr>
<tr>
<td align="left"><code>.awb</code></td>
<td align="left">CRIWARE (Atom Wave Bank)</td>
<td align="left"><code>41 46 53 32</code> (<code>AFS2</code>)</td>
<td align="left">Indexed bank of <code>.hca</code>, <code>.adx</code>, or console streams</td>
<td align="left">Multi-subsong bank; pair with <code>.acb</code> for cue names</td>
<td align="left"><code>vgmstream-cli</code></td>
</tr>
<tr>
<td align="left"><code>.acb</code></td>
<td align="left">CRIWARE (Atom Cue Sheet)</td>
<td align="left"><code>40 55 54 46</code> (<code>@UTF</code>)</td>
<td align="left">UTF metadata table with optional embedded <code>AwbFile</code> or external <code>.awb</code> link</td>
<td align="left">Cue wrapper exposing named subsongs</td>
<td align="left"><code>vgmstream-cli</code></td>
</tr>
<tr>
<td align="left"><code>.adx</code></td>
<td align="left">CRIWARE (ADX)</td>
<td align="left"><code>80 00</code> at <code>0x00</code> (BE header offset at <code>0x02</code>; <code>(c)CRI</code> before data)</td>
<td align="left">CRI ADX 4-bit ADPCM (v3/v4/v5; optional XOR encryption)</td>
<td align="left">Single stream with header loop markers</td>
<td align="left"><code>vgmstream-cli</code></td>
</tr>
<tr>
<td align="left"><code>.xwb</code></td>
<td align="left">Microsoft XACT / XNA</td>
<td align="left"><code>57 42 4E 44</code> (<code>WBND</code> LE) or <code>44 4E 42 57</code> (<code>DNBW</code> BE)</td>
<td align="left">PCM, MS-ADPCM, XMA/XMA2, xWMA</td>
<td align="left">Multi-subsong wave bank; pair with <code>.xsb</code> (<code>SDBK</code>)</td>
<td align="left"><code>vgmstream-cli</code></td>
</tr>
<tr>
<td align="left"><code>.vpk</code> (PS2)</td>
<td align="left">Sony PlayStation 2</td>
<td align="left"><code>56 50 4B 20</code> (<code>VPK </code> with trailing space <code>0x20</code>)</td>
<td align="left">Sony PS2 SPU2 ADPCM interleaved stream</td>
<td align="left">Single audio stream with loop metadata</td>
<td align="left"><code>vgmstream-cli</code></td>
</tr>
<tr>
<td align="left"><code>.vpk</code> (Valve)</td>
<td align="left">Valve Source / Source 2</td>
<td align="left"><code>34 12 AA 55</code> (LE uint32 <code>0x55AA1234</code>)</td>
<td align="left"><strong>Not audio</strong> - virtual filesystem archive containing <code>.wav</code>, <code>.mp3</code>, textures, maps</td>
<td align="left">Directory pack (<code>*_dir.vpk</code> + data packs); unpack first</td>
<td align="left"><code>VPKEdit</code> / <code>GCFScape</code></td>
</tr>
</tbody></table>
<h2>The <code>.vpk</code> Trap: Sony PS2 Audio vs Valve Source Archives</h2>
<p>One of the highest-frequency support errors in game audio tooling is dropping a Valve Source <code>.vpk</code> (Half-Life 2, CS2, Portal 2, Team Fortress 2) straight into an audio decoder.</p>
<ul>
<li><strong><code>56 50 4B 20</code> (<code>VPK </code>):</strong> PlayStation 2 SPU2 ADPCM audio stream -&gt; decode directly with <code>vgmstream-cli</code>.</li>
<li><strong><code>34 12 AA 55</code> (<code>0x55AA1234</code>):</strong> Valve Source filesystem package -&gt; unpack <code>*_dir.vpk</code> first with <strong>VPKEdit</strong> (cross-platform) or <strong>GCFScape</strong> (Windows), then decode or convert the extracted <code>.wav</code> / <code>.mp3</code> files.</li>
</ul>
<h2>Local Open-Source CLI Workflows First</h2>
<p>For full game installs, multi-gigabyte banks, or CI pipelines, always start with local open-source CLI tools:</p>
<h3>1. Classify Magic Bytes Before Decoding</h3>
<p>Inspect the leading header bytes directly with <code>xxd</code>, or batch-classify an extracted folder using our zero-dependency MIT Python CLI <a href="https://github.com/PeakProductivity/game-audio-signatures"><code>game-audio-signatures</code></a>:</p>
<pre><code class="language-bash"># Quick raw hex peek at the first 48 bytes
xxd -l 48 -g 1 mystery_asset.vpk

# Batch-classify magic bytes &amp; Wwise wFormatTag codecs (MIT, Python 3.9+, zero deps)
git clone https://github.com/PeakProductivity/game-audio-signatures.git
python game-audio-signatures/python/game_audio_signatures.py ./game_audio_dump --json
</code></pre>
<h3>2. Inspect Metadata &amp; Extract Multi-Track Banks with <code>vgmstream-cli</code></h3>
<p>Always run <code>-m</code> first so you know the exact codec, sample rate, loop sample points, and subsong count before decoding:</p>
<pre><code class="language-bash"># Inspect header metadata, codec, sample rate, and loop start/end samples
vgmstream-cli -m bgm_boss.bfstm

# Sweep metadata across every subsong in an FSB5, BNK, AWB, or XWB bank
vgmstream-cli -m -S 0 voice_bank.fsb

# Extract every subsong into uniquely named WAV files (?n = stream name, ?s = subsong index)
vgmstream-cli -S 0 -o "?n_?s.wav" soundbank.fsb

# Render a looping track with 2 full loops and a 10-second fade-out
vgmstream-cli -l 2.0 -f 10.0 -o bgm_boss_looped.wav bgm_boss.bfstm

# Ignore loops for a clean one-shot WAV render (ideal for DAW editing)
vgmstream-cli -i -o bgm_boss_oneshot.wav bgm_boss.bfstm

# Pipe PCM straight to FFmpeg without writing temporary WAV files
vgmstream-cli -p -s 1 soundbank.bnk | ffmpeg -i pipe:0 -c:a libmp3lame -b:a 192k track_01.mp3
</code></pre>
<h3>3. Desktop Auditioning &amp; Console Re-Encoding</h3>
<ul>
<li><strong>Windows Auditioning:</strong> <strong>foobar2000 + <code>foo_input_vgmstream</code></strong> lets you drag entire <code>.fsb</code>, <code>.bnk</code>, <code>.wem</code>, <code>.bfstm</code>, and <code>.awb</code> directories into a playlist, preview seamless loop points live, and batch-export to FLAC or Ogg Vorbis.</li>
<li><strong>Modding / Re-Encoding:</strong> Because <code>vgmstream</code> is decode-only, use <strong>VGAudioCli</strong> when you need to encode edited WAV files back into looping Nintendo <code>.bfstm</code>, <code>.bcstm</code>, <code>.brstm</code>, <code>.dsp</code>, or CRIWARE <code>.hca</code>:</li>
</ul>
<pre><code class="language-bash">VGAudioCli -i custom_theme.wav -o custom_theme.bfstm -l 44100-2646000
</code></pre>
<h2>Quick Browser Inspection &amp; Decoding (When You Don't Want to Compile Binaries)</h2>
<p>If you are triaging a single bank on a locked-down machine or mobile device, we host a real server-side <strong><code>vgmstream-cli</code> + FFmpeg</strong> workbench on Apps66 with clear architecture and limit boundaries:</p>
<ul>
<li><strong>Free Header &amp; Loop Inspector (No Quota):</strong> <a href="https://apps66.com/game-audio-converter#inspect">Apps66 Game Audio Header &amp; Loop Inspector</a> runs server-side <code>vgmstream-cli -m</code> (and <code>-m -S 0</code> up to 64 subsongs), immediately unlinks the temp file in a <code>finally</code> block after parsing, catches Valve Source <code>34 12 AA 55</code> <code>.vpk</code> archives automatically, and <strong>never counts against your daily conversion quota</strong> (up to 50 MB free / 500 MB Pro).</li>
<li><strong>Online Decoding:</strong> <a href="https://apps66.com/game-audio-converter">Apps66 Game Audio Converter</a> decodes FSB5, WEM, BNK, BFSTM/BCSTM/BRSTM/DSP, HCA/ADX/AWB, XWB, and PS2 VPK to WAV, MP3, OGG, FLAC, or M4A with in-browser preview and automatic multi-track ZIP extraction (up to 64 tracks per bank). Free tier covers up to <strong>50 MB/file</strong> and <strong>3 conversions per 24 hours</strong> (no signup). Apps66 Pro unlocks <strong>500 MB chunked uploads</strong>, unlimited conversions, and multi-file session ZIP via a one-time <strong>$4.99 7-Day Pass</strong> (no subscription) or <strong>$9/mo</strong> / <strong>$79/yr</strong> (7-day free trial).</li>
<li><strong>2D Asset Companion (100% Browser-Local):</strong> Working with 2D sprite atlases alongside sound banks? Our <a href="https://apps66.com/sprite-sheet-slicer">Sprite Sheet Slicer &amp; Texture Atlas Inspector</a> runs 100% client-side with zero uploads to check GPU Power-of-Two dimensions, RGBA8 VRAM usage, and 1-60 FPS animation loops.</li>
</ul>
<h2>Common Edge Cases to Watch Out For</h2>
<ol>
<li><strong>Masked CRIWARE <code>C8 C3 C1 00</code> headers:</strong> Indicates <code>XOR 0x80</code> header masking + cipher-type-56 encryption. You must decode locally with <code>vgmstream-cli</code> and the game's matching 64-bit <code>.hcakey</code> file.</li>
<li><strong>Metadata-only Wwise <code>.bnk</code> files:</strong> If a small <code>BKHD</code> file reports zero streams, it holds <code>HIRC</code> event logic only - look for sibling <code>.wem</code> files or an <code>AKPK</code> <code>.pck</code> archive in the same game folder.</li>
<li><strong>Numeric-only subsong names:</strong> Keep companion <code>.acb</code> (for <code>.awb</code>) or <code>.xsb</code> (for <code>.xwb</code>) files in the exact same local directory so <code>vgmstream-cli</code> resolves real cue names instead of numeric indices.</li>
</ol>
<hr />
<p><em>Originally published at <a href="https://apps66.com/blog/game-audio-format-compatibility-matrix-2026">apps66.com/blog/game-audio-format-compatibility-matrix-2026</a>.</em></p>
]]></content:encoded></item></channel></rss>