VHD RAW
File conversion

Convert VHD to RAW

QUICK ANSWER
Is it possible to convert VHD to RAW?
Yes - VHD converts to RAW.

Run qemu-img convert -O raw in.vhd out.img. The output is a flat binary image with no VHD wrapper. Note that a dynamic VHD that occupies 10 GB on disk may produce a 100 GB raw file equal to the full virtual disk size.

Also to RAW: FFF · VDI · VHDX

On this page

Tested on macOS, Windows & Linux
Last verified Oct 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

Why convert VHD to RAW?

A VHD wraps disk sectors in a container with metadata and a 512-byte 'conectix' footer. A raw image strips this wrapper, leaving only flat sector data. Raw images are the lowest common denominator for disk tooling - QEMU boots them directly, dd writes them to physical drives, and forensic suites such as Autopsy and The Sleuth Kit accept them.

How to convert VHD to RAW

qemu-img FREE

Run qemu-img convert -O raw in.vhd out.img; add -p for a progress indicator. Install via sudo apt install qemu-utils on Linux, brew install qemu on macOS, or download QEMU from qemu.org for Windows.

About these formats

Quality & what to watch

  • Output size equals the virtual disk size, not the VHD file size - a dynamic VHD may be much smaller on disk than the raw output it produces; ensure sufficient free space before converting.
  • Nothing is lost in the conversion - the partition table, filesystem, bootloader, and all files are preserved; only the VHD wrapper is discarded.
  • Verify the output with qemu-img info out.img - it should report format: raw.

Frequently asked questions

What extension should the raw output file use?
Any extension works - .img, .raw, or none - because the format is determined by the -O raw flag, not the filename.
Can I write the raw image to a physical drive?
Yes - use dd on Linux or macOS to write the .img directly to a physical drive.
Why is the output file so much larger than the VHD?
Dynamic VHDs store only allocated blocks, so the VHD file is smaller than the declared disk; the raw output expands to the full virtual disk size.