exFAT is Microsoft’s FAT successor for flash media, with 64-bit file sizes and an allocation bitmap. It is the default format for SDXC cards and many USB drives and external SSDs, and is read by Windows, macOS, Linux, cameras and consoles. It has no journal, so unclean removal commonly leaves damaged volumes.
Overview
exFAT keeps FAT’s cluster-chain idea but adds an allocation bitmap, an up-case table, 64-bit file sizes and a directory made of typed 32-byte entries grouped into entry sets (file, stream extension, name). Files can be flagged contiguous so the FAT is not consulted. Boot regions have a checksum sector.
History
Introduced in 2006 with Windows CE 6.0 and added to desktop Windows with Vista SP1 / XP SP2 updates.
Adopted as the SDXC card file system by the SD Association.
Microsoft published the specification in 2019 and a Linux in-kernel driver was merged in 5.7 (2020).
Structures
Offsets are in bytes from the start of the structure named in each heading. Field names are descriptive and are not an official specification. Fixed-width integers are shown as u/i (unsigned/signed) followed by bit width and byte order.
Ex Fat File System
Offset
Size
Type
Field
Notes
position + 1
1
u8
Characters
position + 1
1
u8
–
position + 20
4
u32 LE
Cluster
position + 24
8
u64 LE
Length
Parse Entry Set
Offset
Size
Type
Field
Notes
position + 1
1
u8
Secondary Count
position + 2
2
u16 LE
Stored
stream + 3
1
u8
Name Length
Parse Entry Set
Offset
Size
Type
Field
Notes
0x4
2
u16 LE
–
0x8
4
u32 LE
–
0xC
4
u32 LE
–
0x10
4
u32 LE
–
0x14
1
u8
–
0x15
1
u8
–
0x16
1
u8
–
0x17
1
u8
–
0x18
1
u8
–
Parse Entry Set
Offset
Size
Type
Field
Notes
0x1
1
u8
–
0x8
8
u64 LE
–
0x14
4
u32 LE
–
0x18
8
u64 LE
–
Has Fat Signature
Offset
Size
Type
Field
Notes
0x0
4
u32 LE
–
0x4
4
u32 LE
–
Try Parse
Offset
Size
Type
Field
Notes
0x3
8
bytes
–
0xB
53
bytes
–
0x48
8
u64 LE
Volume Length
0x50
4
u32 LE
Fat Offset
0x54
4
u32 LE
Fat Length
0x58
4
u32 LE
Heap Offset
0x5C
4
u32 LE
Cluster Count
0x60
4
u32 LE
Root
0x64
4
u32 LE
Serial Number
0x68
2
u16 LE
Revision
0x6A
2
u16 LE
Volume Flags
0x6C
1
u8
Bytes Shift
0x6D
1
u8
Cluster Shift
0x6E
1
u8
Fats
0x70
1
u8
Percent In Use
Other fields read
Read in
Offset
Size
Type
Field
Notes
Follow Fat
0x0
4
u32 LE
Next
Constants
Ex Fat File System
Name
Value
Type
Notes
RootId
1
ulong
Ex Fat Boot Sector
Name
Value
Type
Notes
BackupBootSector
12
int
Ex Fat Const
Name
Value
Type
Notes
EntrySize
32
int
EndOfDirectory
0x00
byte
AllocationBitmap
0x81
byte
UpcaseTable
0x82
byte
VolumeLabel
0x83
byte
File
0x85
byte
StreamExtension
0xC0
byte
FileName
0xC1
byte
InUseBit
0x80
byte
AttrReadOnly
0x01
ushort
AttrHidden
0x02
ushort
AttrSystem
0x04
ushort
AttrDirectory
0x10
ushort
AttrArchive
0x20
ushort
FlagNoFatChain
0x02
byte
FatBad
0xFFFFFFF7
uint
FatEnd
0xFFFFFFFF
uint
NameCharsPerEntry
15
int
Implementation limits
Class
Name
Value
Notes
Ex Fat File System
MaxDirectoryBytes
256L * 1024 * 1024
Ex Fat File System
MaxBitmapBytes
512L * 1024 * 1024
Signatures and magic strings referenced
Text
Where checked
EXFAT
Try Parse
Structures and constants were extracted from the implementation. Prose sections are a summary from public sources; verify details before relying on them.