Windows Calculator’s Programmer mode is a quick, built-in way to translate whole numbers among decimal (base 10), hexadecimal (base 16), octal (base 8), and binary (base 2). It is ideal when you are reading a registry value, checking a color component, decoding a bit flag, or simply trying to remember why FF is not a typo.

Microsoft’s Windows Calculator documentation identifies Programmer mode as the place for binary, hexadecimal, and related work. The app’s own open-source test documentation also confirms the four supported bases—HEX, DEC, OCT, and BIN—and the way Calculator restricts unavailable digits when a base is selected.

Windows 11 Programmer Calculator displays 255 in hexadecimal, decimal, octal, and binary formats. Open Programmer mode​

  1. Open Start and search for Calculator.
  2. Launch the Calculator app.
  3. Select the Open navigation button (the three-line menu) in the upper-left corner.
  4. Select Programmer.

The display changes from the familiar standard calculator layout to a programmer-oriented panel. Near the top, you will see the base choices:

  • HEX — hexadecimal, base 16
  • DEC — decimal, base 10
  • OCT — octal, base 8
  • BIN — binary, base 2

You may also see a bit display and controls such as QWORD, DWORD, WORD, and BYTE. Those are useful for more advanced bitwise work, but they are not required for a straightforward conversion.

Convert a decimal number to hexadecimal and binary​

Let’s convert decimal 255.

  1. Select DEC.
  2. Enter 255.
  3. Look at the values shown beside the other bases.

Calculator should show:

BaseResult
HEXFF
DEC255
OCT377
BIN11111111

That is the entire trick: enter the value under its original base, then read the corresponding value beside the base you need. No formulas, no browser-based converter with enough ads to power a small city.

Copy the converted value​

To copy a result:

  1. Select the base value you want to use—for example, HEX to make FF the active value.
  2. Press Ctrl + C.
  3. Paste it where needed with Ctrl + V.

This is particularly handy when copying hexadecimal values into code, debugging tools, configuration files, or a design field that expects an RGB color component.

Convert from hexadecimal to decimal​

Suppose a value is written as 7B in hexadecimal and you want its decimal equivalent.

  1. In Programmer mode, select HEX.
  2. Enter 7B. You can use the on-screen A–F keys or type the letters from your keyboard.
  3. Read the value beside DEC.

The result is:

  • 7B hexadecimal = 123 decimal
  • 7B hexadecimal = 1111011 binary
  • 7B hexadecimal = 173 octal

Hexadecimal is common in programming because one hex digit maps neatly to four binary bits. For example, F represents binary 1111, while A represents binary 1010. That compactness is why developers routinely encounter values such as 0xFF, 7B, or DEADBEEF—the latter being memorable, not mystical.

Enter numbers in the correct base​

Programmer mode helps prevent invalid input by disabling digits that do not belong to the selected number system.

For example:

  • In BIN, only 0 and 1 are available.
  • In OCT, only 0 through 7 are valid.
  • In DEC, digits 0 through 9 are valid.
  • In HEX, digits 0 through 9 and letters A through F are valid.

So if you switch to Binary and cannot press 8, Calculator is not misbehaving. It is saving you from creating a number system crime scene.

A quick base-reference guide​

Number systemBaseAllowed symbolsCommon use
Binary20–1Bits, flags, low-level hardware and logic
Octal80–7Some Unix/Linux permissions and legacy systems
Decimal100–9Everyday counting and most user-facing values
Hexadecimal160–9, A–FCode, memory addresses, colors, IDs, debugging

Use the bit-size selector carefully​

Programmer mode includes data-size choices such as BYTE, WORD, DWORD, and QWORD. These are not merely decorative labels from a 1990s command prompt.

They determine how Calculator interprets the value’s bit width:

  • BYTE: 8 bits
  • WORD: 16 bits
  • DWORD: 32 bits
  • QWORD: 64 bits

For basic positive-number conversion, the default setting is usually fine. But bit width matters when you are investigating negative values, bit masks, shifts, or values copied from software that uses a specific integer type. The same bit pattern can represent a different signed decimal value depending on whether it is treated as 8, 16, 32, or 64 bits wide.

If you only need to convert 42 into 2A, leave the word-size controls alone. If you are debugging a DWORD error code or a 64-bit mask, select the matching size before drawing conclusions.

Common problems and fixes​

The A–F buttons are unavailable​

You are probably in DEC, OCT, or BIN mode. Select HEX before entering letters A through F.

Calculator will not accept a decimal point​

That is expected. Programmer mode is intended for integer-oriented work, not ordinary fractional-number conversion. Use Standard or Scientific mode for decimal fractions.

The binary result is longer than expected​

Check the selected bit size. An 8-bit, 16-bit, 32-bit, or 64-bit interpretation can affect how values, especially negative ones, are represented.

I entered a number and the value changed when I clicked another base​

That is normal and is the conversion feature at work. Clicking HEX, DEC, OCT, or BIN changes the active input base while Calculator preserves the underlying numeric value.

When this built-in tool is the right choice​

Windows Calculator Programmer mode is best for fast, one-off conversions involving whole numbers:

  • Translating decimal values into hex for programming or configuration work
  • Checking binary flags and bit masks
  • Reading hexadecimal values in error reports or logs
  • Converting RGB components between decimal and hex
  • Verifying octal permissions or legacy numeric values

For a large batch of conversions, a spreadsheet or script is usually more efficient. But for one value sitting in an email, a support ticket, or a line of code, Calculator is already on the PC and gets the job done without ceremony.

The key workflow is simple: open Programmer mode, choose the source base, enter the number, select or copy the equivalent value under the destination base. Once you know where the mode lives, converting 255 to FF becomes less “computer science exam” and more “two clicks before coffee.”