Registry Value Types Explained: REG_SZ, REG_DWORD, REG_BINARY, REG_MULTI_SZ and More

Five rounded tiles in a row, each showing a different abstract glyph: dots, a square grid, binary-like squares, stacked lines and a small box
Five rounded tiles in a row, each showing a different abstract glyph: dots, a square grid, binary-like squares, stacked lines and a small box

Last reviewed: November 25, 2026 (Pacific). Steps compared with Microsoft documentation where it exists; none was run on a real PC. The picture at the top is an illustration, not a screenshot.

The registry value types tell Windows what kind of data a value holds. A value can hold text, a number, a list of text lines or raw bytes. Knowing the type helps you read what you see, and it explains why a value that looks right can still behave wrongly. This guide explains each type in plain words, with look-only examples. It never asks you to change anything. For the basics of hives, keys and values, start with the basics of hives, keys and values.

Quick answer: the registry value types in plain words

Quick answer

  • A registry value type says what kind of data a value stores.
  • REG_SZ holds one line of text. REG_DWORD holds a 32-bit number. REG_QWORD holds a 64-bit number.
  • REG_BINARY holds raw bytes. REG_MULTI_SZ holds a list of text lines.
  • REG_EXPAND_SZ holds text with placeholders such as %SystemRoot% that programs expand when they read it.
  • Check the type before you read the data. A DWORD shown in hex and in decimal is the same number.

In this guide

Why the type matters for a value

Every registry value has a name, a type and data. Microsoft says a registry value can store data in one of several formats, such as a string value or an integer value. The type states which format a value uses. It tells a program how to read the bytes that are stored.

A program that expects a number but finds text may skip the value or fall back to a default. A program that expects text but finds raw bytes may fail in a different way. The type is the first clue to what a setting needs. Only the vendor can confirm the exact type a product expects.

Where a value sits is a separate question. The root key that holds a value, such as HKEY_CLASSES_ROOT, changes what the key is for. For that, see the HKEY_CLASSES_ROOT root key explained. For the before-and-after view of an install, read comparing registry changes before and after an install. This guide only covers the type of the value itself.

The Microsoft list of value types

The Registry Value Types page on Microsoft Learn lists the types defined in the winnt.h header file. The list includes REG_BINARY, REG_DWORD, REG_EXPAND_SZ, REG_MULTI_SZ, REG_NONE, REG_QWORD, REG_SZ and link types. The sections below group them by what they hold. The wording in quotes comes from that page.

Text types: REG_SZ, REG_EXPAND_SZ and REG_MULTI_SZ

REG_SZ is defined as "A null-terminated string." In plain words, it holds one line of text, such as a name, a version or a folder path. A look-only example is a Version value that holds the text 2.2.

REG_EXPAND_SZ is defined as "A null-terminated string that contains unexpanded references to environment variables, for example, %PATH%." It holds text with a placeholder. The placeholder is not expanded in the registry itself. A program expands it when the program reads the value, using the Windows function ExpandEnvironmentStrings, as the page describes.

REG_MULTI_SZ is defined as "A sequence of null-terminated strings, terminated by an empty string." In plain words, it holds a list of text lines. Each line is separated from the next by a null character. The page notes that the final terminator must be counted in the length.

Number types: REG_DWORD, REG_QWORD and their byte-order forms

REG_DWORD is defined as "A 32-bit number." Programs often use it for a flag, a count or a timeout. A value of 0 or 1 is commonly read as off or on. That reading is general guidance, not a rule set by Microsoft.

REG_QWORD is defined as "A 64-bit number." It holds a larger number than a DWORD, in the same way.

REG_DWORD_LITTLE_ENDIAN and REG_DWORD_BIG_ENDIAN name the byte order. The Microsoft page says the little-endian form is defined as REG_DWORD in the Windows header files, because Windows runs on little-endian computers. The big-endian form is described as used on some UNIX systems. You do not need to choose between them when you read a value.

Raw and special types: REG_BINARY, REG_NONE and REG_LINK

REG_BINARY is defined as "Binary data in any form." It holds raw bytes. Editors often show these as pairs of hex digits, which is general guidance rather than a Microsoft rule.

REG_NONE is defined as "No defined value type." It means the value has no type set. You will rarely see it in ordinary settings.

REG_LINK is defined as "A null-terminated Unicode string that contains the target path of a symbolic link." The page says it is created by a program that calls RegCreateKeyEx with REG_OPTION_CREATE_LINK. Reading one is enough for this guide. Do not create links by hand.

Little-endian bytes in plain words

Byte order sounds technical, but the idea is simple. Microsoft describes little-endian format as storing a multi-byte value from the lowest byte to the highest byte. The page gives the example that the value 0x12345678 is stored as 0x78 0x56 0x34 0x12.

You may see this order when a raw dump of bytes is shown. A normal number view in the editor shows the number the right way round. If a DWORD looks reversed in a raw byte view, that is expected, and it is not a sign of damage. Keep the byte view for raw data, and read numbers in the number view.

How Registry Editor shows each type

