BIOS CAP to BIN Converter

Fast, secure, client-side UEFI capsule header stripper. Convert ASUS and AMI .CAP BIOS files to pure .BIN format for direct hardware SPI flashing.

Drag & Drop your BIOS .CAP file here

Supports .CAP, .BIN, .ROM (Max 64MB). 100% processed locally in browser.

5.0/ 5
2 ratings
Rate this tool
Click stars to rate

Comments

U

Convert ASUS BIOS .CAP to .BIN for Hardware SPI Flashing

Flashing a corrupted motherboard BIOS using an external hardware programmer like the CH341A often presents an immediate stumbling block: official firmware updates downloaded from motherboard vendor support pages are distributed with a .CAP extension, whereas hardware SPI flasher software requires a raw, unencapsulated .BIN or .ROM image. Attempting to directly write an ASUS .CAP file into an on-board SPI flash chip invariably bricks the motherboard or leaves it in a non-bootable loop.

Our dedicated online converter eliminates the need to install heavy desktop utilities or manually edit hexadecimal sectors. Simply drag and drop your official vendor capsule file above to immediately extract the pure binary ROM directly within your browser session.

Firmware Format and Flashing Method Decision Matrix

Choosing the right file format and update avenue depends directly on your motherboard's current operational state and the tools at your disposal:

Firmware FormatFile Header StructurePrimary Ingestion PathRisk ProfileTarget Hardware / Scenario
Vendor .CAP CapsuleIncludes 2,048-Byte AMI Aptio Security Capsule HeaderASUS EZ Flash 3 (UEFI BIOS setup) or Rear USB BIOS Flashback ButtonSafe (Software verified before flash)Functional PC capable of entering POST or motherboards equipped with dedicated Flashback IC logic
Raw Binary (.BIN / .ROM)Pure 1:1 binary memory map matching SPI flash capacityHardware EEPROM programmers (CH341A, TL866II Plus, DediProg)Medium to High (Bypasses safety guards)Hardware brick recovery, corrupted boot blocks, failed OTA updates, or deep firmware modding
Split Multi-ROM DumpDivided across multiple SPI chips (dual-BIOS or Intel ME split)Multi-clip desoldering or individual SPI socket read/writeAdvanced (Requires descriptor validation)Enterprise server boards or high-end desktop platforms utilizing dual 32MB chips

Why Flashing a Raw .CAP File Directly Causes Motherboard Bricks

The underlying obstacle is rooted in the structural definition of the Unified Extensible Firmware Interface (UEFI) Platform Initialization Specification. Motherboard manufacturers, most notably ASUS and ASRock utilizing AMI Aptio firmware bases, prepend a proprietary 2,048-byte (0x800 in hexadecimal) security wrapper to every publicly distributed BIOS update.

This Capsule header contains cryptographic authentication signatures, digital certificates, and routing metadata designed to ensure that in-OS updater software (such as ASUS AI Suite) or UEFI setup utilities (such as EZ Flash 3) can authenticate the update's integrity before initiating an erase cycle.

However, a hardware SPI programmer such as a CH341A, Raspberry Pi SPI interface, or dedicated EEPROM burn station possesses no awareness of UEFI file structures. It functions as an unmanaged physical bitstream transcriber, writing byte index 0 directly to sector 0 of the physical memory die.

When a user writes an unstripped .CAP file to an SPI chip:

  1. Physical Address Misalignment: Every functional block in the BIOS—including the Intel Flash Descriptor (IFD), the Intel Management Engine (ME) region, the Gigabit Ethernet (GbE) region, and the primary BIOS Firmware Volume—is shifted downstream by exactly 2,048 bytes.
  2. Flash Capacity Overflow: A standard 256 Mbit SPI flash chip (such as the Winbond W25Q256JVEQ) holds exactly 33,554,432 bytes. Because the input .CAP file measures 33,556,480 bytes, programmer software either aborts due to file size mismatch or truncates the final 2,048 bytes of the image during write operations.
  3. Loss of CPU Reset Vector: In x86 architecture, the microprocessor initializes execution at the reset vector located precisely 16 bytes below the very top of memory (physical address 0xFFFFFFF0). When the image is offset and truncated, the reset vector is replaced with shifted garbage data or unwritten trailing 0xFF bytes, causing the CPU to enter an immediate unrecoverable halt state upon power delivery.

Step-by-Step CH341A Programmer Hardware Setup and Rescue Guide

Recovering an unresponsive motherboard with a converted .BIN file requires careful hardware preparation to avoid electrical damage to on-board low-voltage components.

1. Verification of Operating Voltage

The original black CH341A USB programmer PCB notoriously routes 5V to the data transmission pins (VCC, CS, MISO, MOSI, CLK) by default, despite having a 3.3V power jumper. Most modern motherboards manufactured after 2017 utilize 3.3V or 1.8V low-power SPI flash chips (such as Winbond, Macronix, or GigaDevice). Ensure your programmer has been hardware-modified to output a safe 3.3V, or utilize a 1.8V level shifter adapter when servicing ultra-low-voltage laptop motherboards.

