Convert between Binary, Decimal, Hex & Octal with interactive bits.
About Binary / Decimal / Hex / Octal Converter
PlainTool Binary / Decimal / Hex / Octal Converter lets you translate integers between Base 2 (Binary), Base 10 (Decimal), Base 16 (Hexadecimal), and Base 8 (Octal) instantaneously in your browser. Edit any of the four fields—or paste values with 0b, 0x, or 0o prefixes, spaces, or underscores—and every other base updates in real time using arbitrary-precision BigInt math.
Below the converter, the Interactive Bit Toggle & Binary Inspector lets you switch between 8-bit, 16-bit, and 32-bit views, flip individual bits between 0 and 1 with a click, view two’s complement hexadecimal representations for negative numbers, and check printable ASCII characters.
Common use cases
- Computer science students learning binary arithmetic, octal permissions, hexadecimal memory addresses, and two’s complement.
- Software developers and embedded engineers debugging bitmasks, flags, registers, and hex color or byte values.
- Digital electronics learners pairing binary/hex conversions with logic gate circuits.
Practical tips
- Binary values are automatically grouped into 4-bit nibbles so each group maps directly to a single hexadecimal digit.
- Click any bit square in the 8-bit, 16-bit, or 32-bit inspector to toggle it and watch Decimal, Hex, and Octal update live.
- Use prefixes like 0xFF or 0b101010 directly when pasting values from code.
Limits & compatibility: Supports arbitrary-precision signed integers (including negative numbers). Fractional floating-point bases (such as 0.5 in binary) are not converted.