Skip to content

Synchronize integers across every base from 2 through 36.

Loading tool

About Base Converter

Type an integer into any field and see it in binary, octal, decimal, hexadecimal, base 32, base 36 and a custom base from 2 to 36 at the same time. Values use BigInt, so very large integers convert without losing precision. Prefixes like 0x, 0b and 0o, a leading sign, spaces and underscores are accepted, and the tool reports the bit length, byte count and whether the value fits in a JavaScript Number.

Common uses

  • Convert a hex value from a log or memory dump to decimal
  • Write a decimal number as a binary bit pattern for flags or masks
  • Check whether a large ID exceeds Number.MAX_SAFE_INTEGER
  • Encode an integer in base 36 for short identifiers

FAQ

How do I convert hexadecimal to decimal?
Multiply each hex digit by 16 raised to its position, counting from 0 on the right, and add the results. For example, 0xFF is 15 x 16 + 15 = 255. Typing the value into the hexadecimal field here shows the decimal result immediately.
Which digits are used above base 10?
Bases above 10 use letters after 9: A is 10, B is 11 and so on up to Z for 35, which is why base 36 is the highest base this tool supports. Letter case does not matter on input, and you can choose upper or lower case for the output.
Does it handle negative or very large numbers?
Yes. A leading minus sign is kept across all bases, and arbitrary-length integers are handled with BigInt. Fractions are not supported; only whole numbers are converted.