Binary/Hex/Octal Converter

Convert numbers between decimal, binary, octal, and hexadecimal bases.

How to Use Binary/Hex/Octal Converter

  1. Type a number into any of the four boxes: Decimal, Binary, Octal or Hexadecimal.
  2. The other three update as you type. Only valid digits for each base can be entered.
  3. Click the copy icon beside any box to copy that value.

How number bases work

Each base uses that many digits. Decimal (base 10) uses 0 to 9, binary (base 2) uses 0 and 1, octal (base 8) uses 0 to 7, and hexadecimal (base 16) uses 0 to 9 then A to F for 10 to 15. Each place is worth the base times the place to its right, so binary 1010 is 8 + 2 = 10, and hex FF is 15 × 16 + 15 = 255.

Hex is popular in computing because one hex digit is exactly four binary digits: F is 1111, so FF is 11111111. Octal digits match three bits each, which is why Unix permissions like 755 are written in octal.

Big numbers stay exact

The converter uses arbitrary-precision integers, so very large values such as the 64-bit maximum FFFFFFFFFFFFFFFF (18,446,744,073,709,551,615) convert exactly instead of being rounded, which happens in many simpler converters. It works with whole, non-negative numbers; fractions and negative numbers in two's complement aren't handled.

Key Features & Practical Use Cases

  • Turning a hex colour channel or memory address into decimal.
  • Checking binary for bit flags, masks or networking subnets.
  • Reading octal Unix file permissions as binary bits.
  • Doing computer science homework on number bases.

Frequently Asked Questions

How do I convert hex to decimal?

Type the hex value into the Hexadecimal box and read the Decimal box. FF becomes 255.

How do I convert decimal to binary?

Type the number in the Decimal box. 10 becomes 1010 in binary.

Can I enter hex with 0x in front?

Type just the digits; letters outside A to F, including the x, are filtered out.

Does it support negative numbers?

No, only whole numbers from zero upward.

About OneClickly

OneClickly is a set of 119 free tools for PDFs, images, text, everyday math and code. They run in your browser, so the files and text you work with stay on your device.

Related Tools