.VHD

VHD File

Virtual Hard Disk
Ask a question
QUICK ANSWER

A VHD file is a complete hard disk stored as a single file - partition table, filesystem, and often a full operating system. On Windows you can mount it in Disk Management to read files, or attach it to Hyper-V or VirtualBox to boot a virtual machine. The successor format is VHDX, which supports larger disks and resists corruption better.

Developer: Microsoft (originally Connectix Virtual PC) Category: Disk Image Files Open standard MIME: application/x-vhd
OPENS ON Windows macOS Linux
Related: .BIN · .ISO · .MDF · .DMG

On this page

19k+ extensions indexed
Last reviewed Aug 13, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the VHD file format?

A .vhd file contains a virtual image of a hard drive, used by virtualization platforms such as Microsoft Hyper-V, Oracle VirtualBox and Windows Virtual PC. A single .vhd file may contain all the data stored on a physical hard drive, saved in the same structure - partitions, system files, regular files and folders.

Possibilities resulting from .vhd files

.vhd files are typically used as virtual machine disks, which makes it possible to install and run multiple operating systems without needing several physical drives or separate computers. This enables many possibilities - for example, maintaining programs and applications in different environments. .vhd files also enable restoring chosen directories or a whole hard drive. On Windows 7 and later, a .vhd can be mounted directly through Disk Management or with the Mount-DiskImage PowerShell cmdlet, without any third-party software.

Brief history of the VHD format

The VHD format was created by Connectix, a company acquired by Microsoft in 2003, which then developed the Microsoft Virtual PC product. Microsoft subsequently published the VHD specification under its Open Specification Promise, making the format royalty-free to implement. In 2012 significant upgrades were introduced as a new format - .VHDX - which supports larger disks (up to 64 TB) and improves resilience against corruption.

Types of VHD files

.vhd files can be identified in several types, which facilitates managing them:

  • Fixed hard disk image - has a fixed size equal to the size of the virtual drive; all storage is allocated at creation time.
  • Dynamic hard disk image - the file size starts small and grows as data is written; it contains only the sectors that have actually been used.
  • Differencing disk image - a separate .vhd that records only changes relative to a parent (base) disk; Hyper-V uses the related .AVHD extension for VM checkpoint files.
  • Linked (pass-through) - contains only a link to a physical drive, granting the virtual machine direct hardware access.

Competing virtualization disk formats include .VMDK (VMware) and .VDI (VirtualBox native). The qemu-img tool can convert between all of these formats on Linux and macOS.

Security & safety

RISK: MEDIUM

A .vhd is a disk image, not directly executable on the host - but it can contain a full bootable OS, so a downloaded VHD may harbour malware inside the guest. Run untrusted VMs isolated (no shared folders, limited networking). Mounting a VHD via Disk Management exposes its filesystem to the host, so scan unknown images before opening files. VHDs also hold whatever sensitive data the guest had (credentials, personal files) - handle as confidential. They are large; ensure free space before converting/copying.

Format details

