Home » Tech Tips » Windows » How to Edit .reg Registry Files in Windows?

How to Edit .reg Registry Files in Windows?

Registry is the heart of Windows operating system which stores configurations and settings for each functionality. This means you can tweak the registry entries to change the settings in Windows that are not available through frontend. You can view and edit existing registry entries using the Registry Editor app. However, there are no default apps come with Windows to edit single registry files with .reg extension. So, if you want to edit any custom .reg file and upload to Registry Editor, here is how you can do that in Windows.

Default Handling of .REG File

Since .reg file can change sensitive information in the registry, Edge browser by default will stop when you try to download such files from online. Make sure you are downloading from trusted source to ignore the warning and continue downloading the file.

Edge Stops Downloading REG File
Edge Stops Downloading REG File

If you double click and open the file, Windows again will show a warning whether you want to run the file. Clicking on the “Run” button will simply modify the entries in registry without an option to view or edit file’s content.

Allow to Run REG File
Allow to Run REG File

Install PowerToys App

You need a third-party app for viewing and editing the content of .reg file in Windows. Microsoft PowerToys is the best app for this purpose which is a free and official app from Microsoft comes with various useful utilities in a single app.

  • Open Microsoft Store app,
  • Type “powertoys” in the search box and press enter.
  • Find and install Microsoft PowerToys app in your computer.

Alternatively, you can download the latest version of PowerToys from GitHub and install it on your computer.

Install PowerToys from GitHub
Install PowerToys from GitHub

Activate Registry Preview

  • Once installed, open PowerToys app which will open its settings interface.
  • Go to “Registry Preview” section from the sidebar options.
  • Turn on “Enable Registry Preview” option.
  • Also, turn on “Default app” under “Launch” section if you want to use Registry Preview as your default app for opening .reg files.
  • Click “Launch Registry Preview” option to launch the tool.
Enable Registry Preview and Make it Default App
Enable Registry Preview and Make it Default App

Open and Edit .reg File

When you are in Registry Preview tool, click the “Open” menu and select your .reg file to open in the editor.

PowerToys Registry Preview Tool
PowerToys Registry Preview Tool

The tool will automatically show the tree view of the registry key from the file along with its content. You can edit and save the content visually which can help to avoid making mistakes. Otherwise, simply click on “Open Registry Editor” or “Open Key” menu to launch Registry Editor app.

Edit REG File Content
Edit REG File Content

If you are not comfortable in editing the file with Registry Preview, click on the “Edit” menu to open the content in Notepad. You can edit the content the content and save the file. After that click on the “Reload” menu to show the updated file’s content in Registry Preview tool.

Edit Registry File with Notepad
Edit Registry File with Notepad

When the content is ready, click “Save” and then “Write to Registry” menu. This will trigger User Account Control prompt and click “Yes” to confirm your action. Windows will again show you a warning that adding registry can impact your system functioning properly. Click “Yes” button to write or modify the entries as per the file entries.

Confirm Updating Registry
Confirm Updating Registry

Final Words

If you are frequently dealing with registry files, then Registry Preview is the simple solution for your need. You can view and edit the files as a default app so that you do not need to open the app every time through PowerToys interface (simply double click to open .reg file in Registry Preview tool). You can also disable “Run” confirmation prompt by unchecking “Always ask before opening this file” option.

Leave a Comment

Your email address will not be published. Required fields are marked *