Binary, Octal and Hex Converter

Convert an integer between binary, octal, decimal, and hexadecimal.

Loading tool…

How the format works

Choose the base used by the input. The calculator gives the same integer in four bases and preserves all digits of large values, including numeric timestamps.

How to use this tool

  1. Select the input base and enter the integer to convert.
  2. Read the converted values below the input.

Example

255 in decimal is 11111111 in binary, 377 in octal, and FF in hexadecimal.

Common questions

What happens to a negative input?

The result keeps the minus sign in all four bases.