We do it in just two commands
How to Change Legacy to UEFI Without Reinstalling Windows 10, 11
Microsoft has added a handy tool that was missing from previous versions of Windows and even some older versions of Windows 10. The MBR2GPT tool allows Windows 10 users to convert Legacy BIOS to UEFI without having to reinstall Windows 10.
You can invoke the MBR2GPT tool via the command prompt. Two commands later, you have switched from Legacy BIOS to UEFI.
BIOS (Basic Input/Output System) is a piece of code that your microprocessor needs to boot up after you press the power button on your computer. BIOS came out a long time ago and worked perfectly. However, BIOS had some limitations.