Base conversion

Hex Calculator

Convert integer values between decimal, hexadecimal and binary.

Where hex is used

Hexadecimal is common in programming, memory addresses, color values and debugging because one hex digit maps cleanly to four binary bits. It is also used in web colors such as #FFFFFF for white and #000000 for black.

Example

The decimal number 255 equals FF in hexadecimal and 11111111 in binary. Each F represents 15, so FF means 15 x 16 + 15.

Input tips

Hex values use the digits 0-9 and the letters A-F. Prefixes such as 0x are common in programming, but the safest input is the hex value itself.

Limitations

This calculator is for integer base conversion. It does not interpret signed binary formats, floating-point numbers, byte order or color transparency unless a related tool states that explicitly.

Last reviewed: 2026-05-17

Before relying on this result

Use this calculator together with the formula, assumptions, limitations and examples on the page. If the topic involves health, tax, lending, investment, legal, safety or current-rate decisions, treat the number as an estimate and check the relevant primary source or professional guidance.

Calculator metadata last reviewed: 2026-05-14.