2. Physical SOP8 Clip Attachment

Locate the 8-pin SPI BIOS chip on the motherboard, commonly labeled as BIOS, SPI_FLASH, or U_BIOS. Align pin 1 of the SOP8 testing clip (indicated by the red conductor wire) with the recessed dot or beveled notch on the plastic chip casing. Ensure the desktop power supply unit (PSU) is disconnected from the AC wall outlet to prevent cross-power contention between the motherboard VRM and the programmer's USB 5V rail.

3. Read and Full Backup Operation

Before performing any erase or write operation, execute at least two separate read passes in your flasher utility (such as NeoProgrammer, AsProgrammer, or Flashrom). Save the dumped contents as original_backup.bin and compare their cryptographic SHA-256 hashes to guarantee contact stability.

4. Flashing the Converted Binary

Once the backup is secured, load your converted .bin file into the programmer software, select the matching chip part number (e.g., W25Q128FV or W25Q256JV), and execute the sequential workflow: Erase →\to Blank Check →\to Program →\to Verify. The verification pass ensures every written byte on the silicon matches the local .bin file.

Real-World Case Study: Recovering an ASUS ROG Strix Motherboard

To understand the byte-level precision involved in the conversion, consider a real-world scenario involving an ASUS ROG STRIX B760-G GAMING WIFI motherboard suffering from a failed power-interrupted BIOS update.

Original Vendor File Profile

The user retrieves the latest recovery archive from the official ASUS support portal. The extracted archive yields a file named ROG-STRIX-B760-G-GAMING-WIFI-ASUS-1645.CAP.

  • Observed File Size: 33,556,480 bytes (32.00195 MB)
  • Target SPI Flash Chip: Winbond 25Q256JVEQ (Capacity: 32MB / 256 Mbit)
  • Target Physical Capacity: Exactly 33,554,432 bytes

When attempting to load this .CAP file into NeoProgrammer 2.2.0.10, the software issues a blocking modal error: File size larger than selected IC capacity! [Excess: 2048 bytes].

Processing Through the Converter

Passing the file through our client-side converter executes an instant byte slice at offset 0x800:

Output Size=33,556,480−2,048=33,554,432 bytes\text{Output Size} = 33,556,480 - 2,048 = 33,554,432 \text{ bytes}

The resulting output file, ROG-STRIX-B760-G-GAMING-WIFI-ASUS-1645.bin, measures exactly 33,554,432 bytes (32.00000 MB). Loading this file into the flasher software clears the error state, enabling a smooth, unblocked write and verify sequence that returns the motherboard to active boot status.

[Advanced Technical Deep-Dive] UEFI Capsule Specifications and Header Detection

For embedded engineers and firmware developers seeking to understand the structural mechanics behind the transition, the 2,048-byte header is governed by the standard UEFI Firmware Volume architecture.

Firmware Volume Header Structure

A valid raw UEFI BIOS payload begins with a structured container termed the Firmware Volume (FV). The standard EFI_FIRMWARE_VOLUME_HEADER definition establishes specific offsets across the data stream:

Byte Offset (Hex)Field NameData TypeExpected Content / Architectural Role
0x00 - 0x0FZeroVector16-Byte ArrayReserved zero vector padding
0x10 - 0x1FFileSystemGuid16-Byte GUIDFirmware Volume File System Identifier
0x20 - 0x27FvLength64-bit Unsigned IntTotal physical length of the current firmware volume container
0x28 - 0x2BSignature32-bit SignatureASCII literal string _FVH (0x4856465F in little-endian order)
0x2C - 0x2FAttributes32-bit BitmaskVolume read/write and lock state attributes
0x30 - 0x31HeaderLength16-bit Unsigned IntTotal length of the volume header structure (typically 0x0048)

In an official ASUS .CAP archive, the EFI_FIRMWARE_VOLUME_HEADER or the initial Intel Flash Descriptor does not reside at absolute byte index 0x00. Instead, the file begins with the Aptio Capsule preamble. By advancing exactly 0x800 (2,048) bytes into the file stream:

Firmware Signature Offset=Capsule Base+0x28=0x800+0x28=0x828\text{Firmware Signature Offset} = \text{Capsule Base} + 0x28 = 0x800 + 0x28 = 0x828

Inspecting offset 0x828 reveals the hexadecimal sequence:

hex
5F 46 56 48

This sequence directly corresponds to the ASCII identifier _FVH. Our browser-based diagnostic engine programmatically validates these exact bytes alongside the physical capacity calculation to guarantee that the output binary maintains complete architectural integrity prior to any hardware programming intervention.

Frequently Asked Questions (FAQ)