The notes in this section are general guidance. We did not confirm them on a Microsoft page we opened. Icons and labels can change between Windows versions, so match the type text rather than the picture.

In the right-hand pane, Registry Editor usually lists each value with a name, a type and its data. Look at the type column first. For a DWORD or QWORD, the Modify dialog normally offers a base choice of hexadecimal or decimal. That choice changes only how the number is shown, not the number itself. If you open the dialog just to look, close it with Cancel.

Values under HKEY_CURRENT_USER come from your own account's files. For those, the per-user file explanation in the per-user registry files NTUSER.DAT and UsrClass.dat helps. Remember that a view is only a display. It is not a list of what a program will do.

The (Default) value

The Microsoft Structure of the Registry page describes a value as "a value name and its associated data, if any." A key can also hold an unnamed value. Registry Editor commonly shows that unnamed value as (Default). The label is general guidance. The Structure page we opened does not use it.

The (Default) value has a type too. It is often REG_SZ. A key with no (Default) value is normal. Do not add, remove or rename a (Default) value to test anything. Read it only, and note its type and data for your record.

How reg query shows each type

The reg query page on Microsoft Learn describes the command as returning "a list of the next tier of subkeys and entries" under a specified subkey. Its /t switch takes a type name. The page says: "Valid types are: REG_SZ, REG_MULTI_SZ, REG_EXPAND_SZ, REG_DWORD, REG_BINARY, REG_NONE. If not specified, all types are searched." The list on that page does not name REG_QWORD, so do not assume /t accepts it. Read the reg query page itself for the full syntax, and see how reg query reads registry values for more detail.

Read one value with this look-only command. Replace the key path with the one you are checking.

reg query "HKCU\Software\ExampleVendor" /v Version

An illustrative output line looks like this. The name, type and data sit in three columns, with the type in the middle.

HKEY_CURRENT_USER\Software\ExampleVendor
    Version    REG_SZ    2.2

To list only the DWORD values under the same key, add the /t switch. Each line shows the type, so you can confirm what you are reading.

reg query "HKCU\Software\ExampleVendor" /t REG_DWORD

The same value in PowerShell

PowerShell can show the data of a value, and it can also show the type. The two commands below are read-only. For a fuller walk through the first command, read read registry values with Get-ItemProperty. The first shows the data.

Get-ItemProperty -Path "HKCU:\Software\ExampleVendor" -Name Version

That output shows the data, not the type. For the type, call GetValueKind on the key. Microsoft describes the method as "Retrieves the registry data type of the value associated with the specified name." It returns a RegistryValueKind.

(Get-Item "HKCU:\Software\ExampleVendor").GetValueKind("Version")

The names that come back, such as String or DWord, are general guidance from the .NET enumeration. We did not open that enumeration page. If the value does not exist, Microsoft's page says the call raises an IOException, because "the name/value pair specified by name does not exist." If you are not sure of the key path, first find it with a search for a program's registry key.

Reading a DWORD in hex and decimal

A DWORD can be shown in hexadecimal or decimal. The stored number is the same in both views. Hex uses the digits 0 to 9 and the letters A to F. Each hex digit stands for a value from 0 to 15. The letter A is 10, so 0x0A is the number ten. The 0x prefix tells you the number is in hex.

The table below is an illustration. The values are invented for teaching, and the meaning column is general guidance, not a rule for any real product.

Shown in hexShown in decimalWhat it often meansReader question
0x000000000Off, or noneIs the feature disabled?
0x000000011On, or one itemIs the feature enabled?
0x0000000A10A count or a number of secondsWhat does ten stand for?
0x0000001016A larger count or a sizeIs the hex value the same as decimal?

Two views of the same DWORD can look different and still match. Before you decide that a value is wrong, convert the hex to decimal and check the vendor's documentation for its meaning.

Common reader mistakes

A wrong type can break a setting

A program reads a value in the form it expects. If the data is stored as text where a number is expected, the program may ignore it. Some settings simply stop working. The type is part of the setting, so a value that looks similar may still be the wrong kind. Only the vendor can confirm the right type. If a change does not stay put, read why a registry change will not stay saved.

An expandable string holds %SystemRoot%, not a path

A REG_EXPAND_SZ value can look like a path, but it still holds a placeholder. Text such as %SystemRoot% is not a folder name you can open. A program expands it when it reads the value. A readout that still shows the percent signs is normal for this type, and it does not mean the value is broken.

Multi-string lists are split by null characters

A REG_MULTI_SZ value holds several strings, and each one ends with a null character. The editor may show the lines apart. Copying the value into a plain text box can drop the separators. Read the list line by line, and count the entries rather than the spaces between them.

Two copies can look alike

Two keys with the same name can be different copies, depending on which view of the registry you read. A value that differs between two copies is not always a type error. The explanation in the 32-bit and 64-bit registry views helps you tell the copies apart before you compare their types. A value can also appear in a different place than expected when a program writes through virtualization; see registry virtualization and the VirtualStore.

Why a .reg file states the type

