Number Base Converter
Convert between Binary, Octal, Decimal, and Hexadecimal instantly
Base Conversion
Binary
Base 2
0b
Copy
Octal
Base 8
0o
Copy
Decimal
Base 10
0d
Copy
Hexadecimal
Base 16
0x
Copy
Quick Values
0
1
255 (2⁸−1)
256 (2⁸)
1024 (2¹⁰)
65535 (2¹⁶−1)
65536 (2¹⁶)
2147483647 (2³¹−1)
4294967295 (2³²−1)
−1
−128
Bit Representation
8-bit
16-bit
32-bit
Enter a valid integer to see its bit representation.
ASCII Character
ASCII
All conversions happen locally in your browser. Negative numbers use two's complement for bit views. Supports values up to 2⁵³ using BigInt.