Format:XCI
| Vendor | Nintendo |
|---|---|
| Magic | 48 45 41 44 ("HEAD") at offset 0x100 |
| Extensions | .xci |
| Endianness | little |
| On this wiki | Facts · Code · Notes · Topics |
Nintendo Switch game card image (.xci): a 0x200-byte card header whose RSA signature fills 0x100 bytes and whose magic "HEAD" sits at 0x100, followed by the card's root HFS0 partition holding the update, normal, secure and logo partitions.
Overview
An XCI is a dump of a Switch game card. The file begins with a 0x200-byte card header; its first 0x100 bytes are an RSA signature, so the magic HEAD (0x44414548) is found at offset 0x100. The header gives the offset and header size of the root HFS0 partition and the SHA-256 of that HFS0 header. Unverified: some dumps carry extra data before the card header; hactool reads the header at the start of the file and no source here describes such a prefix.
Card header
See Fact:XCI/struct/Card header. The last 0x70 bytes of the 0x200-byte header are an encrypted block (gamecard info: firmware version, access control, read/write wait times, CUP version and title id, compatibility type); reading it needs gamecard keys, which this wiki does not document. The fields before it are plain.
Cartridge size codes: Fact:XCI/enum/Cartridge size code.
Partitions
The root HFS0 has at most four entries, each itself an HFS0 named update, normal, secure or logo (any other name is rejected by hactool). Unverified: from general knowledge, secure holds the game's NCAs, update a system update, normal the part readable without the secure area and logo the boot logo files; hactool only names the partitions and does not state their roles.
Related
Format:PFS0 and HFS0, Format:NCA, Platform:Nintendo Switch.
Code & repositories
See below.
- https://github.com/SciresM/hactool @
1d64a83450e025622f3468c28fc4164dad2c5ef6· license: ISC
hactool (ISC): xci.h and xci.c define the card header and partition handling.
Tested on: source read, not run · checked 2026-10-19; last activity 2023-12-04; Note: the latest release ships binaries; the wiki links only the source, never the binaries