How to Extract Files from a QCOW2 (QEMU) Disk Image on macOS
QCOW2 (QEMU Copy-On-Write version 2) is the disk image format used by QEMU and KVM virtualization. It supports snapshots, compression, and encryption. If you're working with Linux virtual machines or cloud images on your Mac, you may encounter QCOW2 files.
The default way to open QCOW2 files on macOS
Tool: qemu-img via Homebrew (third-party)
$ qemu-img convert -f qcow2 -O raw disk.qcow2 disk.rawSteps
- Install QEMU via Homebrew: brew install qemu
- Convert to raw: qemu-img convert -f qcow2 -O raw disk.qcow2 disk.raw
- Mount the raw image: hdiutil attach disk.raw
- Alternatively, use MacPacker to browse QCOW2 contents directly.
Extract individual files from a QCOW2 archive
The default macOS tools extract everything — there's no way to pick individual files. MacPacker lets you browse QCOW2 archive contents, preview files, and extract only what you need — without unpacking the entire archive.
A better way: open QCOW2 files with MacPacker
MacPacker is a free, open-source macOS archive manager that supports QCOW2 and 30+ other formats. Unlike the default tools, MacPacker lets you:
- Browse archive contents like a folder
- Preview files with Quick Look without extracting
- Extract individual files via drag and drop
- Navigate nested archives (archives within archives)
- Enjoy a native SwiftUI interface that feels right at home on macOS
Get MacPacker
v0.15.1 · macOS 14+$ brew install --cask macpackerApp Store updates may lag a few days behind direct downloads due to Apple review.
Frequently asked questions
How do I open a QCOW2 file on Mac?
Use MacPacker to browse QCOW2 filesystem contents directly. Alternatively, install QEMU (brew install qemu) and convert to raw: qemu-img convert -f qcow2 -O raw disk.qcow2 disk.raw, then mount with hdiutil.
Related formats
VMDK is VMware's virtual disk format. Contains the filesystem of a virtual machine.
VHD is Microsoft's virtual disk format used by Hyper-V and Azure. Contains a complete filesystem image.
VDI is VirtualBox's native virtual disk format. Contains the filesystem of a VirtualBox virtual machine.