What this tool does
Developers move between binary, octal, decimal and hex all day: flags, permissions, colors, memory. This converter uses BigInt, so 64-bit values do not lose precision, and it accepts 0x, 0b and 0o prefixes. The bit length tells you how wide a field the value needs.
How to use it
- Paste the number.
- Leave the base on auto or choose one.
- Copy any format from the result rows.
Questions
Are negative numbers supported?
Yes. The sign is preserved in every base; two's complement is not implied.
Why BigInt instead of Number?
JavaScript Number loses integer precision above 2^53. BigInt keeps arbitrary-size integers exact.
What does bit length mean?
The minimum number of binary digits needed for the absolute value. A value needing 9 bits does not fit in an unsigned byte.