in a nutshell
FULL NAMEVirtual Hard Disk
DEVELOPERMicrosoft (originally Connectix Virtual PC)since Connectix Virtual PC (early 2000s); Microsoft published the VHD spec under its Open Specification Promise in 2006
MIME TYPEapplication/x-vhd
TYPEBinary virtual hard-disk container - holds a whole guest disk (partition table, filesystem, OS, files); fixed, dynamic, or differencing
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001020304050607
HEX
636F6E6563746978
ASCII
conectix
A VHD carries a 512-byte footer whose first 8 bytes are the ASCII cookie "conectix" (yes, spelled that way, from Connectix). Fixed VHDs have it only at the end; dynamic/differencing VHDs also have a copy at offset 0 plus a "cxsparse" dynamic- disk header. So a fixed VHD has NO fixed signature at byte 0 (it's a raw disk image with the footer appended). VHD is a hard-disk image, not an optical/ISO image.

Programs that open VHD files

Windows4 apps
7-Zip Open-source Open the .vhd as an archive to extract files from inside without mounting/booting (read-only).
Hyper-V Built-in To RUN it as a machine: attach the .vhd as a VM's disk in Hyper-V Manager (Windows Pro/Enterprise feature) and start the VM.
Windows Disk Management (built-in) Built-in To browse files: Disk Management > Action > Attach VHD, pick the .vhd - it mounts as a drive letter. Detach when done. (Double-clicking a .vhd in Explorer on Win8+ also mounts it.)
Oracle VirtualBox Open-source Attach the .vhd to a VM (VirtualBox reads/writes VHD) and boot it; or convert with VBoxManage.
macOS2 apps
Oracle VirtualBox Open-source Attach the .vhd to a VM and boot it; or convert with VBoxManage clonemedium.
qemu-img Open-source Inspect/convert: 'qemu-img info disk.vhd', or convert to qcow2/raw/vmdk for other tools.
Linux2 apps
Oracle VirtualBox Open-source Attach the .vhd to a VM and boot it.
qemu-img / libguestfs (guestmount) Open-source Convert with qemu-img, or mount the guest filesystem to copy files out: 'guestmount -a disk.vhd -i --ro /mnt'.

Technical details

deep spec
Container typeBinary virtual hard-disk container - raw disk image with a 512-byte footer appended at the end of the file
Footer cookie (magic bytes)ASCII string `conectix` (8 bytes) at the start of the 512-byte footer; at EOF for fixed VHDs, and additionally at byte offset 0 for dynamic and differencing VHDs
Footer size512 bytes; a second copy is placed at byte 0 in dynamic and differencing VHD files, where it serves as the file header
Maximum virtual disk size~2040 GB (~2 TB), limited by 32-bit geometry fields in the VHD footer
MIME typeapplication/x-vhd
Supported disk image typesFixed (pre-allocated), Dynamic (sparse, grows on write), Differencing (child disk recording deltas against a parent), Pass-through (reference to a physical drive)
Dynamic block sizeDefault 2 MB per block; each block has an associated sector bitmap tracking which 512-byte sectors within it have been written
Footer byte orderBig-endian (network byte order) for all multi-byte footer fields, including size, geometry and timestamps
Integrity verificationCRC-32 checksum embedded in both the 512-byte footer and the dynamic disk header
Disk geometry encodingCylinder-Head-Sector (CHS) values stored in the footer for BIOS-compatible booting
Native Windows mountMountable on Windows 7 and later without third-party tools - via Disk Management, `diskpart attach vdisk`, or the `Mount-DiskImage` PowerShell cmdlet
Successor formatSuperseded by `.vhdx`, which supports up to 64 TB virtual disks and adds metadata journaling for crash resilience
Sector size emulated512 bytes (traditional HDD geometry), regardless of the host drive's physical sector size
Parent locator entriesDifferencing VHDs store up to 8 parent locator entries, supporting flexible path resolution across platforms
License modelPublished under Microsoft's Open Specification Promise, permitting royalty-free implementation by third parties
ReleasedConnectix Virtual PC (early 2000s); Microsoft published the VHD spec under its Open Specification Promise in 2006
Open standardYes · royalty-free
Specificationlearn.microsoft.com

VHD conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with VHD files. Be specific - include your system and software version.
No account needed · answers usually within a day
C
camille8 d agoUNANSWERED
v fvfbbvgbdgdg v jn cjnduje h bcj
Waiting for an answer
C
camille8 d agoUNANSWERED
cfcecrvjfjnfg vhnfrbebfjivkfikvbhbrfvg jfnoni
Waiting for an answer

Frequently asked questions

How do I open a VHD file in Windows?
To read its files, open Disk Management > Action > Attach VHD (or just double-click the .vhd on Windows 8+); it mounts as a drive letter. To run it as a machine, attach it to a VM in Hyper-V or VirtualBox.
What's the difference between VHD and VHDX?
Both are Microsoft virtual hard disks. VHD is the older format (max 2 TB, more corruption-prone). VHDX (since Windows 8 / Server 2012) supports up to 64 TB, resists corruption on power loss, and is the recommended choice for Hyper-V.
How do I convert a VHD to VHDX (or back)?
Use PowerShell 'Convert-VHD -Path in.vhd -DestinationPath out.vhdx' or Hyper-V Manager's Edit Disk > Convert. The same tools convert VHDX back to VHD when needed (e.g. for Azure).
Can I convert a VHD to an ISO?
No - a VHD is a hard-disk image, an ISO is an optical-disc image; they aren't interchangeable. Attach/mount the VHD to copy its files, or convert to VMDK/VDI/raw for another hypervisor. A bootable ISO must be created from the OS separately.
How do I extract files from a VHD without a VM?
On Windows, attach it in Disk Management to get a drive letter, or open it read-only with 7-Zip. On Linux, mount the guest filesystem with guestmount (libguestfs).
Can Windows boot from a VHD?
Yes - Windows supports 'native VHD boot', running the physical PC directly from a VHD/VHDX file (configured via bcdedit/Disk Management). It's used for testing and multi-boot setups.

References

1Microsoft Learn - [MS-VHDX] and VHD format specificationlearn.microsoft.com
2Microsoft Learn - Convert-VHD (PowerShell)learn.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.PARTPartial Download File
4.CRDOWNLOADChrome Partial Download File
5.MDMarkdown Document
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.PRO6XProPresenter 6 Bundle File
9.PRDXSoftMaker Presentations Document
10.SWFSmall Web Format (Shockwave Flash)

Related extensions

.BINCD/DVD Disc Image (BIN/CUE)
.ISOISO disc image (ISO 9660 / UDF)
.MDFMedia Descriptor File (Alcohol 120% / DAEMON Tools disc image)
.DMGApple Disk Image
.NRGNero Burning ROM Disc Image
.TIBAcronis True Image Backup

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z