Developer utility

Number Base Converter

Convert signed whole numbers between binary, octal, decimal, and hexadecimal with exact browser-native BigInt arithmetic.

Convert a whole number

Use digits valid for the selected base, with an optional leading minus sign. Prefixes, decimals, and spaces inside the number are not accepted.

How to use this number base converter

Choose the base of your signed whole number, then read the same value in all four supported bases.

  1. Choose Binary, Octal, Decimal, or Hexadecimal as the base of the number you will enter.
  2. Enter digits valid for that base, with an optional leading minus sign, then select Convert number.
  3. Review the unprefixed binary, octal, decimal, and uppercase hexadecimal values, or copy one current result.

Frequently asked questions

Which number formats can I enter?
Enter a whole number in the selected base with an optional leading minus sign. Surrounding whitespace is ignored, but prefixes such as 0x, decimal points, plus signs, and whitespace inside the number are rejected.
Can this converter handle numbers larger than JavaScript safe integers?
Yes. It parses up to 1,024 magnitude digits directly with BigInt, so conversion does not use JavaScript Number precision for the entered value.
How are negative values and zero displayed?
Negative results use a leading minus sign and magnitude digits, not two’s complement. Leading zeros are removed from outputs, and -0 is displayed as 0 in every base.

Convert measurements or canonical color values alongside exact whole-number base conversions.