Understanding Registry Value Data Types

by Barry Dysert
(last updated June 19, 2017)


If you ever have to get into the registry, you may be curious to know what value data types exist. Every key's value is assigned a data type. The list of valid data types includes:

  • REG_SZ. A null-terminated string
  • REG_BINARY. Binary data
  • REG_DWORD. A 32-bit number
  • REG_QWORD. A 64-bit number
  • REG_MULTI_SZ. A sequence of null-terminated strings, terminated by a null value
  • REG_EXPAND_SZ. A null-terminated string that contains unexpanded references to environment variables (like %PATH%)

Of course, if you're editing the registry you'll need to use the data type appropriate for the key you're creating. For example, there's a registry tweak you can do that will disable Windows from constantly checking for low disk space (and therefore increase by a bit the amount of resources available for other things). This is at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies. If you click on the "Explorer" folder you can create a key named "NoLowDiskSpaceChecks". To disable Windows from doing the disk space checking, you want to put a 1 in for that key's value.

Obviously, you could use a data type of REG_BINARY, REG_DWORD, or REG_QWORD since they will all hold the value 1 with no problem. I used REG_DWORD, though, since there may come a time when the key may take on more than two values, so I wouldn't want to be limited to REG_BINARY. And REG_QWORD seems like a lot of space to simply hold a 1.

 This tip (13035) applies to Windows 7, 8, and 10.

Author Bio

Barry Dysert

Barry has been a computer professional for over 35 years, working in different positions such as technical team leader, project manager, and software developer. He is currently a software engineer with an emphasis on developing custom applications under Microsoft Windows. When not working with Windows or writing Tips, Barry is an amateur writer. His first non-fiction book is titled "A Chronological Commentary of Revelation." ...


Transferring Pictures from a Camera

Transferring pictures from a camera to your computer may be simpler than you think. This tip describes the process.

Discover More

Determining if You Have 32-bit or 64-bit Windows

There are occasions when you may want to know whether you're running the 32-bit or 64-bit version of Windows. This tip ...

Discover More

Sorting a Folder

When you have a lot of files in a folder, it is helpful to be able to know how to sort through all the files. Windows 10 ...

Discover More
More WindowsTips

Finding Information in the Registry

The Registry is the central depository of configuration information used by Windows and by programs running on your ...

Discover More

Backing Up the Windows Registry

Windows wouldn't function if it weren't for the Registry. It's important, therefore, to back it up�"especially before ...

Discover More

How the Registry is Organized

There may come a time when you need to view or even modify the registry. In such a case, it's good to know how the ...

Discover More

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 8 + 0?

2017-09-06 04:19:20


I think the space savings would be negligible, and i wouldn't want to try it anyway. Sounds like that would be asking for trouble.

2017-09-06 01:12:48

Amaroq Starwind

Would Windows function correctly if you changed some of the default DWORD values to regular BINARY values? And would doing so use less space?

Newest Tips

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.