Number Base Converter
Convert numbers between binary, decimal, octal, and hexadecimal, with a bitwise calculator.
Uses the value above as the first operand (A).
Binary: 00000010
Hex: 0x2
About Number Base Converter
This tool converts a number between the four bases developers use most often: binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Type a value into any field and the other three update automatically. It supports arbitrarily large integers using JavaScript's BigInt, so you're not limited by 32-bit or 64-bit overflow like some converters. Below the converter, a bitwise calculator runs AND, OR, XOR, NOT, and left/right shift operations against your current value, with results masked to a bit width you choose (8, 16, 32, or 64-bit) so NOT and shifts wrap correctly instead of showing a meaningless negative number.