Number Base Converter
Edit any field — decimal, binary, hex, or octal — and all others update instantly. Supports values up to 4,294,967,295 (unsigned 32-bit max).
| Dec | Binary | Hex | Octal |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 2 | 10 | 2 | 2 |
| 3 | 11 | 3 | 3 |
| 4 | 100 | 4 | 4 |
| 5 | 101 | 5 | 5 |
| 6 | 110 | 6 | 6 |
| 7 | 111 | 7 | 7 |
| 8 | 1000 | 8 | 10 |
| 9 | 1001 | 9 | 11 |
| 10 | 1010 | A | 12 |
| 11 | 1011 | B | 13 |
| 12 | 1100 | C | 14 |
| 13 | 1101 | D | 15 |
| 14 | 1110 | E | 16 |
| 15 | 1111 | F | 17 |
Frequently asked questions
How do you convert decimal to binary?
Repeatedly divide by 2, recording the remainder each time. Read remainders from bottom to top. Example: 13 ÷ 2 = 6 R1, 6 ÷ 2 = 3 R0, 3 ÷ 2 = 1 R1, 1 ÷ 2 = 0 R1 → 1101 in binary.
What is hexadecimal used for?
Hexadecimal (base 16) is used in computing to represent binary data compactly. One hex digit represents exactly 4 binary bits, making it easy to read memory addresses, color codes (#FF5733), and byte values.
How do you convert binary to octal?
Group the binary digits into groups of 3 from right to left, padding with leading zeros if needed. Convert each group to its octal digit. Example: 101110 → 101 110 → 5 6 → 56 in octal.
Other number tools
- Roman Numeral Converter — Decimal to Roman and back
- Data Storage Converter — Bytes, KB, MB, GB, TB