16

Binary, Decimal & HEX Converter

Convert integers between binary, octal, decimal, and hexadecimal.

Processed locally in your browser unless the page says otherwise.

Binary
11111111
Octal
377
Decimal
255
HEX
FF

How binary, decimal, and hexadecimal conversion works

This base converter changes integers between binary, octal, decimal, and hexadecimal. It is useful for programming, data structures, networking, bit operations, color codes, and computer science practice.

Number bases are different ways to represent the same value. Binary is common for bits, while hexadecimal is common for memory addresses, colors, and low-level data.

Formula or logic

  • Binary base 2 uses 0 and 1
  • Octal base 8 uses 0 to 7
  • Decimal base 10 uses 0 to 9
  • Hexadecimal base 16 uses 0 to 9 and A to F

Example

Decimal 255 is 11111111 in binary and FF in hexadecimal. This value is also common as the maximum single color channel in RGB color notation.

Common questions

What does HEX mean?

HEX means hexadecimal, a base-16 notation using 0-9 and A-F.

Why is binary important?

Computers represent low-level data with bits, so binary is the basis for bit masks and low-level operations.

Can this convert decimals with fractional parts?

This tool is mainly for integer base conversion. Fractional base conversion requires different handling.

Related tools