The Hexadecimal Converter converts hex numbers to decimal, binary, and octal instantly. Enter any hex value (0-9, A-F) and all four base representations appear simultaneously with one-click copy. Step-by-step working shows the positional expansion for hex-to-decimal and repeated division for decimal...
CONVERT FROM
Hexadecimal (base 16)
FF
Decimal (base 10)
255
Binary (base 2)
11111111
Octal (base 8)
377
Bit length
8
Bytes
1
0x prefix
0xFF
STEP-BY-STEP
Hex: FF
Expand: F×16^1 = 240 + F×16^0 = 15
= 255 (decimal)
Decimal 255 ÷ 2 repeatedly → binary: 11111111
Binary nibbles: 1111 1111 → Hex: FF
QUICK EXAMPLES
BIT PATTERN
Byte 1
HEX DIGIT TABLE
The converter defaults to Hexadecimal input. Type your hex number using digits 0-9 and letters A-F (case insensitive). The 0x prefix is optional and stripped automatically.
Switch the input base using the four buttons if you want to convert from decimal, binary, or octal instead. All four conversions always show simultaneously.
The step-by-step panel shows the positional expansion for hex input (each digit × its power of 16) and the repeated division method for decimal-to-hex conversion.
The hex digit reference table on the right shows all 16 hex digits (0-F) with their decimal equivalents. The bit pattern visualiser shows the binary representation in coloured bit cells.
Click any Copy button next to a result to copy that value to clipboard. Use the quick example buttons to try common values: FF (255), 1A (26), DEAD (57005), FFFF (65535).
FF hex: F×16^1 + F×16^0 = 240+15 = 255 decimal = 11111111 binary = 377 octal. 1A hex: 1×16+10 = 26 decimal = 11010 binary = 32 octal. Decimal 255 to hex: 255÷16=15 r15(F), 15÷16=0 r15(F) → FF. Bit pattern FF = 11111111 (8 bits all on). DEAD hex = 57005 decimal.
| NAME | FORMULA | DESCRIPTION |
|---|---|---|
| Hex to decimal | Sum of (digit × 16^position) | FF = 15×16 + 15×1 = 255 |
| Decimal to hex | Repeated division by 16, read remainders bottom-up | 255 ÷ 16 = 15 r 15(F), 15 ÷ 16 = 0 r 15(F) → FF |
| Hex to binary | Replace each hex digit with its 4-bit binary | FF → 1111 1111 |
| Binary to hex | Group bits in 4 from right, convert each | 1010 1111 → A F → AF |
| Hex digit values | A=10, B=11, C=12, D=13, E=14, F=15 | Letters extend digits beyond 9 |
| 1 byte in hex | 2 hex digits = 8 bits = 0x00 to 0xFF | Max byte value: FF = 255 |
| 0x prefix | 0xFF = 255 (hex prefix convention) | Used in code: 0x1A, 0xFF, 0xDEAD |
| Nibble | 1 hex digit = 4 bits = 1 nibble | Half a byte |
2 in Binary
Calculate instantly →
4 in Binary
Calculate instantly →
Random Number Generator
Calculate instantly →
8 in Binary
Calculate instantly →
16 in Binary
Calculate instantly →
10 in Binary
Calculate instantly →
1 in Binary
Calculate instantly →
255 in Binary
Calculate instantly →
3 in Binary
Calculate instantly →
6 in Binary
Calculate instantly →
9 in Binary
Calculate instantly →
11 in Binary
Calculate instantly →
14 in Binary
Calculate instantly →
128 in Binary
Calculate instantly →
0 in Binary
Calculate instantly →
5 in Binary
Calculate instantly →
7 in Binary
Calculate instantly →
12 in Binary
Calculate instantly →
Binary Converter
Calculate instantly →
Last updated: April 29, 2026 · Formula verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.