Is a .reg File Safe to Run? How to Read One Before You Double-Click It

Flat navy illustration of a blank document with a magnifying glass over line strokes, a green checkmark seal on one side and an amber warning triangle on the other
Flat navy illustration of a blank document with a magnifying glass over line strokes, a green checkmark seal on one side and an amber warning triangle on the other

Is a reg file safe? It can be, but only after you have read what it changes. A .reg file is a plain text list of registry changes, so you can open it and read every line before anything happens. This guide shows how to do that, what each line means, and which lines deserve a second look.

Last reviewed: November 24, 2026. Steps were compared with Microsoft documentation where a page exists; none were run on a real PC. The top picture is an illustration, not a screenshot.

Quick answer

Short version

  • A .reg file is plain text, so you can read it in Notepad before deciding anything.
  • Double-clicking one can offer to merge its contents into the registry. Do not confirm a file you have not read.
  • Look first for deletion lines, startup keys, security policy keys and sign-in keys.
  • If the file came from a website, forum or video, ask where it came from before you run it.
  • Back up the keys it touches first, and never run a file that asks you to switch off protection.

In this guide

What a .reg file is

A .reg file is a text file that lists changes to the Windows registry. The registry is the database where Windows and many programs keep their settings. A .reg file can add keys, change values or delete them. Because it is plain text, anyone can write one and anyone can read one.

That readability is useful. You do not need a special tool to see what a .reg file will do. Open it in a text editor and read the lines. For background on how the registry is organised, see our guide to registry hives, keys and values explained.

Double-clicking is different from opening. On many Windows versions, double-clicking a .reg file offers to merge it into the registry. Once you confirm, the changes apply in one step, and nothing is shown line by line.

Why a registry file can be risky

Registry changes can affect startup, security settings and how programs open files. Some changes are harmless, such as a display preference. Others can stop a program from working or switch off a protection feature. The file name alone does not tell you which kind you have. Our guide to common registry problems and their causes covers the symptoms people often blame on the registry.

A .reg file can also delete things. One deletion line can remove a whole branch of settings. A merge applies every line it contains, so a single bad line is enough to cause trouble.

Note

A .reg file is not a program. It cannot run code by itself. The risk comes from what its lines change, and some of those changes can start programs later.

Is a reg file safe? Read it first, never double-click

Treat every .reg file as unknown until you have read it. The safe first step is to open it in Notepad, not to merge it. Notepad only displays the text. It does not change the registry.

Before you start

Do not double-click a .reg file you do not recognise. Double-clicking is the action that offers the merge. Reading the file is a separate step, and it comes first.

Open the file in Notepad

  1. Find the file. Leave it where it is. Do not move it to the desktop or a startup folder first.
  2. Right-click the file. A context menu opens next to the pointer.
  3. Choose Show more options. On Windows 11 the full menu sits under this entry. Menu names vary by version.
  4. Choose Edit or Open with Notepad. Pick the Notepad entry, not Merge.

You should see the file as plain text, starting with a header line. Nothing on your PC should change when the file opens.

If this does not work, the file may be linked to another editor. Use Open with and select Notepad from the list. If Notepad is not listed, stop. Do not look for another way to merge the file.

Read the whole file

Read every line, not just the first few. A harmless header can sit above a long list of changes. Look at each key path and every deletion line, as described in the next section.

Long files that touch many unrelated areas deserve extra caution. A test in Windows Sandbox or a virtual machine can show what it does. If the source cannot explain why a file changes so much, that is a reason to walk away.

Anatomy of a .reg file

Most .reg files follow the same pattern. Each line does one of a few jobs. Once you know the pattern, you can scan a file quickly and spot the lines that matter.

The first line identifies the file type. Current files start with Windows Registry Editor Version 5.00. Older files may start with REGEDIT4, which came from earlier versions of Windows. A file with no header, or a garbled one, is not a normal export and should not be merged.

The header does nothing harmful on its own. It only tells Windows how to read the lines below it. Anyone can copy a header from a real export, so a correct header does not prove the file is safe.

Key lines

A key line sits in square brackets and holds a registry path. It names the place where the values below it will be written. Paths start with a root such as HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE. The first affects only the signed-in user. The second affects the whole PC.

The end of the path matters most. A path under a startup area or a policy area is a bigger matter than a path under a program's own colour settings. Read the full path, not just the root.

Value lines

