Number Base Converter

Convert between binary, octal, decimal, and hex

Display options

What is Number Base Converter?

Number Base Converter converts integers between binary, octal, decimal, and hexadecimal. Enter a value in any field and the other bases update. It is useful for checking bit masks, memory addresses, color codes, and values larger than 64 bits.

How to Use

  1. Enter an integer in the binary, octal, decimal, or hexadecimal field. Values with a 0b, 0o, or 0x prefix, and values separated by spaces or commas, can be pasted as they are.
  2. Review the converted values in the other fields.
  3. Toggle Group digits as needed.

Main Settings

Group Digits

This setting adds separators to long values. When it is on, binary and hexadecimal are grouped by 4 digits from the right, and octal and decimal by 3. Decimal uses commas; the other bases use spaces. Turn it off when you need the value without separators.

Use Cases

  • Checking values with prefixes such as 0b1010 and 0xFF
  • Reviewing bit masks and flag values in binary
  • Comparing hexadecimal memory addresses or color codes with decimal
  • Checking octal values such as UNIX permissions
  • Converting large integers, including values larger than 64 bits

Things to Keep in Mind

  • Only integers are supported. Fractions and exponent notation are not converted
  • Negative numbers are not supported. Values are treated as unsigned integers; sign and bit width are not interpreted