Number Base Converter
Convert BIN, DEC, HEX and OCT instantly. Perform bitwise AND, OR, XOR, shifts and integer calculations with signed and unsigned values.
Read the complete guideInteger settings
Converter
BIN / DEC / HEX / OCTBinary Bit View
Click a bit, or press Enter or Space, to toggle it.
1 / 0
HEX FF0xFFExamples
Integer representation
Auto uses exact BigInt integers, with no fixed unsigned range. Bitwise operations use an unbounded two’s-complement model; ~x = −x − 1. Representation applies only at a fixed width.
DEC is a mathematical value. Nonnegative BIN, HEX and OCT are raw bit patterns at a fixed width: signed 8-bit FF = −1. Negative inputs are mathematical values. Matching 0b, 0x and 0o prefixes are optional; spaces may group non-decimal digits.