A .reg file writes the type next to each value, so the file itself carries the type. In the usual layout, text values appear in quotes. DWORD values use a dword: prefix followed by eight hex digits. Binary and multi-string values use hex: prefixes, and a number in brackets shows the type code. These details are general guidance. We did not confirm this layout on a Microsoft page we opened.

"Version"="2.2"
"Count"=dword:0000000a

Reading a .reg file for its types is a look-only task. The file is not safe just because the type looks ordinary, so check it first with checking whether a .reg file is safe. If a file will not import, what to do when a .reg file will not import covers that problem. This guide never asks you to import or run a .reg file.

Type by type at a glance

The column "How it often looks" is general guidance. The other columns follow the Microsoft definitions quoted above.

TypeHoldsHow it often looksTypical reader question
REG_SZOne line of textPlain text, often in quotes in a .reg fileIs this a name or a folder path?
REG_EXPAND_SZText with %NAME% placeholdersText that still shows percent signsWhy does the path look unexpanded?
REG_MULTI_SZA list of text linesSeveral lines, separated by nullsWhy are there gaps between entries?
REG_DWORDA 32-bit numberA hex or decimal numberIs this a switch or a count?
REG_QWORDA 64-bit numberA longer hex numberWhy is this number so large?
REG_BINARYRaw bytes in any formPairs of hex bytesWhat do these bytes mean?
REG_NONENo defined typeEmpty or raw dataWhy does this value have no type?
REG_LINKThe target path of a symbolic linkA path in text formIs this value a link?

What type am I looking at?

Use this tree for any value you cannot place. It ends in a look-only check, never in an edit.

  • Is the data plain text with no separators?
    • Yes: probably REG_SZ. If it contains %NAME% placeholders, it is probably REG_EXPAND_SZ.
    • No: go to the next question.
  • Is the data several lines, separated by null characters?
    • Yes: probably REG_MULTI_SZ.
    • No: go to the next question.
  • Is the data a number, shown in hex or decimal?
    • Yes: check the exact type with reg query /v, or with GetValueKind. It is REG_DWORD for 32-bit or REG_QWORD for 64-bit.
    • No: go to the next question.
  • Is the data pairs of hex bytes?
    • Yes: probably REG_BINARY.
    • No: go to the next question.
  • Does the value sit in a startup location, such as a Run key?

A safe-reading checklist

Follow these steps in order when you read a value. Each step only reads the registry.

  1. Write down the key path and the value name. Note them exactly before you read further.
  2. Read the type with a look-only command. Use reg query /v for the type, or the GetValueKind check shown above.
  3. Read the data in the matching form. Use decimal for a count, and hex for raw bytes.
  4. Keep a backup before any change. Read backing up the registry before any change first, even when you only plan to read.
  5. If a read is refused, stop. Read fixing registry permission errors safely and ask the administrator on a managed PC.
  6. Record the result and stop. Keep the note with the type and data. Do not import, delete or edit. If the symptoms point to damage rather than a value, read the common symptoms of registry problems.

Windows 10 note

Support for Windows 10 ended on October 14, 2025. Consumer Extended Security Updates run to October 12, 2027, as described on Microsoft's extended security updates page. The reg query page lists both Windows 10 and Windows 11 as applicable. For more guides, visit the PC repair guides homepage.

Frequently asked questions

Reading the types

Is REG_SZ the same as a text file?

No. REG_SZ holds one null-terminated string inside a registry value. It is not a file on disk. It is plain text, but the registry is not a text file you open in an editor.

Why does my DWORD show as 0x0000000a?

It is the same number as 10, written in hexadecimal. The 0x prefix marks hex. Check the base shown in the view, then compare with the decimal form.

Can a DWORD be read as text?

A program reads a DWORD as a number, not as a string. Look at the type first, then read the data in the form that matches it.

What does REG_NONE mean?

Microsoft defines REG_NONE as "No defined value type." It means no data type is set for the value. It is uncommon in ordinary settings, so ask the vendor if you see it on a product's key.

Using the values safely

Can I change a type to make a setting work?

No. The vendor sets the type a setting needs. Changing it can break the setting. Use the program's own settings, or ask the vendor for guidance.

Does a .reg file show the types?

Usually, yes. The file writes each type next to its value. Read it for the type, and do not import it to test anything.

Is reg query enough to read every type?

Not always. The /t list on the reg query page does not name REG_QWORD. For a 64-bit value, use GetValueKind or the type column in the editor view instead.

Is an unusual type dangerous by itself?

No. An unusual type is a question, not a verdict. Record it, follow the safe-reading checklist, and ask the vendor before you act on it.

How this guide was checked

The type definitions, the little-endian note and the list of types for the /t switch come from Microsoft Learn pages we opened. The Structure of the Registry page supplied the wording about values and the (Default) value. The GetValueKind page on Microsoft Learn supplied the PowerShell method and its exception wording. The Registry Editor icons and the Modify dialog base options are general guidance. So are the .reg file layout, the (Default) label and the "How it often looks" column. We did not confirm them on a Microsoft page we opened. Nothing in this guide was run on a real PC. The picture and the reg query and PowerShell outputs are illustrations.

Sources