Binary, Hex, Octal and Decimal Converter

W Written byManaf Danawar 1 min read

Convert numbers between decimal, binary, hexadecimal, octal and any base from 2 to 36. You can also convert text into binary and hexadecimal character codes.

How to use it

  1. Enter a number and choose the base it is written in.
  2. Read the same value in decimal, binary, hexadecimal, octal and base 36.
  3. Type text in the second box to see its binary and hex character codes.

Where number bases are used

Computers store everything in binary (base 2). Hexadecimal (base 16) is a compact way to write binary, with each hex digit standing for four bits, which is why it is used for colors like #FF5733, memory addresses and MAC addresses. Octal (base 8) still appears in Unix file permissions such as 755. The converter uses arbitrary-precision numbers, so very long values convert exactly.

Frequently asked questions

What is 255 in binary and hex?

11111111 in binary and FF in hexadecimal.

Can I enter prefixes like 0x?

Yes. Prefixes 0x, 0b and 0o are ignored automatically.

Related free tools

← See all free tools

Comments

Archive