Binary, Hex, Octal and Decimal Converter

Type a number in binary, octal, decimal or hexadecimal and see the other bases update instantly, along with its ASCII character.

About Binary, Hex, Octal and Decimal Converter

This converter shows one whole number in four bases at once: decimal (base 10), binary (base 2), hexadecimal (base 16) and octal (base 8). Edit any of the four fields and the others update immediately, so it works for binary to decimal, hex to binary, octal to hex and every other pairing without picking a mode.

A fifth field shows the matching ASCII character for codes 32 to 126. You can also type a single character there to see its code in every base. Input is read as an integer, so fractional parts are ignored, and very large values beyond about 9 quadrillion may lose precision. It is useful for checking bit masks, color and memory values, file permission numbers, and character codes.

How to use it

  1. Type a number into the Decimal, Binary, Hexadecimal or Octal field.
  2. Read the converted value in the other fields.
  3. Type a single character in the ASCII field to see its code in each base.

Questions

Can it convert whole text strings to binary or hex?

No. The ASCII field handles one character at a time and shows its code in each base.

Which bases are supported?

Base 2, 8, 10 and 16. Other bases such as base 36 and Roman numerals are not available.

Are fractions or very large numbers supported?

Only whole numbers are converted. Values above about 9 quadrillion can lose precision.

More Data & Converters tools

Home · All Tools · Blog