A value line sits under a key line. It has a name in quotes, an equals sign and the data. Text data is in quotes. Number data can be a dword value with eight hexadecimal digits, or a hex value with a type prefix. The data is what the setting will hold after a merge.

Windows Registry Editor Version 5.00

; Sample for reading only. A semicolon starts a comment line.
[HKEY_CURRENT_USER\Software\Example\App]
"Theme"="dark"
"Count"=dword:00000003
@="Default text for this key"
"OldSetting"=-

[-HKEY_CURRENT_USER\Software\Example\OldKey]

Read the sample from top to bottom. The header is line one, and the key line opens a path. Four value lines follow. The OldSetting line deletes one value, and the last line deletes a whole key. This is only an example of the layout.

Default values and comments

The @ sign on its own sets the default value of a key. A key can have one default value and many named values. Semicolons start comment lines. Windows ignores comments, so they are notes for people.

A comment cannot make a dangerous line safe. A line that says the change is harmless still changes what it says. Read the code, not the comment.

Deletion lines

Deletion lines are the most dangerous lines in a .reg file. A key deletion has a hyphen inside the square brackets, before the path. It removes that key and everything under it. A value deletion ends the line with an equals sign and a hyphen. It removes only that value.

Before you start

Treat every hyphen as a deletion until you have checked it. A single key deletion can remove a group of settings in one merge. Check your backup before you go further.

Some deletions are meant to clear leftovers. Our guide to leftover registry entries after uninstalling programs explains that case. If a key refuses to change at all, that is a different problem, covered in our guide to keys that refuse changes because of permissions.

Red flags and what they touch

Some registry areas control things that matter for safety. A change there can affect startup, security or sign-in. The table lists common areas to check. It is for reading the file, not for editing the registry.

General guidance from security practice is that these areas deserve a second look. Many legitimate tools also use them, so a match is a reason to ask, not proof of harm.

Areas to check

What it touchesWhere it shows up in a fileWhy to look twice
Startup programsRun or RunOnce key pathsA new entry can start a program each time you sign in.
Security protectionPolicy key paths for Windows Security or DefenderSwitching protection off makes the PC easier to attack.
Task Manager and other toolsPolicy key paths that block toolsA blocked tool makes problems harder to see and remove.
Program redirectionImage File Execution Options key pathsA debugger entry can send a program to a different file.
Sign-in processWinlogon key pathsChanges here can alter what runs when you sign in.
Background servicesServices key paths with a Start valueA changed Start value can turn a service on or off.

Startup entries are one of the most common ways a file changes behaviour after sign-in. Our guide to startup entries under Run keys explains those paths. For the apps themselves, see which startup apps are safe to disable.

If you see a message that registry editing is blocked, our guide to registry editing disabled by an administrator explains what that means. A file that tries to block such tools is a red flag in itself.

How to read your result

No deletion lines and no sensitive areas: the file is simpler to judge, but still check the source. One or two sensitive areas: ask the source to explain each line before you go on. Deletions, or any key that turns off protection, with no clear reason: do not merge it.

Where the file came from

The source matters as much as the contents. A file from an official support article, or one you exported yourself, carries less risk than a file shared in a comment thread. Even official pages can be copied or mistyped by someone else.

Website downloads

Check the domain name carefully. A page that looks official may be a copy with a slightly different address. Scripts that bundle .reg files need the same reading. See our guide to debloat scripts that are safe for that kind of file.

Forums and comment threads

Forum posts often include code pasted by other users. Nobody checks each line before it is posted. Read the file as if you wrote none of it. If a poster says the file removes malware, first read our guide to checking registry entries for malware.

Videos and social posts

A video description may link to a file that does something different from what the video shows. Treat the file as separate from the video. Open it in Notepad and judge it by its lines. Many posts promote cleaners with urgent warnings. Our note on fake cleaner pop-up warnings explains that pattern.

Files you exported yourself

If you exported a key yourself, the file reflects what that key held at the time. It can still bring back values you did not mean to keep. Read it before any merge, and compare it with your own notes about what you changed.

Run, ask or delete

