Number Base Converter and Bitwise Calculator
Arbitrary-precision conversion among bases 2 to 36, with two’s complement for 8, 16, 32 and 64 bits and AND, OR, XOR and shift operations.
How to use it
Enter an integer in a chosen base (0x, 0b and 0o prefixes are accepted). All other bases appear instantly, with two’s-complement views for the fixed widths where the value fits.
What it can do
- Bases 2 to 36 with BigInt precision
- Two’s complement at 8, 16, 32 and 64 bits
- Bitwise AND, OR, XOR, shift left and right
- Binary shown in nibble groups
- Prefixes 0x, 0b, 0o accepted
- Per-line copy
Common questions
What digits are allowed?
0-9 and A-Z. A digit must be smaller than the base.
Why does the two’s complement line sometimes disappear?
The value does not fit in that width, for example 200 in 8 bits signed.
Do shifts keep sign?
Right shift is arithmetic, so negative numbers stay negative.
What is the limit?
Only memory. BigInt has no fixed size.