The Windows registry holds settings for the operating system, hardware, and installed applications. A registry backup exported to a .reg file preserves keys and values before a manual edit.
Registry Editor can export a selected branch or all registry data it can read. An All export can produce a large file, while a Selected branch export is easier to inspect and restore when only one key will change.
A .reg file omits registry-key permissions, and importing it merges saved data without removing keys added later. It is not a complete system backup; a restore point provides a separate recovery option before wider Windows changes.
Steps to back up the Windows registry:
- Press Windows + R to open Run.
- Enter regedit in the Open field.

- Click OK to launch Registry Editor.

- Select Yes on the User Account Control prompt for Registry Editor.
Registry Editor can change settings immediately, and deleting the wrong key can stop Windows or applications from working. Exporting requires no changes to keys or values.
- Open the File menu.

- Select Export.

- Select All under Export range.
All exports registry data accessible to the current session. For a single key, Selected branch limits the export to the key highlighted in the registry tree and its subkeys.
- Choose a private backup folder with the Save in control.
Documents is the destination shown here.
- Enter a name ending in .reg in the File name field.
A dated name helps distinguish backups taken before different changes.
Registry exports can contain private application and account settings. The backup belongs in a location accessible only to trusted users.
- Click Save to write the registry backup.
Registration Files (*.reg) preserves the text export format. A large export may take time; an export error means the file must not be treated as a complete backup.
- Open File Explorer with Windows + E.
- Open the backup folder in File Explorer.

- Open the saved backup file's context menu.
The file may appear without its .reg extension when Windows hides known file extensions.
Double-clicking a .reg file starts an import rather than a text preview.
- Select Edit in Notepad to inspect the export as text.
On Windows versions with the older context menu, the equivalent option is Edit.
- Confirm the saved file begins with Windows Registry Editor Version 5.00 and contains registry key paths and values below it.
The header alone does not prove that keys were exported. The file should contain bracketed paths such as [HKEY_LOCAL_MACHINE] followed by value entries; the contents depend on the export range and the computer.