Convert numbers between binary, octal, decimal and hexadecimal.
| DEC | BIN | OCT | HEX |
|---|---|---|---|
| 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 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |
This tool instantly converts numbers between the four main numeral systems used in programming and computer science.
Select "Decimal (Dec)" as the source system and enter 255. The converter instantly shows all results: binary (bin) — 11111111, octal (oct) — 377, hexadecimal (hex) — FF. The number 255 is the maximum value for one byte (8 bits) and appears frequently in networking and color codes.
The current version supports only non-negative integers. For negative numbers or floating-point values you would need a specialised mathematical tool. For the most common tasks in networking and programming — such as IP subnets, memory addresses and color codes — working with whole positive numbers covers virtually all use cases.
In hexadecimal mode you can enter digits 0–9 and the letters A through F (case-insensitive — both uppercase and lowercase are accepted). Letters G and beyond are not part of the hex alphabet. For example, the value #FA0C3D is a valid hexadecimal input and will be processed correctly.