Reg File Viewer: How to Read, Decode and Audit .Reg Files Safely
By Why Crashed Editorial Team · 22 September 2026
A reg file viewer decodes Windows .reg files before you run them. Learn the syntax, value types, red flags, and a safe 7-step audit workflow. Free browser tool.
Reg File Viewer: How to Read, Decode and Audit .reg Files Safely
Most people meet a .reg file at the worst possible moment: a forum post tells them to download a tiny text file and double-click it. That double-click writes directly into the Windows Registry, and there is no undo button. A reg file viewer fixes the order of operations — it renders every key, value type and hex-encoded string as readable text before anything touches the system. This guide covers .reg syntax, the two header formats, deletion markers, a full value-type decoder table, and a seven-step audit workflow.
On this page- What a reg file viewer actually does
- Anatomy of a .reg file, line by line
- The two header formats and what they tell you
- The value-type decoder table
- A seven-step audit workflow before import
- Red-flag checklist: keys worth stopping for
- Reg file viewer vs. Regedit import
- Common mistakes we see repeatedly
- Using .reg exports in crash troubleshooting
- FAQ
Key facts
Windows Registry Editor Version 5.00 / REGEDIT4According to Microsoft, a .reg file created for Windows 2000, Windows XP, and Windows Server 2003 must begin with the header "Windows Registry Editor Version 5.00", while files for Windows 98 and Windows NT 4.0 use the header "REGEDIT4". Source: Microsoft Support (2023)Microsoft documentation states that registry files created on Windows have two formats, standard and latest, where the standard format is the only one supported by Windows 2000 and remains supported by later versions for backward compatibility, while the latest format has been supported starting with Windows XP.Source: Microsoft Learn (2024)Per Wikipedia's technical description, Windows 9x and NT 4.0 .reg files are ANSI-based and start with the string REGEDIT4, while Windows 2000 and later .reg files are Unicode-based and start with the string Windows Registry Editor Version 5.00.Source: Wikipedia (2026)Wikipedia notes that Windows 9x format .reg files can be imported by Windows 2000 and later systems, and that these later systems also allow exporting .reg files in the Windows 9x/NT format for backward compatibility.Source: Wikipedia (2026)What a reg file viewer actually does
A reg file viewer parses a .reg text file and displays its registry keys, value names, data types and decoded data without executing the file. It is a read-only interpreter. Double-clicking the same file instead hands it to Regedit, which merges every instruction into the live registry.
The distinction matters because .reg files are an import/export transport format, not a configuration proposal. Microsoft documents that Regedit.exe uses .reg files specifically to import and export registry subkeys and values, including remotely distributing registry changes to several Windows-based computers. A file built to fix one machine can therefore be repurposed to reconfigure many.
A good reg file viewer does four things a text editor does not: it handles UTF-16 LE encoding without showing null bytes as garbage, it reassembles hex values that wrap across multiple lines with trailing backslashes, it converts hex(2) and hex(7) blobs back into readable strings, and it flags deletion instructions that are easy to miss. Our browser-based certificate decoder and .reg inspection toolset runs those parsing steps locally so the file never has to be opened by Windows to be understood.
Editorial position: treat every downloaded .reg file the way you would treat a shell script from a stranger. The format is plain text, which makes it feel harmless — but Microsoft's own command-line reference warns that the registry editor bypasses standard safeguards, and incorrect changes can degrade performance, damage the system, or require a full Windows reinstall.
Anatomy of a .reg file, line by line
A .reg file has four structural elements: a version header on line one, key paths in square brackets, "name"=data value assignments beneath each key, and a mandatory blank line at the end. Everything a reg file viewer renders maps back to one of those four.
Read a sample in order. The header declares the format. A bracketed line such as [HKEY_CURRENT_USER\Software\Vendor\App] opens a key context; every value line that follows belongs to it until the next bracketed line. A line beginning with a semicolon is a comment and is ignored on import — which is exactly why comments are unreliable as a description of what a file does. The comment can claim one thing while the value lines do another.
Three syntax details cause most misreadings:
- A minus sign before the key path —
[-HKEY_CURRENT_USER\Software\Vendor]— deletes the entire key and every subkey under it. The only difference from an ordinary key line is one character. - A bare minus as the data —
"Setting"=-— deletes that single value. - The @ symbol —
@="data"— writes the key's unnamed (default) value, which is frequently the file-association or handler target.
Backslashes inside quoted strings must be doubled, so a path stored as C:\\Program Files\\App\\app.exe in the file is C:\Program Files\App\app.exe in the registry. A reg file viewer should show you the resolved path, not the escaped one, because the escaped form hides how long a command line really is. Microsoft's guidance is also explicit that a registry file must contain a blank line at the bottom of the file to be processed correctly — the single most common reason a hand-edited .reg silently drops its last value.
The two header formats and what they tell you
There are two valid first lines. Windows Registry Editor Version 5.00 marks a Unicode-based file; REGEDIT4 marks an older ANSI-based file. A reg file viewer should surface the header immediately, because it determines both encoding and age.
Microsoft states that a .reg file created for Windows 2000, Windows XP and Windows Server 2003 must begin with the header "Windows Registry Editor Version 5.00", while files for Windows 98 and Windows NT 4.0 use the header "REGEDIT4". Wikipedia's technical description of the registry adds the encoding dimension: Windows 9x and NT 4.0 .reg files are ANSI-based and start with REGEDIT4, while Windows 2000 and later .reg files are Unicode-based.
Backward compatibility still works in both directions. Windows 2000 and later systems can import Windows 9x format .reg files, and those systems also allow exporting .reg files in the Windows 9x/NT format, according to the same technical overview. Separately, Microsoft Learn documents that registry files on Windows come in two formats — standard and latest — where standard is the only format supported by Windows 2000 and remains supported for backward compatibility, while the latest format has been supported starting with Windows XP. That distinction applies to binary hive files rather than text .reg exports, and confusing the two is a frequent source of failed restores.
Practical read: a REGEDIT4 header on a file you were sent in 2026 is a signal, not a verdict. It usually means the file was copy-pasted from a very old knowledge-base article, and the key paths inside may reference components that no longer exist on a modern build.
The value-type decoder table
Every data type in a .reg file is written with a prefix token. Learn the eight tokens below and you can read any .reg file manually, even without a reg file viewer open. The hex-prefixed types are where obfuscation hides, because human-readable text becomes a byte stream.
| Token in the file | Registry type | What it means when you see it |
|---|---|---|
"Name"="text" | REG_SZ | Plain string. Readable as-is; watch for doubled backslashes in paths. |
dword:00000001 | REG_DWORD | 32-bit number in hex, always 8 digits. Most on/off policy switches. |
hex: | REG_BINARY | Raw bytes. Opaque without a decoder; often large and line-wrapped. |
hex(2): | REG_EXPAND_SZ | String with environment variables, stored as UTF-16 hex. Decode it — this is where %APPDATA% paths hide. |
hex(7): | REG_MULTI_SZ | Multiple null-separated strings as hex. Common for service dependency lists. |
hex(b): | REG_QWORD | 64-bit number, little-endian byte order — read it right to left. |
"Name"=- | Deletion | Removes a single value. No confirmation prompt on import. |
[-HKEY_...] | Key deletion | Removes the key and every subkey recursively. Highest-impact single line in the format. |
One reading trick worth internalising: in hex(2) and hex(7) data, ASCII characters appear as a byte followed by 00. The sequence 63,00,6d,00,64,00 is simply "cmd". If you can spot that alternating-zero pattern, you can eyeball hex blobs for embedded executable names even before a reg file viewer finishes decoding them.
A seven-step audit workflow before import
Run these seven steps in order every time you receive a .reg file from outside your organisation. The sequence puts all read-only inspection first, and defers any write to the registry until step six. It takes roughly five minutes.
- Confirm the extension is real. Enable file-extension display in Explorer. A file named
fix.reg.exeis an executable, not a registry script, and a reg file viewer will fail to parse it — which is itself the answer. - Open it in a reg file viewer, never by double-clicking. If you must use a text editor, use "Open with" and choose the editor explicitly so the shell's default merge verb is not triggered.
- Check the header. Version 5.00 or REGEDIT4 should be line one. Anything else means the file is malformed or is not a .reg file.
- List the hives touched. HKEY_CURRENT_USER changes affect one profile. HKEY_LOCAL_MACHINE changes are machine-wide and require elevation. A file that claims to be a personal tweak but writes to HKLM deserves scrutiny.
- Decode every hex value and scan for deletions. Search the text for
[-and for=-before doing anything else. - Export a backup of each affected key. In Regedit, right-click the parent key and choose Export. The built-in editor supports both .reg export and binary hive export, as noted in the technical overview of the Windows Registry.
- Test on a disposable machine first when the file touches HKLM, services, or logon components — then verify behaviour, then apply to production.
Red-flag checklist: keys worth stopping for
Certain registry locations are disproportionately abused for persistence, privilege escalation and security-control tampering. If a reg file viewer shows any of the following paths, stop and justify the change before importing.
...\CurrentVersion\RunandRunOnce— anything written here launches at logon....\WinlogonvaluesShellandUserinit— replacing these hijacks the logon chain....\Image File Execution Options\<app>.exewith aDebuggervalue — silently substitutes a different binary when the named app runs....\Policies\SystemwithEnableLUA=dword:00000000— disables User Account Control machine-wide.- Any value that disables tamper protection or security services. A joint advisory co-issued by the Australian Signals Directorate's Australian Cyber Security Centre documented that the BianLian ransomware group modifies the Windows Registry to disable tamper protection for specific security-software services, enabling the actors to uninstall those services (November 2024).
- Changes that loosen remote administration behaviour. In its Royal ransomware profile, the ASD's ACSC recommends the opposite move — configuring the Windows Registry to require UAC approval for any PsExec operations requiring administrator privileges to reduce lateral movement risk.
- Recursive deletions of vendor or driver keys, which frequently break uninstall/repair paths rather than fixing them.
None of these entries is automatically malicious — legitimate deployment scripts touch Run keys and policy branches every day. The test is intent: can the person who sent you the file explain each line? If the explanation is "it fixed it for me", the file has not been audited by anyone.
Reg file viewer vs. Regedit import: what each one is for
A reg file viewer is for understanding a file; Regedit import is for applying it. They are sequential, not alternative. The comparison below sets out what each step gives you and what it costs.
| Criterion | Reg file viewer | Regedit import (double-click / File > Import) |
|---|---|---|
| System impact | None — read-only parse | Immediate, permanent merge |
| Hex decoding | Converts hex(2)/hex(7) to readable strings | Applies bytes without showing them |
| Deletion visibility | Highlights [-HKEY] and =- lines | One generic confirmation prompt for the whole file |
| Privileges needed | Standard user | Administrator for HKLM writes |
| Reversibility | Nothing to reverse | Only via a prior export or system restore point |
| Best used | Always, first | After review and backup |
Common mistakes we see repeatedly
The five errors below account for the majority of failed .reg imports and failed rollbacks. Four of them are invisible in a plain text editor and obvious in a reg file viewer.
- No trailing blank line. Microsoft's guidance requires a blank line at the bottom of the file; without it the final value may not import. Hand-edited files hit this constantly.
- Saving as UTF-8 when the header says Version 5.00. The Unicode-based format expects UTF-16 LE. A mismatched encoding produces parse errors or mangled non-ASCII strings.
- Assuming an export is a rollback. Exporting a key before import captures what exists — it does not record deletions. If the imported file creates values that were absent, re-importing the backup will not remove them. Note the added value names separately.
- Single backslashes in quoted paths.
"C:\Windows"is invalid; the format requires"C:\\Windows". - Editing a live hive instead of the export. Always edit the .reg text, then re-import. Direct hive manipulation is a different operation with different tooling.
Using .reg exports in crash troubleshooting
A reg file viewer is also a diagnostic instrument, not just a safety check. Exporting a suspect key to .reg and reading it gives you a timestamped, diffable text snapshot of configuration — far easier to compare between a working and a broken machine than clicking through Regedit panes.
The workflow we use when an application starts crashing after an update: export the vendor's key from a healthy machine and from the failing machine, open both in a reg file viewer, and diff the decoded output. Encoding differences disappear once both sides are decoded, so the diff shows genuine configuration drift rather than hex noise. Pair that output with the crash artefacts themselves — our guidance on reading Windows Error Reporting files and interpreting crash reports covers what the fault module and exception code add to the registry picture.
Three high-yield keys to export first when an application fails to start: the vendor's own settings key under HKCU\Software, the corresponding HKLM\Software key (check both the native and WOW6432Node views on 64-bit systems), and any Image File Execution Options entry named after the crashing executable. For deeper background reading on file-format forensics, see our related guides and explainers.
Review note: registry paths, policy value names and security-tooling behaviour change between Windows feature updates. This guide was reviewed by the Why Crashed Editorial Team on 22 September 2026 against current Microsoft documentation. Verify any specific policy value against vendor documentation for your exact build before deploying it at scale.
FAQ: reg file viewer questions answered
Can I just open a .reg file in Notepad instead of a reg file viewer?
Yes, but you will read less. Notepad shows the raw text, which means hex(2) and hex(7) values stay as unreadable byte strings and multi-line hex blocks remain fragmented. A reg file viewer decodes those blobs into strings and reassembles wrapped lines.
If Notepad is your only option, use right-click > "Open with" rather than double-clicking, since the default shell action for .reg is merge, not edit.
Is it safe to double-click a .reg file?
Not unless you wrote it or have read every line. Double-clicking merges the file into the live registry after a single generic prompt. Microsoft's reg command reference warns that registry editing bypasses standard safeguards and that incorrect changes can degrade performance, damage the system, or require reinstalling Windows.
Why does my .reg file fail to import?
The three usual causes are a missing or misspelled header line, a missing blank line at the end of the file, and the wrong text encoding. Microsoft's guidance specifies that a .reg file must contain a blank line at the bottom to be processed correctly, and that files must begin with either "Windows Registry Editor Version 5.00" or "REGEDIT4".
What does hex(2) mean inside a .reg file?
hex(2) marks a REG_EXPAND_SZ value — a string that may contain environment variables such as %SystemRoot% or %APPDATA%, stored as UTF-16 hex bytes. A reg file viewer converts it back to text. Read hex(2) values carefully: encoding a path this way is a common way to keep an executable name out of plain sight.
Does a reg file viewer change anything on my computer?
No. A reg file viewer parses and displays the file's contents without writing to the registry, so it requires no administrator rights and leaves no changes behind. Registry writes only happen when the file is imported through Regedit, the reg command, or a script.
What is the difference between REGEDIT4 and Version 5.00 files?
REGEDIT4 files are ANSI-based and originate with Windows 9x and Windows NT 4.0; "Windows Registry Editor Version 5.00" files are Unicode-based and used from Windows 2000 onward. Windows 2000 and later can import the older 9x format and can also export in it for backward compatibility.
In practice, write new files with the Version 5.00 header unless you have a documented reason to target a legacy system.
How do I back up before importing a .reg file?
Open Regedit, right-click the highest parent key the file touches, choose Export, and save a .reg copy with a dated filename. The built-in Registry Editor supports importing and exporting .reg files as well as exporting registry data in the binary hive format. Remember that an export records existing values only — note any values the import will newly create, because re-importing the backup will not delete them.
Written and reviewed by the Why Crashed Editorial Team. Source documentation: Microsoft Support, Microsoft Learn, the Australian Signals Directorate's Australian Cyber Security Centre, and the technical description of the Windows Registry.