Number Base Converter

Convert numbers between binary, octal, decimal, hexadecimal and base 36.

· CalcFlow Editorial

255 decimal = 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.

Common Number Bases Conversions

Decimal (base 10)Binary (base 2)Octal (base 8)Hexadecimal (base 16)
1 decimal111
2 decimal1022
4 decimal10044
8 decimal1000108
10 decimal101012A
16 decimal100002010
64 decimal100000010040
100 decimal110010014464
255 decimal11111111377FF
1,000 decimal111110100017503E8

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. Pick the unit you have in the left selector and the unit you want in the right selector.
  2. Type a number in either box; the other box updates instantly.
  3. Use the swap button to reverse the direction and Copy result to copy the answer.

Frequently Asked Questions

Q

How do I convert binary to decimal?

Add the powers of two for each 1 digit. 1011 is 8 + 2 + 1 = 11.
Q

What is 255 in hex?

255 in decimal is FF in hexadecimal.
Q

Why is hexadecimal used in computing?

Each hex digit maps to exactly four bits, so it is a compact way to write binary values.

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