T-35 · Converters
Convert integers between binary, octal, decimal, hexadecimal and any base from 2 to 36. Exact for very large numbers, with 0x, 0b and 0o prefixes.
0x, 0b and 0o prefixes, spaces and underscores are allowed.
8 bits · exact for any size
About this instrument
Enter a whole number, pick the base it is written in, and see it in binary, octal, decimal and hexadecimal at once, plus any other base from 2 to 36. Arithmetic uses BigInt, so even numbers with hundreds of digits convert exactly, without the rounding you get from ordinary floating-point numbers.
FAQ
255 is 11111111 in binary, ff in hexadecimal and 377 in octal: the largest value that fits in one byte.
Many use JavaScript numbers, which are only exact up to 2^53. This tool uses BigInt arithmetic, which is exact at any size.
No. Negative values are shown with a minus sign, for example -ff, not as a fixed-width two's complement bit pattern.
Related instruments