Binary Calculator with Multi-Base Output

Perform binary arithmetic online and inspect results in binary, decimal, hexadecimal, and octal for faster debugging and learning.

Setup
Run arithmetic and bitwise operations with base-aware parsing.
Inputs accept decimal, binary, or hexadecimal values including 0b and 0x prefixes.
Pick an operation to see context tips and sample inputs.
Supports binary/decimal/hex input. Prefix with 0b or 0x.
Supports binary/decimal/hex input. Prefix with 0b or 0x.
Bitwise operations follow JavaScript 32-bit integer behavior.
Result
Binary, octal, decimal, and hexadecimal outputs update automatically.
Use grouping to improve binary readability.
Run a calculation to inspect changed bit positions and operation notes.
Recent Calculations
No history yet.



JavaScript Bitwise Operators

If we wish to count lines of code, we should not regard them as ‘lines produced’ but as ‘lines spent.’

Edsger Dijkstra

CodersTool Categories