Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal instantly.

Quick presets

Conversions

Common Values

Decimal Binary Octal Hex
0000
1111
81000108
16100002010
42101010522A
25511111111377FF
1024100000000002000400
655351111111111111111177777FFFF

Click a row to load that value.

Number Bases

  • Binary (Base 2) — digits 0-1, used in computing
  • Octal (Base 8) — digits 0-7, Unix file permissions
  • Decimal (Base 10) — digits 0-9, everyday numbers
  • Hexadecimal (Base 16) — digits 0-F, colors and memory addresses

Frequently Asked Questions

What are the common number bases and when are they used?
Binary (base-2) is used by computers internally. Octal (base-8) was used in early computing. Decimal (base-10) is everyday human counting. Hexadecimal (base-16, using 0–9 and A–F) is widely used in programming for colors (#FF0000), memory addresses, and byte values.
How do I convert decimal to binary?
Repeatedly divide the number by 2 and record the remainders from bottom to top. For example, 42 in binary: 42/2=21 r0, 21/2=10 r1, 10/2=5 r0, 5/2=2 r1, 2/2=1 r0, 1/2=0 r1. Reading remainders bottom-up: 101010.
Why do programmers use hexadecimal?
Hexadecimal compactly represents binary data: each hex digit maps to exactly 4 binary digits. This makes it easy to read memory addresses and byte values. For example, the binary number 11111111 is FF in hex and 255 in decimal. Colors use hex pairs for red, green, and blue channels (#RRGGBB).

関連計算機