Base Converter
Convert numbers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16)
Valid characters: 0-9
Quick Reference
| Decimal | Binary | Octal | Hexadecimal |
|---|---|---|---|
| 0 | 0b0 | 0o0 | 0x0 |
| 1 | 0b1 | 0o1 | 0x1 |
| 8 | 0b1000 | 0o10 | 0x8 |
| 16 | 0b10000 | 0o20 | 0x10 |
| 32 | 0b100000 | 0o40 | 0x20 |
| 64 | 0b1000000 | 0o100 | 0x40 |
| 128 | 0b10000000 | 0o200 | 0x80 |
| 255 | 0b11111111 | 0o377 | 0xFF |
| 256 | 0b100000000 | 0o400 | 0x100 |
| 1024 | 0b10000000000 | 0o2000 | 0x400 |
Click any row to convert that number
Number System Basics:
- • Binary (Base 2): Uses digits 0-1. Common in computing for representing data.
- • Octal (Base 8): Uses digits 0-7. Sometimes used in Unix file permissions.
- • Decimal (Base 10): Uses digits 0-9. Standard number system humans use daily.
- • Hexadecimal (Base 16): Uses 0-9 and A-F. Common for colors, memory addresses, and debugging.
- • Prefixes: 0b for binary, 0o for octal, 0x for hexadecimal (programming convention)