Number Base Converter
Convert numbers between binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), and any custom base from 2 to 36.
Frequently Asked Questions
Type your decimal number in the 'Decimal (Base 10)' field. The binary equivalent appears automatically. For example, decimal 255 = binary 11111111.
Hexadecimal (base 16) is used in web colors (#FF5733), memory addresses, and binary data. Each hex digit represents exactly 4 bits, making it compact and convenient for programmers.
Yes. Enter your decimal number, then set the 'Custom Base' input to any value between 2 and 36 to see the conversion result instantly.
Octal is base 8 (digits 0–7), historically used in Unix. Hex is base 16 (0–9, A–F) and is the standard in modern programming, debugging, and web color codes.
Number Base Reference
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
| 255 | 11111111 | 377 | FF |
| 256 | 100000000 | 400 | 100 |