gptgen

gptgen 1.3

A tool for converting hard drives partitioned by the MSDOS-style "MBR" scheme to the GPT (GUID partition table) partitioning scheme, while retaining all data on the hard disk.

  • By xorangekiller (Karl Lenz)
  • Open Source
  • Portable
  • Updated Feb 23, 2026
Download for Windows

About gptgen

A tool for converting hard drives partitioned by the MSDOS-style "MBR" scheme to the GPT (GUID partition table) partitioning scheme, while retaining all data on the hard disk.

What's new in 1.3

gptgen 1.3 is primarily a bug fix release with a few new features that have accumulated over the years since the 1.2.1 release.

  • Added support for building on macOS. Thanks to Jan Kaiser!
  • Added support for getting the capacity of a non-sparse disk image on Unix-like platforms (Linux and macOS). This is an alternative to operating directly on a block device.
  • Added an integration test suite for automated testing.
  • Fixed writing the backup GPT header to disk. This bug only affected -w/--write mode.
  • Fixed building with modern CMake (>= 4.0), and bumped the minimum supported CMake version to CMake 3.15.
  • Fixed seeking in files to read/write blocks on Unix-like platforms (Linux and macOS). This does not affect Windows.
  • Fixed a memory leak writing a file with a backup of the MBR.

Full release notes »

Technical details

Publisherxorangekiller (Karl Lenz)
Version1.3
Release date2026-02-23
LicenseISC
Installer typezip
Architecturex64
Package IDKarlLenz.gptgen

Install gptgen from the command line

Install with Windows Package Manager
winget install --id=KarlLenz.gptgen -e
Update to the latest version
winget upgrade --id=KarlLenz.gptgen -e
Uninstall
winget uninstall --id=KarlLenz.gptgen -e

GaborAStefanikGáborAStefanikgptpartitionsguidpartitiontableharddiskconversionharddriveconvertingmasterbootrecordmbrpartitionspartitionschemesrequirescmdxorangekiller

gptgen version history

1.2.1 Apr 29, 2018

Frequently asked questions

Is gptgen free?

Yes. gptgen is free and open-source software released under the ISC license.

What is the latest version of gptgen?

The latest version is 1.3, released on Feb 23, 2026.

Is it safe to download gptgen?

The download button links to the official installer published on github.com, the same file Windows Package Manager installs. You can verify the downloaded file by comparing its SHA-256 checksum with 27d5e55ea7acaec4ef992df50d6078c2aa50566a64db8ce93e5a5fac31d0b7a1.

Which Windows versions does gptgen support?

gptgen runs on Windows and is available for 64-bit (x64) systems.

How do I uninstall gptgen?

Open Settings › Apps › Installed apps, find gptgen and select Uninstall. From the command line, run winget uninstall --id=KarlLenz.gptgen -e.

Is there a portable version of gptgen?

Yes. gptgen is available as a portable ZIP archive (gptgen-1.3.zip, 64-bit (x64)) that runs without installation. Copy it to any folder or USB drive and run it from there.