Utilix

Math & numbers · Basic

Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal instantly. Enter any value in one base and see all four representations at once. Free developer tool.

Enter values above to see the result.

How it works

Converts a number from any common base (binary, octal, decimal, hexadecimal) to all other bases simultaneously. Useful for programmers working with bitwise operations, memory addresses, or color codes.

Step by step

  1. 1Enter the number you want to convert and select its source base.
  2. 2The tool first parses the number into its decimal (base 10) value.
  3. 3It then converts that decimal value to binary (base 2), octal (base 8), and hexadecimal (base 16).
  4. 4All four representations are shown at once.

Examples

Decimal 255 to all bases

255 in decimal is 8 ones in binary (0xFF), often seen as the max value of a single byte.

Inputs

input_value:
255
from_base:
10

Result

binary:
11111111
octal:
377
hex:
FF

Hex 1A to decimal

0x1A = 1×16 + 10 = 26 in decimal.

Inputs

input_value:
1A
from_base:
16

Result

decimal:
26
binary:
11010
octal:
32
Note: Hexadecimal letters are case-insensitive — both 'ff' and 'FF' are accepted. For negative numbers, the tool converts the magnitude; negative binary representations (two's complement) are not shown.

Frequently asked questions

How do I convert decimal to binary?

Divide the decimal number by 2 repeatedly, recording the remainder each time. The binary representation is the sequence of remainders read from bottom to top. For example: 13 → remainders 1,0,1,1 → binary 1101.

Why is hexadecimal used in programming?

Hexadecimal (base 16) is compact and maps cleanly to binary — each hex digit represents exactly 4 binary bits. It's widely used for memory addresses, color codes (e.g. #FF5733), and byte values.