How to Compare Windows Registry Differences
In this article
Comparing two Windows Registry exports lets you see exactly what changed between a clean and a problematic state, or between two computers. This is useful for tracking down what a program installed, verifying a tweak took effect, or diagnosing a system issue. You do not need any special software—Windows includes everything you need, and the process is safe as long as you only export and compare, never merge or import without care.
What You'll Need
- A Windows PC (Windows 10 or 11 works for these steps; older versions are similar).
- Two Registry export files (.reg) from the same hive or key, taken at different times or from different machines.
- A plain text editor like Notepad (built-in) or a more capable one like Notepad++ (free, from the official site only).
- Optional: a file comparison tool like WinMerge (free, open-source) or the built-in
fccommand in Command Prompt.
Step-by-Step
- Create the first Registry export. Press Win + R, type
regedit, and press Enter. Navigate to the key you want to compare (for example,HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run). Right-click the key and select Export. Choose a location, name the file (e.g.,before.reg), and ensure “Selected branch” is chosen in the Export range box. Click Save. - Make your changes or capture the second state. If you are comparing before/after, install the program, change the setting, or run the step you want to analyze. If comparing two computers, export the same key on the second machine using the same method.
- Create the second export. Repeat step 1, but name the file differently (e.g.,
after.reg). Make sure you export the exact same key path on both machines—otherwise the comparison will show false differences. - Open both files in a text editor. Right-click each .reg file, choose Open with, and select Notepad (or your preferred editor). You will see the Registry Editor version line (e.g.,
Windows Registry Editor Version 5.00), followed by the key path in brackets, then the values and data. - Use a comparison tool (recommended). If you have WinMerge installed, open it, go to File > Open, select the two .reg files, and click Compare. WinMerge will highlight lines that differ, added lines, and removed lines. This is the fastest way to spot differences.
- Use the built-in
fccommand (no extra software). Open Command Prompt (press Win + R, typecmd, press Enter). Navigate to the folder with your files usingcd(e.g.,cd C:\Users\YourName\Desktop). Then type:fc before.reg after.regand press Enter. The output will show lines that differ, with labels like***** before.regand***** after.reg. - Interpret the differences. Look for added or removed keys and values. For example, a new value under
Runmight indicate a startup program. Changed data (the part after the=) shows a value was modified. Compare the full paths to understand where the change occurred. - Save a copy of the comparison. If using
fc, you can redirect the output to a file:fc before.reg after.reg > differences.txt. This creates a text file you can search or share.
Common Mistakes
- Exporting different keys. If you export
HKEY_CURRENT_USER\Softwareon one machine andHKEY_LOCAL_MACHINE\Softwareon another, the comparison will be meaningless. Always export the same hive and key path. - Exporting the entire registry instead of a branch. Full registry exports are huge and slow to compare. Stick to the specific key you are investigating.
- Comparing files with different encodings. Some .reg files are saved as UTF-16 (especially if you used “Save as” in Notepad with a different encoding). Ensure both files are in the same encoding—usually the default ANSI or UTF-8 without BOM. If they differ, the comparison tool may show every line as different.
- Merging a .reg file without reviewing it. Double-clicking a .reg file merges it into your registry. This can overwrite settings or add unwanted entries. Only merge after you have reviewed the differences and are sure they are safe.
Tips
- Use a dedicated comparison tool. WinMerge or similar tools give you a side-by-side view, which is much easier to read than raw
fcoutput. - Filter out noise. Some registry keys change frequently (e.g.,
LastWriteTimeor MRU lists). Focus on the values that matter to your task, not every timestamp. - Export to a folder you can find. Put both .reg files in the same folder, like
C:\RegistryCompare, to avoid hunting for them. - Make a backup before changing anything. If you plan to modify the registry, export the key first. That way you can restore it if something goes wrong.
- Use the “Find” feature in Notepad. If you are looking for a specific value name, press Ctrl + F in Notepad to search for it in each file.
Troubleshooting
If the comparison shows too many differences or looks like garbage:
- Check that both files are from the same key path. Open each file and look at the line with the key path in brackets.
- Ensure both files are saved in the same format. If one was created on a 32-bit system and the other on 64-bit, the key paths may have
WOW6432Nodedifferences—that is normal and may not be meaningful. - If you used
fcand the output is overwhelming, try using a tool like WinMerge instead, which collapses identical sections.
If you cannot find the key you exported:
- Search the .reg file for the key name using Notepad’s Find. If it is not there, you may have exported the wrong branch.
If you accidentally merge a .reg file and want to undo it:
- You cannot “undo” a merge directly. You must re-export the key before the merge (if you have a backup) and merge that back. If you do not have a backup, you may need to manually change the values back or use System Restore (if enabled). Always back up before merging.
Frequently Asked Questions
Can I compare two different computers' registries?
Yes, as long as you export the same key path from both machines. Differences will show configuration variations, but be aware that each computer has unique hardware and software, so many differences are expected.
Is it safe to compare registry files?
Yes, comparing is read-only. The risk comes only when you merge a .reg file into your registry. Always review and back up before merging.
What if the .reg files are very large?
Large files can slow down comparison tools. Try to export only the specific subkey you need, not the entire hive. If you must compare a large hive, use WinMerge with “File” comparison—it handles large files better than Notepad.
Why do the files show different line endings?
Windows .reg files typically use CRLF line endings. If one file was edited on a Mac or Linux, it might have LF endings, causing every line to appear different. Use a tool like WinMerge that can ignore line-ending differences, or convert both files to the same format.
Can I use PowerShell to compare?
Yes, you can use Compare-Object in PowerShell to compare text files. For example: Compare-Object (Get-Content before.reg) (Get-Content after.reg). This outputs the differences, but it may be less readable than a dedicated tool.
What does “WOW6432Node” mean in a key path?
It indicates a 32-bit application’s registry view on a 64-bit Windows system. If you are comparing a 32-bit app’s settings, you might see this folder. It is normal and not a problem.