.REG

REG File

Windows Registry Export / Registration Entries File
Ask a question
QUICK ANSWER

A REG file is a plain-text export of Windows Registry keys and values. Double-clicking one does not open it for viewing - it merges those entries into your registry immediately after a UAC prompt, changing Windows settings. To read it safely first, right-click and choose Edit to open it in Notepad. REG files work on Windows only.

Developer: Microsoft Category: System Files MIME: text/plain
OPENS ON Windows
Related: .NOMEDIA · .DLL · .TMP · .LNK

On this page

19k+ extensions indexed
Last reviewed Jul 27, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the REG file format?

Windows registry files can be saved with the .reg extension. It is a plain-text file that can be opened in any text editor - to read it safely, right-click and choose Edit rather than double-clicking, which merges its contents directly into the registry. A Registry file is created when registry keys are exported for backup purposes before making changes to the registry. .reg files can then be used to import those keys back and restore settings.

.reg file format - how information is stored

The Windows Registry is a hierarchical database that stores system, application, and hardware settings. .reg files encode that data in a structured plain-text layout similar in appearance to a .ini file. Modern files (Windows 2000 and later) are encoded as UTF-16 LE and begin with the header line Windows Registry Editor Version 5.00; legacy files from the Windows 9x era use the REGEDIT4 header and ANSI encoding. Each .reg file contains:

  • header line - the registry-editor identifier (Windows Registry Editor Version 5.00 or REGEDIT4)
  • key-path sections - registry entry paths with the syntax [<Hive name>\<Key name>\<Subkey name>]
  • value name lines - "Value name"=<type>:<data>, where the type prefix may be dword:, hex:, hex(2):, and so on; string values (REG_SZ) use a bare quoted form
  • default value - written as @= instead of a named entry
  • deletion markers - [-HKEY...] removes an entire key; "name"=- deletes a single value

Each new value uses a new line.

How are Windows .reg files used?

.reg files can import or export registry data. They are applied by regedit.exe - double-clicking triggers a UAC and confirmation prompt, then merges the entries into the live registry - or by the command-line reg.exe utility. Unlike a .bat script, a .reg file cannot run arbitrary commands; it only adds, updates, or deletes registry entries. It is strongly advised to back up the registry before applying any .reg file and to review its contents in a text editor first. Depending on the changes made, it may be necessary to restart the system.

Security & safety

RISK: HIGH

This is the key fact for .reg files: double-clicking one MERGES it into your Windows Registry, changing system/app settings immediately after a UAC + confirmation prompt - it does not just open for viewing. A malicious .reg can disable Windows Defender/Update prompts, add auto-start malware, change file associations, or break the OS, and entries prefixed with '-' delete keys. Safe practice: NEVER run a .reg from an untrusted source; right-click > Edit to read it in Notepad first, export a backup of the affected branch (regedit > File > Export), and only then apply. Beware "registry cleaner/optimizer" tools advertised alongside .reg files - many are low-value or bundle adware (PUPs); Windows needs no third-party app to handle .reg.

Format details

in a nutshell
FULL NAMEWindows Registry Export / Registration Entries Fileaka Registry file, Registration entries
DEVELOPERMicrosoftsince Windows 95 (.reg import/export); current text format since Windows 2000/XP
CATEGORYSystem Files
MIME TYPEtext/plain
TYPERegistry key/value export script (text)

Programs that open REG files

Windows3 apps
Windows Notepad Built-in Right-click the .reg > Edit (or Open with > Notepad) to READ it without applying. Always do this before running an untrusted .reg.
Notepad Open-source Open the .reg to read/edit the text safely; handles the UTF-16 encoding. Editing here does not apply changes.
Registry Editor (regedit) Built-in Double-click to merge it (UAC prompt appears), or in regedit use File > Import to apply, and File > Export to create a .reg backup.

Technical details

deep spec
File encodingUTF-16 LE with optional FF FE BOM (modern, Windows 2000+); ANSI (legacy REGEDIT4, Windows 9x)
Format identifierFirst line is always a header string: "Windows Registry Editor Version 5.00" (modern) or "REGEDIT4" (legacy)
MIME typetext/plain
StructureHeader line, then [HKEY_...\Key\Subkey] section blocks, each containing "ValueName"=type:data lines; blank lines separate sections
Supported data typesREG_SZ (quoted string), REG_DWORD (dword:), REG_BINARY (hex:), REG_EXPAND_SZ (hex(2):), REG_MULTI_SZ (hex(7):), REG_QWORD (hex(b):)
Default value syntax@= denotes the unnamed default value of a key
Key deletion syntaxPrefix the key path with a minus sign: [-HKEY_...\Key]
Value deletion syntaxAssign a hyphen as the data: "ValueName"=-
Line continuationLong hex/binary values may be split across lines using a trailing backslash (\)
Import methodDouble-click invokes regedit.exe and merges entries after a UAC + confirmation prompt; CLI: reg import file.reg
CompressionNone - plain text
Checksum / integrityNone - no built-in checksum or digital signature
Platform supportWindows only; treated as plain text on macOS and Linux with no registry effect
Associated toolsRegistry Editor (regedit.exe), reg.exe (command-line import/export/query)
ReleasedWindows 95 (.reg import/export); current text format since Windows 2000/XP
Latest versionWindows Registry Editor Version 5.00 (UTF-16, since Windows 2000)
Specificationlearn.microsoft.com

REG conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with REG files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about REG files.

Frequently asked questions

How do I open a REG file to read it (not apply it)?
Right-click the file and choose Edit, or open it with Notepad/Notepad++. That shows the text without changing your registry. Double-clicking, by contrast, applies it.
What happens if I double-click a REG file?
Windows asks (UAC + a confirmation dialog) whether to add the entries to your registry, and on confirmation it merges them immediately, changing settings. Don't do this with files you don't trust.
Are REG files safe?
Only if you trust the source and have read them. A .reg can change or delete critical Windows settings. Read it in Notepad first and back up the affected branch before applying.
How do I apply a REG file silently or from a script?
Use 'regedit /s file.reg' or 'reg import file.reg' from Command Prompt/a batch file. The /s flag suppresses the prompt - only use it for trusted files.
How do I undo changes a REG file made?
Restore from a backup you exported beforehand. If you didn't back up, you may need a manual registry edit or System Restore. Always export the branch before importing a .reg.
Do REG files work on Mac or Linux?
No. The Windows Registry exists only on Windows, so a .reg file does nothing on macOS or Linux. You can still open it as a text file there to read it.
Do I need a 'registry cleaner' to open a REG file?
No - Windows handles .reg natively with regedit and Notepad. Most registry cleaners/optimizers are unnecessary and some are adware; avoid them.

References

1Microsoft - Windows registry for advanced userslearn.microsoft.com
2Microsoft - How to add, modify, or delete registry subkeys/values using a .reg filesupport.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.MDMarkdown Document
3.CRDOWNLOADChrome Partial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.ICSiCalendar data file

Related extensions

.NOMEDIAAndroid No-Media Marker File
.DLLDynamic Link Library
.TMPTemporary File
.LNKWindows Shell Link (Shortcut)
.PKGmacOS Installer Package
.ETLEvent Trace Log

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z