Once you have read the file, choose one of three outcomes. Run is rare and only fits a file you expected, understand and have backed up. Ask is the default when you are unsure. Delete fits a file that asks you to switch off protection or comes from a source you cannot trust.

  • Did you expect this file?
    • No. Do not merge. Ask the source what it changes. If there is no answer, delete the file.
    • Yes. Continue with the questions below.
  • Does it contain deletion lines?
    • Yes. Ask the source to explain each one. Do not merge until every deletion makes sense.
    • No. Continue.
  • Does it touch startup, security, policy or sign-in areas?
    • Yes. Ask first. If the file also asks you to switch off protection, delete it.
    • No. Continue.
  • Is it only plain display or preference values, with a backup in place?
    • Yes. Run is reasonable, though you should still be ready to undo it.
    • No. Ask again, or delete.

If the file came from a cleaner, use our checklist for judging PC cleaners before you decide. For products that promise a quick clean, see also cleanup software you should avoid.

If you are unsure what a line does, the Repair Assistant tool can help you narrow down the symptoms first.

What a .reg file cannot do

A .reg file cannot run code by itself. It cannot copy files, install software or run a script on its own. It is a list of registry changes and nothing more.

It can still change settings that start programs later. A Run key, for example, can start a program each time you sign in. This is why a file that looks like only a setting still needs reading before you merge it.

A .reg file is also not a repair. If you suspect a damaged registry, read our guide to repairs for a corrupted registry instead. For damaged Windows files, the system file checks with SFC and DISM guide is the better starting point.

Nor is it a cleaner. For cleaner tools, see the registry cleaner guide for Windows 11, and our note on what cleaner error reports mean. To compare the two approaches, read automatic cleaners compared with manual cleaning.

Back up before any change

Before you merge any .reg file, back up the keys it touches. Our guide to a registry backup before any change is the right place to start.

A backup is only useful if you can find it later. Keep it outside the file you are checking, and note the date. If a cleanup has already changed things, see restoring the registry after cleaning for the recovery side.

A backup does not make an unread file safe. It only gives you a way back if a merge goes wrong. Read first, decide second, and back up before any change.

A note for Windows 10 PCs

Support for Windows 10 ended on October 14, 2025. Microsoft's support page on the end of Windows 10 support says the PC still works, but it no longer receives free security updates or technical support.

The same page says the consumer Extended Security Updates program can protect a Windows 10 device until October 12, 2027. On an unsupported system, read every .reg file with extra care. The page also notes that a PC without continued updates is at greater risk from viruses and malware.

Safety checklist

  1. Opened in Notepad? You read every line, not just the header.
  2. Source known? You can say where the file came from and who wrote it.
  3. Deletion lines checked? Each key or value deletion makes sense to you.
  4. Sensitive areas checked? Startup, security, policy, sign-in and redirection areas are explained.
  5. No protection switched off? The file does not ask you to disable a security tool.
  6. Backup ready? You have a copy of the keys the file touches.
  7. Still unsure? You ask before you run, and you delete if no answer comes.

Frequently asked questions

About reading a .reg file

Is it safe to open a reg file in Notepad?

Yes, opening it in Notepad only displays the text. Notepad does not merge the file into the registry, so reading it is the safe first step. Check where the file came from before you open it.

What does the header line in a reg file mean?

It tells Windows which export format the file uses, such as Windows Registry Editor Version 5.00. It does not prove the file is safe, because anyone can copy a header from a real export.

What is the difference between a key deletion and a value deletion?

A key deletion has a hyphen inside the square brackets and removes the whole key with everything under it. A value deletion ends with an equals sign and a hyphen, and removes one named value. Read both with care.

Can a comment make a reg file safe?

No. Comments start with a semicolon and are ignored by Windows. They only explain the file to a reader, so a comment that says the file is harmless changes nothing.

About risk and next steps

Does an antivirus scan replace reading the file?

No. A scan can flag files it already knows, but it cannot tell you what a setting does on your PC. Read the lines and check the source, even when a scan finds nothing.

Why does double-clicking a reg file ask me to confirm?

On many Windows versions, double-clicking offers to merge the file into the registry. That prompt is your chance to stop. General guidance is to read the file before you confirm, and menu names vary by version.

What should I do with a reg file from a pop-up?

Do not open or merge it unless you can confirm where it came from. Pop-ups that offer a fix are a common pattern in scams. Our note on fake cleaner pop-up warnings explains that pattern in more detail.

Can a reg file bring back support for Windows 10?

No. A registry file does not restore support. Support for Windows 10 ended on October 14, 2025, and the consumer Extended Security Updates program adds security updates only until October 12, 2027.

More help is available on our PC repair guides page, where you can browse other topics. Start with the reading steps above, then move to the guide that matches your symptom.

Sources