Skip to content

Instantly share code, notes, and snippets.

@iamjohnmills
Last active June 6, 2026 17:46
Show Gist options
  • Select an option

  • Save iamjohnmills/1cbb6a05d4e487bc9e1c427c8d0bee76 to your computer and use it in GitHub Desktop.

Select an option

Save iamjohnmills/1cbb6a05d4e487bc9e1c427c8d0bee76 to your computer and use it in GitHub Desktop.
Format a USB Flash Drive as FAT32 on MacOS

The DiskUtility app for Mac does not support FAT32 within the GUI. You can, however, format a USB flash drive in MacOS from the terminal.

✓ Option 1: Use newfs_msdos

#Insert the drive -> open Terminal -> List your disks
diskutil list

# Identify your USB (e.g., /dev/disk2) -> Unmount the whole disk
diskutil unmountDisk /dev/disk2

# Create a new FAT32 filesystem 
sudo newfs_msdos -F 32 -v MYUSBNAME /dev/disk2s1

# Eject it when done:
diskutil eject /dev/disk2

✓ Option 2: Use diskutil

#Insert the drive -> open Terminal -> List your disks
diskutil list

# Format the drive (ensure the name is correct)
diskutil eraseDisk FAT32 MYUSBNAME MBR /dev/disk2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment