Desktop N CalculatorAll-in-one calculator app

Number Base Converter (decimal → binary, hex, octal)

Enter a decimal number to convert it to binary (2), octal (8) and hexadecimal (16) instantly. For computer and electronics students.

Quick answer

255 = binary 11111111 = hex FF.

How it is calculated

  1. Binary: keep dividing by 2 and read the remainders (0/1) from bottom to top.
  2. Divide by 8 for octal and 16 for hex; in hex, 10–15 are written A–F.
  3. 255 ÷ 16 = 15 remainder 15 → FF.

Worked example

Decimal 255 = binary 11111111 = hex FF = octal 377.

Example values
Decimal number255
Result
Binary11111111
HexFF
Octal377
Formula
Binary = toBase(Nn,2)
Hex = toBase(Nn,16)
Octal = toBase(Nn,8)

Good to know

Questions people ask

How do I convert decimal to binary?

Divide by 2 repeatedly and write the remainders in reverse order.

What are A to F in hex?

A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.

Why is 255 written FF?

15 × 16 + 15 = 255.

More calculators

This page in: हिंदी · मराठी · English

Updated 13 Nov 2026 · Desktop N Calculator v1.2.0