How To Convert MBR To GPT In Windows 11 Without Data Loss (2026)
Microsoft’s MBR2GPT tool converts a Windows system disk from MBR to GPT without deleting the data on it.
Run mbr2gpt /validate first, then mbr2gpt /convert, and switch the PC’s firmware to UEFI mode before you restart.
This guide shows how to check your disk, run the conversion from Windows, and fix the common errors.
Quick answer: check, validate, convert
| Step | What to do |
|---|---|
| 1. Check the disk | Run Get-Disk in PowerShell and read the Partition Style column |
| 2. Back up | The conversion cannot be undone |
| 3. Validate | mbr2gpt /validate /disk:0 /allowFullOS |
| 4. Convert | mbr2gpt /convert /disk:0 /allowFullOS |
| 5. Switch firmware | Set the PC to boot in UEFI mode before the next startup |
Every command and requirement here comes from Microsoft’s MBR2GPT reference on Microsoft Learn.
Check whether your disk is MBR or GPT
Microsoft gives three ways to see the partition style of a disk.
| Method | How |
|---|---|
| PowerShell | Run Get-Disk | ft -Auto and read the Partition Style column, which shows MBR or GPT |
| Disk Management | Run diskmgmt.msc, right-click the disk, select Properties, open the Volumes tab and read Partition style |
| DiskPart | Run diskpart, then list disk; a star in the Gpt column means GPT, and a blank means MBR |
If the disk already says GPT, you have nothing to convert.
What MBR and GPT mean
Microsoft says MBR is the partition style that goes with legacy BIOS and GPT is the style that goes with UEFI.
| MBR | GPT | |
|---|---|---|
| Firmware it goes with | Legacy BIOS | UEFI |
| Partitions | Up to four primary partitions | More than four partitions |
| Disk size | 2 TB or smaller, and not recommended for larger drives | Can manage disks larger than 2 TB |
Microsoft’s Windows Setup page adds that a PC booted in UEFI mode needs a GPT disk, and a PC booted in legacy BIOS mode uses MBR.
Before you convert
- Back up your data first, because the output says the changes cannot be undone.
- The device must support UEFI, and you must switch the firmware to UEFI boot mode after the conversion.
- Only a system disk can be converted with this tool, so a second data disk cannot.
- BitLocker volumes can be converted only if protection is suspended.
- Windows 7, 8 and 8.1 disks are not officially supported for offline conversion.
Our guide to creating a recovery drive gives you a way back into Windows if something goes wrong.
What MBR2GPT checks before it changes anything
The tool runs validation first and stops if any check fails.
- The disk is currently MBR.
- There is enough unpartitioned space for the GPT structures: 16 KB plus 2 sectors at the front and 16 KB plus 1 sector at the end.
- The MBR has no more than three primary partitions.
- One partition is active and is the system partition.
- The disk has no extended or logical partitions.
- The boot configuration store has a default OS entry that points to an OS partition.
- Volume IDs can be read for every volume that has a drive letter.
- Every partition has an MBR type Windows recognizes, or a mapping for it.
Validate the disk
- Select Start, type cmd, and choose Run as administrator for Command Prompt.
- Type the validate command and press Enter.
mbr2gpt.exe /validate /disk:0 /allowFullOSReplace 0 with your system disk number from Get-Disk, because Microsoft says that if you leave out /disk the tool uses the system disk.
A good result ends with the line “Validation completed successfully”, and the command changes nothing.
Convert the disk from Windows
By default Microsoft runs MBR2GPT from the Windows Preinstallation Environment, and the /allowFullOS option lets it run from the full operating system.
mbr2gpt.exe /convert /disk:0 /allowFullOSRun it from the same administrator Command Prompt, and do not skip the validate step.
From full Windows the old system partition is in use, so the tool creates a new EFI system partition by shrinking the Windows partition.
| Step the tool performs | Notes |
|---|---|
| Shrinks the system and OS partitions | Space for the new EFI partition |
| Creates the EFI system partition | 100 MB of FAT32, or 260 MB on 4K-sector disks |
| Installs boot files and applies the GPT layout | Data is left in place |
| Updates the boot entry and drive letters | Restores letter assignments |
The tool ends by reminding you to switch the firmware to UEFI mode before the new system can boot properly.
Switch the firmware to UEFI mode
After the conversion the disk can boot only in GPT and UEFI mode.
Restart the PC, open the firmware settings and set the boot mode to UEFI; Microsoft notes that many UEFI PCs include a compatibility support module (CSM) that emulates legacy BIOS.
Where that menu lives depends on the PC maker, and you can find your firmware version with our guide to checking your BIOS version.
Return codes and what to do
| Code | Meaning | What Microsoft suggests |
|---|---|---|
| 0 | Conversion completed | None |
| 6 | One or more volumes are encrypted | Suspend BitLocker and retry |
| 7 | The disk layout does not meet requirements | Look for extended or logical partitions, more than three primary partitions, or unknown types |
| 8 | Could not create the EFI system partition | Make sure the Windows partition can shrink |
| 9 | Could not install boot files | Check the logs |
| 10 | Could not apply the GPT layout | Check the logs |
| 100 | GPT applied but some boot entries not restored | Repair boot configuration manually |
Logs go to the Windows folder by default, and setupact.log and setuperr.log are the most detailed.
Check the result
- Run Get-Disk | ft -Auto again.
- Confirm the Partition Style column now shows GPT.
- If a drive letter changed, reassign it in Disk Management; our guide to changing a drive letter has the steps.
If you cannot use MBR2GPT
Microsoft’s Disk Management page says a disk can be converted from the Disk Management window only when it has no partitions or volumes.
That route means deleting every volume on the disk, so it suits an empty or new disk, as in our guide to setting up a new drive.
It is not a way to convert the disk Windows is running from.