VHD vs VHDX: Format Differences, Size, and Performance
VHD and VHDX are virtual hard disk file formats that store the full contents of a virtual machine disk, including its operating system, partitions, and data. In the VHD vs VHDX comparison, VHD prioritizes legacy compatibility, whereas VHDX offers higher capacity up to 64 TB, stronger protection against corruption, live resizing, and better storage performance.
Updated ยท Mr.PlanB
Overview
VHD vs VHDX at a glance
As of November 2026, choose VHDX for modern Hyper-V; retain VHD for a specific compatibility requirement.
| Difference | VHD | VHDX |
|---|---|---|
| Maximum capacity | About 2 TB; Hyper-V specifies 2,040 GB | 64 TB |
| Logical sectors | 512 bytes | 512 bytes or 4 KB |
| Power failure protection | No VHDX metadata log | Logs metadata updates; does not log payload blocks |
| Local Hyper-V generations | Generation 1 | Generations 1 and 2 |
| Azure Windows VM image upload | Fixed VHD required | Convert to fixed VHD first |
Microsoft Learn sources: capacity, sectors, metadata logging, generations, and Azure preparation.
VHD is the older format and works with earlier Windows Server versions. Its maximum disk size is 2 TB, and it has no support for features such as live resizing, better data alignment, or trimming. Its logical sector size is 512 bytes, and it does little to protect against data corruption.
VHDX arrived with Windows Server 2012. It raises the maximum virtual disk size to 64 TB and uses a 4 KB logical sector size, which aligns better with modern storage systems. It is also more reliable because it tracks metadata updates, which lowers the risk of corruption after an unexpected power loss. VHDX supports live resizing and trimming too, so it suits dynamic production environments better.
Administrators can convert between VHD and VHDX in Hyper-V Manager or PowerShell, but only while the disk is offline. Be careful when snapshots or differencing disks are involved, because a bad conversion can break the disk chain. VHDX disks can also be resized, mounted, merged, or moved between controllers with the built-in management tools.
As a rule, use VHD when you need compatibility with older systems and VHDX for newer deployments that need to scale, perform well, and protect data better.
What are fixed, dynamic, and differencing virtual disks?
Disk type is separate from VHD or VHDX format. Fixed disks allocate capacity upfront, reducing allocation overhead but reserving host space. Dynamically expanding disks allocate host storage as blocks are written, so monitor free space as they grow. Differencing disks store changes relative to a parent; they depend on that parent, and long chains increase I/O overhead. See Microsoft's storage guidance.
How to convert VHD to VHDX
Back up first, shut down the VM, and detach the source disk. In elevated PowerShell with the Hyper-V module, run either example independently:
``powershell Convert-VHD -Path C:\VMs\source.vhd -DestinationPath C:\VMs\modern.vhdx Convert-VHD -Path C:\VMs\source.vhdx -DestinationPath C:\VMs\legacy.vhd -VHDType Fixed ``
Convert-VHD copies to a new file and requires an unattached source. For VHD output, stay within 2,040 GB and check destination compatibility. Conversion does not change VM generation; Azure Windows uploads require fixed VHD with virtual size aligned to 1 MiB.
Alternatively, open Hyper-V Manager, select the host, then Action > Edit Disk > locate source > Convert. Choose VHDX or VHD, disk type, destination, then Finish. Follow Microsoft's conversion instructions. For other platforms, see virtual disk conversion.
How to attach and detach an existing virtual disk
Open Disk Management as administrator. Select Action > Attach VHD > Browse, choose the VHD or VHDX, then OK. To detach, right-click the disk and choose Detach VHD > OK. Detaching preserves the file and data.
1. When should VHD be used instead of VHDX?
When you need compatibility with older Windows Server or Hyper-V versions.
2. Does VHDX support larger disk sizes?
Yes. VHDX supports up to 64 TB, compared with 2 TB for VHD.
3. Can VHD be converted to VHDX?
Yes. The conversion is supported, but it has to be done offline with the management tools or PowerShell.
Frequently asked questions
What is a VHD file?
VHD stands for Virtual Hard Disk. A VHD file acts like a physical hard drive stored as a single file on a host system, holding a virtual machine's operating system, partitions, and data.
What is a VHDX file?
A VHDX file is the newer virtual hard disk format used in Hyper-V to store a virtual machine's operating system, partitions, and data. Compared with VHD files, VHDX files support up to 64 TB of capacity, track metadata updates to reduce corruption risk after power loss, and support live resizing and trimming.
How do VHD and VHDX compare in performance?
VHDX generally delivers better performance on modern storage systems because it uses a 4 KB logical sector size instead of the 512 bytes used by VHD. Better data alignment and trimming support also help VHDX run more efficiently in active production environments.
Can you convert a physical hard drive (HDD) to a VHDX file?
Yes. Converting a physical HDD to VHDX captures the drive's partitions and data into a single virtual disk file that you can attach to a virtual machine. This is typically done offline or with disk conversion tools before mounting the VHDX file in Hyper-V.
FAQ
Can Windows 7 or Windows Server 2008 R2 use VHDX?
They cannot natively open VHDX; use VHD for those hosts. Native VHDX support starts with Windows 8 and Windows Server 2012, including Hyper-V in Server 2012, according to Microsoft's format compatibility reference.
Is VHDX always faster than VHD?
No universal speed gain is guaranteed. VHDX alignment helps large-sector storage, but VHD created on Server 2012 or later also supports 4 KB alignment; VHDX logical sectors can be 512 bytes or 4 KB.
Related guides
More from the backup hub on the same topics.
Need help with backup and recovery?
Use the form below to get in touch about backup strategy, recovery planning, and data protection projects.