Number System Converter
Convert between Binary, Octal, Decimal, and Hexadecimal
Decimal (base 10)
Base 10
Binary (base 2)
Base 2
Octal (base 8)
Base 8
Hexadecimal (base 16)
Base 16

What is number system conversion?

Number systems represent quantities in different bases. Decimal (base 10) is everyday use. Binary (base 2) is used by computers. Octal (base 8) and Hexadecimal (base 16) are used in programming, networking, and digital electronics.

Formula used

Decimal to Binary: divide by 2 repeatedly, read remainders bottom to top 13: 13÷2=6R1, 6÷2=3R0, 3÷2=1R1, 1÷2=0R1 → read up → 1101 Hex digits: 0-9 then A=10, B=11, C=12, D=13, E=14, F=15 255 decimal = FF hex (15×16 + 15 = 255)

How to use this calculator

  1. Type any value in any number system field (decimal, binary, octal, or hex)
  2. All other fields update instantly
  3. Hex values shown in uppercase

Example

Quick reference table:

DecimalBinaryOctalHex
10101012A
25511111111377FF
1024100000000002000400

Real-world use: Web colour #FF5733 = R:255, G:87, B:51. Max 8-bit value = 11111111₂ = 255₁₀ = FF₁₆.

Frequently asked questions

Electronic circuits have two states: on (1) and off (0). Binary maps perfectly to these. All data — text, images, video — is ultimately stored as 1s and 0s.
HTML/CSS colours (#RRGGBB), memory addresses, MAC addresses, IPv6 addresses, and byte-level debugging. Two hex digits represent exactly one byte (0–255).
11111111 binary = 255 decimal = FF hex. This is why 255 is the maximum for each RGB colour channel.