Number Base Converter
Convert between binary, octal, decimal, and hexadecimal instantly. Free online tool for coding and learning.
Tool input stays in your browser. The site may use cookies for ads.
Decimal
255Binary
0b11111111Hexadecimal
0xFFOctal
0o377Bit Visualization
1
1
1
1
1
1
1
1
11111111
= 255
Value: 255Bits: 8Bytes: 1
How to Use
1
Enter a number in any supported base.
2
Copy the equivalents in binary, octal, decimal, or hex.
Frequently Asked Questions
Which bases are supported?
Common bases include binary (2), octal (8), decimal (10), and hexadecimal (16).
Why do programmers use hex?
Hex maps neatly to bytes (two hex digits per byte), which makes memory and color values easier to read.