Binary, Hex, Octal & Decimal Converter

Computers count in binary, memory addresses are written in hex, Unix file permissions use octal, and humans think in decimal. Converting between them by hand is tedious and error-prone. Type a value in any base and this converter shows the equivalent in all the common ones at once.

How to use it

  1. Choose the base your number is currently written in.
  2. Type or paste the value — digits are validated against the chosen base.
  3. Read the binary, octal, decimal, and hexadecimal equivalents instantly.
  4. Use the custom base field for anything else from base 2 to base 36.

Frequently asked questions

Why does hexadecimal use letters?

Base 16 needs sixteen digit symbols, but we only have ten numerals. A to F stand in for the values 10 to 15, so a single hex digit maps exactly onto four binary bits.

Why is hex so common in programming?

One hex digit is exactly four bits and two hex digits are one byte, making hex a compact, lossless shorthand for binary. That is why colours, memory addresses, and hashes are written that way.

What is octal still used for?

Mostly Unix file permissions. Each group of three permission bits — read, write, execute — maps neatly onto one octal digit, which is why chmod 755 is written the way it is.

Does this handle negative or fractional numbers?

It converts non-negative integers. Fractional and two’s-complement negative representations depend on word size and format, which the tool does not attempt to guess.

All free tools · Blog · About · Contact

Also available in: Español · Português · Français · Deutsch