VDI VHDX
File conversion

Convert VDI to VHDX

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

Run qemu-img convert -O vhdx -o subformat=dynamic input.vdi output.vhdx; qemu-img is the only practical tool for a direct conversion since VBoxManage cannot output VHDX. Snapshots are not transferred - only the current disk state is exported.

Also to VHDX: 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 VDI to VHDX?

VDI is VirtualBox's native disk format; VHDX is Microsoft's preferred Hyper-V format, supporting up to 64 TB versus VHD's 2 TB limit. Moving a VM from VirtualBox to Hyper-V on Windows Server or Windows 10/11 Pro requires a .vhdx or VHD disk.

How to convert VDI to VHDX

qemu-img OPEN-SOURCE

Run qemu-img convert -O vhdx -o subformat=dynamic input.vdi output.vhdx after shutting down the VM; add -p for a progress bar on large disks. Available on Windows, macOS, and Linux as part of the QEMU package.

VBoxManage + qemu-img (two-step) OPEN-SOURCE

First convert .vdi to .vhd with VBoxManage clonemedium disk input.vdi intermediate.vhd --format VHD, then convert to VHDX with qemu-img convert -O vhdx -o subformat=dynamic intermediate.vhd output.vhdx. Use only if qemu-img alone is unavailable for the direct step.

About these formats

Quality & what to watch

  • VBoxManage cannot output VHDX directly; its --format options are VDI, VMDK, VHD, and RAW only.
  • VirtualBox snapshots are not transferred - qemu-img reads the current disk state as a single flat image; merge snapshots in VirtualBox first if needed.
  • Use subformat=fixed instead of subformat=dynamic for better runtime performance at the cost of a larger file upfront.

Frequently asked questions

Can VBoxManage convert VDI to VHDX?
No - VBoxManage only outputs VDI, VMDK, VHD, and RAW; qemu-img is the only practical single-step tool for VHDX.
Why choose VHDX over VHD?
VHDX supports disks up to 64 TB and is more resilient to power-failure corruption than the older VHD format.
What happens to my VirtualBox snapshots?
They are not exported; qemu-img reads only the current disk state, so merge snapshots in VirtualBox first if you need their contents included.