Number base converter
Computers think in binary, programmers read in hexadecimal, and permissions are written in octal. Enter a decimal number and see all four, ready to copy with the 0x, 0b and 0o prefixes.
Number bases
Decimal
255Hexadecimal
0xFFBinary
0b11111111Octal
0o377How to use it
- Enter a number.
- Read it in every base.
- Copy the form you need.
This tool is also built into Zest search, so you can type your question into the search box and get the same answer above the results.
Common questions
- Why is hexadecimal popular?
- One hex digit is exactly four bits, so a byte is two hex digits. It is a compact, readable way to write binary data.