Zest.

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
Decimal255
Hexadecimal0xFF
Binary0b11111111
Octal0o377

How to use it

  1. Enter a number.
  2. Read it in every base.
  3. 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.