Back to tools
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal instantly.
255
0xFF
Decimal
255
Bits needed
8
Is power of 2
No
Is even
No
| DEC | HEX | OCT | BIN |
|---|---|---|---|
| 0 | 0 | 0 | 0000 |
| 1 | 1 | 1 | 0001 |
| 2 | 2 | 2 | 0010 |
| 3 | 3 | 3 | 0011 |
| 4 | 4 | 4 | 0100 |
| 5 | 5 | 5 | 0101 |
| 6 | 6 | 6 | 0110 |
| 7 | 7 | 7 | 0111 |
| 8 | 8 | 10 | 1000 |
| 9 | 9 | 11 | 1001 |
| 10 | A | 12 | 1010 |
| 11 | B | 13 | 1011 |
| 12 | C | 14 | 1100 |
| 13 | D | 15 | 1101 |
| 14 | E | 16 | 1110 |
| 15 | F | 17 | 1111 |
About This Tool
Number Base Converter translates integers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Enter a value in any base and all others update simultaneously.
Binary is the native language of computers - every integer is stored as a sequence of 0s and 1s. Hexadecimal is compact shorthand for binary used in memory addresses, color codes, and bytecode. Octal is used in Unix file permissions.
Supports numbers up to the JavaScript safe integer limit (2^53 - 1). All conversions use parseInt() with explicit base and toString() with radix. Calculations run entirely in the browser.