Hexadecimal (base 16) to Binary (base 2) Converter

A number base says how many distinct digits a positional system uses. Use the converter below to turn hexadecimal (base 16) into binary (base 2) and back.

· CalcFlow Editorial

FF hex = 11111111 binary

Results shown are estimates for informational purposes only. Nothing on CalcFlow is financial, tax, legal, or medical advice. Always consult a qualified professional before making important decisions.

Hexadecimal (base 16) to Binary (base 2) Conversion Table

Hexadecimal (base 16)Binary (base 2)
1 hex1 binary
2 hex10 binary
4 hex100 binary
8 hex1000 binary
10 hex1010 binary
16 hex10000 binary
64 hex1000000 binary
100 hex1100100 binary
255 hex11111111 binary
1,000 hex1111101000 binary

Binary (base 2) to Hexadecimal (base 16) Conversion Table

Binary (base 2)Hexadecimal (base 16)
1 binary1 hex
2 binary2 hex
4 binary4 hex
8 binary8 hex
10 binaryA hex
16 binary10 hex
64 binary40 hex
100 binary64 hex
255 binaryFF hex
1,000 binary3E8 hex

Worked example: FF hex = 11111111 binary. Decimal 255 is binary 11111111, octal 377 and hexadecimal FF.

Need other units? Open the full Number Base Converter.

Formula

value = sum of digit x base^position; hex digits 0-9 and A-F; base 36 uses 0-9 and A-Z

Understanding Number Bases Conversion

A number base says how many distinct digits a positional system uses. Humans count in base 10. Computers store numbers in base 2 (binary) and programmers often write them in base 16 (hexadecimal) because each hex digit stands for exactly four bits. Octal (base 8) groups bits in threes and still appears in file permissions. This tool converts whole non-negative numbers up to 9,007,199,254,740,991 (2^53 - 1), the largest integer that is always exact.

Tips and Best Practices

  • 1One hex digit equals four binary digits, so 0xFF is 11111111.
  • 2Binary 1010 is decimal 10, hex A.
  • 3Add 0x or 0b prefixes only in code; this tool wants plain digits.

Real-World Example

Decimal 255 is binary 11111111, octal 377 and hexadecimal FF.

Common Mistakes to Avoid

  • Entering a digit that does not exist in the base, such as 2 in binary.
  • Confusing letter O with zero in octal and hex.
  • Expecting fractions or negatives; only whole non-negative numbers are supported.

How to Use

  1. Type a number in the Hexadecimal (base 16) box.
  2. The Binary (base 2) result appears instantly; you can also edit the Binary (base 2) box to convert backwards.
  3. Use the swap button to reverse the direction and Copy result to copy the answer.

Frequently Asked Questions

Q

How many binary (base 2) are in 10 hex?

10 hex equals 1010 binary.
Q

How many hexadecimal (base 16) are in 10 binary?

10 binary equals A hex.
Q

What is the formula to convert hexadecimal (base 16) to binary (base 2)?

value = sum of digit x base^position; hex digits 0-9 and A-F; base 36 uses 0-9 and A-Z.
Q

What is 255 in hex?

255 in decimal is FF in hexadecimal.

Sources: Standard positional numeral systems; ECMAScript Number.MAX_SAFE_INTEGER = 2^53 - 1.