VHDX RAW
File conversion

Convert VHDX to RAW

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

Run qemu-img convert -O raw in.vhdx out.img to produce the raw image. The output file will equal the full virtual disk size - a 64 GB dynamically expanding VHDX that uses only 10 GB of data will still produce a 64 GB raw file.

Also to RAW: FFF · VDI · VHD

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 VHDX to RAW?

A raw image is a flat, sector-by-sector copy of the virtual disk with no container overhead, making it compatible with forensic tools, QEMU, and any platform that requires unformatted sector data. Converting from VHDX removes the Hyper-V container metadata, leaving only the raw disk content.

How to convert VHDX to RAW

qemu-img OPEN-SOURCE

Run qemu-img convert -O raw in.vhdx out.img; add -p to show progress. The output can use any extension (.img, .raw, .bin) - the content is identical.

About these formats

Quality & what to watch

  • The output file equals the full virtual disk size, not the used data size; plan disk space accordingly before converting.
  • All disk content - partition table, filesystem, OS, and files - is preserved in the sector-level copy.
  • qemu-img handles fixed, dynamically expanding, and differencing VHDX files; for differencing disks, ensure the parent VHDX is accessible.

Frequently asked questions

Do I need Hyper-V or Windows to convert VHDX to raw?
No - qemu-img reads VHDX natively on Windows, macOS, and Linux without any Hyper-V requirement.
Can I convert the raw image back to VHDX?
Yes - run qemu-img convert -O vhdx out.img restored.vhdx to reverse the conversion.
What file extension should I use for the raw output?
.img, .raw, and .bin are all common; the extension does not affect the content.