Hex to Binary and Decimal Converter
Type in any field and the other two update in real time. Binary is displayed grouped in nibbles (4-bit groups).
| Hex | Binary | Dec |
|---|---|---|
| 0x00 | 0000 0000 | 0 |
| 0x01 | 0000 0001 | 1 |
| 0x02 | 0000 0010 | 2 |
| 0x03 | 0000 0011 | 3 |
| 0x04 | 0000 0100 | 4 |
| 0x05 | 0000 0101 | 5 |
| 0x06 | 0000 0110 | 6 |
| 0x07 | 0000 0111 | 7 |
| 0x08 | 0000 1000 | 8 |
| 0x09 | 0000 1001 | 9 |
| 0x0A | 0000 1010 | 10 |
| 0x0B | 0000 1011 | 11 |
| 0x0C | 0000 1100 | 12 |
| 0x0D | 0000 1101 | 13 |
| 0x0E | 0000 1110 | 14 |
| 0x0F | 0000 1111 | 15 |
| 0x10 | 0001 0000 | 16 |
| 0x11 | 0001 0001 | 17 |
| 0x12 | 0001 0010 | 18 |
| 0x13 | 0001 0011 | 19 |
| 0x14 | 0001 0100 | 20 |
| 0x15 | 0001 0101 | 21 |
| 0x16 | 0001 0110 | 22 |
| 0x17 | 0001 0111 | 23 |
| 0x18 | 0001 1000 | 24 |
| 0x19 | 0001 1001 | 25 |
| 0x1A | 0001 1010 | 26 |
| 0x1B | 0001 1011 | 27 |
| 0x1C | 0001 1100 | 28 |
| 0x1D | 0001 1101 | 29 |
| 0x1E | 0001 1110 | 30 |
| 0x1F | 0001 1111 | 31 |
| 0x20 | 0010 0000 | 32 |
| 0x21 | 0010 0001 | 33 |
| 0x22 | 0010 0010 | 34 |
| 0x23 | 0010 0011 | 35 |
| 0x24 | 0010 0100 | 36 |
| 0x25 | 0010 0101 | 37 |
| 0x26 | 0010 0110 | 38 |
| 0x27 | 0010 0111 | 39 |
| 0x28 | 0010 1000 | 40 |
| 0x29 | 0010 1001 | 41 |
| 0x2A | 0010 1010 | 42 |
| 0x2B | 0010 1011 | 43 |
| 0x2C | 0010 1100 | 44 |
| 0x2D | 0010 1101 | 45 |
| 0x2E | 0010 1110 | 46 |
| 0x2F | 0010 1111 | 47 |
| 0x30 | 0011 0000 | 48 |
| 0x31 | 0011 0001 | 49 |
| 0x32 | 0011 0010 | 50 |
| 0x33 | 0011 0011 | 51 |
| 0x34 | 0011 0100 | 52 |
| 0x35 | 0011 0101 | 53 |
| 0x36 | 0011 0110 | 54 |
| 0x37 | 0011 0111 | 55 |
| 0x38 | 0011 1000 | 56 |
| 0x39 | 0011 1001 | 57 |
| 0x3A | 0011 1010 | 58 |
| 0x3B | 0011 1011 | 59 |
| 0x3C | 0011 1100 | 60 |
| 0x3D | 0011 1101 | 61 |
| 0x3E | 0011 1110 | 62 |
| 0x3F | 0011 1111 | 63 |
| 0x40 | 0100 0000 | 64 |
| 0x41 | 0100 0001 | 65 |
| 0x42 | 0100 0010 | 66 |
| 0x43 | 0100 0011 | 67 |
| 0x44 | 0100 0100 | 68 |
| 0x45 | 0100 0101 | 69 |
| 0x46 | 0100 0110 | 70 |
| 0x47 | 0100 0111 | 71 |
| 0x48 | 0100 1000 | 72 |
| 0x49 | 0100 1001 | 73 |
| 0x4A | 0100 1010 | 74 |
| 0x4B | 0100 1011 | 75 |
| 0x4C | 0100 1100 | 76 |
| 0x4D | 0100 1101 | 77 |
| 0x4E | 0100 1110 | 78 |
| 0x4F | 0100 1111 | 79 |
| 0x50 | 0101 0000 | 80 |
| 0x51 | 0101 0001 | 81 |
| 0x52 | 0101 0010 | 82 |
| 0x53 | 0101 0011 | 83 |
| 0x54 | 0101 0100 | 84 |
| 0x55 | 0101 0101 | 85 |
| 0x56 | 0101 0110 | 86 |
| 0x57 | 0101 0111 | 87 |
| 0x58 | 0101 1000 | 88 |
| 0x59 | 0101 1001 | 89 |
| 0x5A | 0101 1010 | 90 |
| 0x5B | 0101 1011 | 91 |
| 0x5C | 0101 1100 | 92 |
| 0x5D | 0101 1101 | 93 |
| 0x5E | 0101 1110 | 94 |
| 0x5F | 0101 1111 | 95 |
| 0x60 | 0110 0000 | 96 |
| 0x61 | 0110 0001 | 97 |
| 0x62 | 0110 0010 | 98 |
| 0x63 | 0110 0011 | 99 |
| 0x64 | 0110 0100 | 100 |
| 0x65 | 0110 0101 | 101 |
| 0x66 | 0110 0110 | 102 |
| 0x67 | 0110 0111 | 103 |
| 0x68 | 0110 1000 | 104 |
| 0x69 | 0110 1001 | 105 |
| 0x6A | 0110 1010 | 106 |
| 0x6B | 0110 1011 | 107 |
| 0x6C | 0110 1100 | 108 |
| 0x6D | 0110 1101 | 109 |
| 0x6E | 0110 1110 | 110 |
| 0x6F | 0110 1111 | 111 |
| 0x70 | 0111 0000 | 112 |
| 0x71 | 0111 0001 | 113 |
| 0x72 | 0111 0010 | 114 |
| 0x73 | 0111 0011 | 115 |
| 0x74 | 0111 0100 | 116 |
| 0x75 | 0111 0101 | 117 |
| 0x76 | 0111 0110 | 118 |
| 0x77 | 0111 0111 | 119 |
| 0x78 | 0111 1000 | 120 |
| 0x79 | 0111 1001 | 121 |
| 0x7A | 0111 1010 | 122 |
| 0x7B | 0111 1011 | 123 |
| 0x7C | 0111 1100 | 124 |
| 0x7D | 0111 1101 | 125 |
| 0x7E | 0111 1110 | 126 |
| 0x7F | 0111 1111 | 127 |
| 0x80 | 1000 0000 | 128 |
| 0x81 | 1000 0001 | 129 |
| 0x82 | 1000 0010 | 130 |
| 0x83 | 1000 0011 | 131 |
| 0x84 | 1000 0100 | 132 |
| 0x85 | 1000 0101 | 133 |
| 0x86 | 1000 0110 | 134 |
| 0x87 | 1000 0111 | 135 |
| 0x88 | 1000 1000 | 136 |
| 0x89 | 1000 1001 | 137 |
| 0x8A | 1000 1010 | 138 |
| 0x8B | 1000 1011 | 139 |
| 0x8C | 1000 1100 | 140 |
| 0x8D | 1000 1101 | 141 |
| 0x8E | 1000 1110 | 142 |
| 0x8F | 1000 1111 | 143 |
| 0x90 | 1001 0000 | 144 |
| 0x91 | 1001 0001 | 145 |
| 0x92 | 1001 0010 | 146 |
| 0x93 | 1001 0011 | 147 |
| 0x94 | 1001 0100 | 148 |
| 0x95 | 1001 0101 | 149 |
| 0x96 | 1001 0110 | 150 |
| 0x97 | 1001 0111 | 151 |
| 0x98 | 1001 1000 | 152 |
| 0x99 | 1001 1001 | 153 |
| 0x9A | 1001 1010 | 154 |
| 0x9B | 1001 1011 | 155 |
| 0x9C | 1001 1100 | 156 |
| 0x9D | 1001 1101 | 157 |
| 0x9E | 1001 1110 | 158 |
| 0x9F | 1001 1111 | 159 |
| 0xA0 | 1010 0000 | 160 |
| 0xA1 | 1010 0001 | 161 |
| 0xA2 | 1010 0010 | 162 |
| 0xA3 | 1010 0011 | 163 |
| 0xA4 | 1010 0100 | 164 |
| 0xA5 | 1010 0101 | 165 |
| 0xA6 | 1010 0110 | 166 |
| 0xA7 | 1010 0111 | 167 |
| 0xA8 | 1010 1000 | 168 |
| 0xA9 | 1010 1001 | 169 |
| 0xAA | 1010 1010 | 170 |
| 0xAB | 1010 1011 | 171 |
| 0xAC | 1010 1100 | 172 |
| 0xAD | 1010 1101 | 173 |
| 0xAE | 1010 1110 | 174 |
| 0xAF | 1010 1111 | 175 |
| 0xB0 | 1011 0000 | 176 |
| 0xB1 | 1011 0001 | 177 |
| 0xB2 | 1011 0010 | 178 |
| 0xB3 | 1011 0011 | 179 |
| 0xB4 | 1011 0100 | 180 |
| 0xB5 | 1011 0101 | 181 |
| 0xB6 | 1011 0110 | 182 |
| 0xB7 | 1011 0111 | 183 |
| 0xB8 | 1011 1000 | 184 |
| 0xB9 | 1011 1001 | 185 |
| 0xBA | 1011 1010 | 186 |
| 0xBB | 1011 1011 | 187 |
| 0xBC | 1011 1100 | 188 |
| 0xBD | 1011 1101 | 189 |
| 0xBE | 1011 1110 | 190 |
| 0xBF | 1011 1111 | 191 |
| 0xC0 | 1100 0000 | 192 |
| 0xC1 | 1100 0001 | 193 |
| 0xC2 | 1100 0010 | 194 |
| 0xC3 | 1100 0011 | 195 |
| 0xC4 | 1100 0100 | 196 |
| 0xC5 | 1100 0101 | 197 |
| 0xC6 | 1100 0110 | 198 |
| 0xC7 | 1100 0111 | 199 |
| 0xC8 | 1100 1000 | 200 |
| 0xC9 | 1100 1001 | 201 |
| 0xCA | 1100 1010 | 202 |
| 0xCB | 1100 1011 | 203 |
| 0xCC | 1100 1100 | 204 |
| 0xCD | 1100 1101 | 205 |
| 0xCE | 1100 1110 | 206 |
| 0xCF | 1100 1111 | 207 |
| 0xD0 | 1101 0000 | 208 |
| 0xD1 | 1101 0001 | 209 |
| 0xD2 | 1101 0010 | 210 |
| 0xD3 | 1101 0011 | 211 |
| 0xD4 | 1101 0100 | 212 |
| 0xD5 | 1101 0101 | 213 |
| 0xD6 | 1101 0110 | 214 |
| 0xD7 | 1101 0111 | 215 |
| 0xD8 | 1101 1000 | 216 |
| 0xD9 | 1101 1001 | 217 |
| 0xDA | 1101 1010 | 218 |
| 0xDB | 1101 1011 | 219 |
| 0xDC | 1101 1100 | 220 |
| 0xDD | 1101 1101 | 221 |
| 0xDE | 1101 1110 | 222 |
| 0xDF | 1101 1111 | 223 |
| 0xE0 | 1110 0000 | 224 |
| 0xE1 | 1110 0001 | 225 |
| 0xE2 | 1110 0010 | 226 |
| 0xE3 | 1110 0011 | 227 |
| 0xE4 | 1110 0100 | 228 |
| 0xE5 | 1110 0101 | 229 |
| 0xE6 | 1110 0110 | 230 |
| 0xE7 | 1110 0111 | 231 |
| 0xE8 | 1110 1000 | 232 |
| 0xE9 | 1110 1001 | 233 |
| 0xEA | 1110 1010 | 234 |
| 0xEB | 1110 1011 | 235 |
| 0xEC | 1110 1100 | 236 |
| 0xED | 1110 1101 | 237 |
| 0xEE | 1110 1110 | 238 |
| 0xEF | 1110 1111 | 239 |
| 0xF0 | 1111 0000 | 240 |
| 0xF1 | 1111 0001 | 241 |
| 0xF2 | 1111 0010 | 242 |
| 0xF3 | 1111 0011 | 243 |
| 0xF4 | 1111 0100 | 244 |
| 0xF5 | 1111 0101 | 245 |
| 0xF6 | 1111 0110 | 246 |
| 0xF7 | 1111 0111 | 247 |
| 0xF8 | 1111 1000 | 248 |
| 0xF9 | 1111 1001 | 249 |
| 0xFA | 1111 1010 | 250 |
| 0xFB | 1111 1011 | 251 |
| 0xFC | 1111 1100 | 252 |
| 0xFD | 1111 1101 | 253 |
| 0xFE | 1111 1110 | 254 |
| 0xFF | 1111 1111 | 255 |
How the conversion works
The calculator uses decimal as an intermediate base for all conversions:
- Hex → Decimal: each digit is multiplied by its power of 16. For example,
FF= 15×16 + 15 = 255. - Decimal → Binary: successive division by 2. The result is zero-padded on the left to complete groups of 4 bits (nibbles).
- Binary → Hex: bits are grouped right-to-left in sets of 4 and each group is converted to one hex digit.
The tool accepts optional prefixes: 0x for hexadecimal and 0b for binary. Spaces within binary input are ignored automatically.
What is a nibble?
A nibble is 4 consecutive bits. A full byte (8 bits) has 2 nibbles. The exact nibble–hex digit correspondence is why hexadecimal is so useful in computing: one byte is expressed with just 2 hex characters instead of 8 binary digits.
Practical example: the colour #1A3C5E
The navy blue colour of this page in CSS is #1a3c5e. Each hex pair represents one colour channel (red, green, blue):
3C hex → 0011 1100 binary → 60 decimal (green)
5E hex → 0101 1110 binary → 94 decimal (blue)
This explains why hexadecimal is the standard for web colours: two hex digits represent exactly the 256 possible levels (0–255) of each RGB colour channel.
Frequently asked questions
How do you convert hexadecimal to binary?
What is hexadecimal used for in computing?
What is a nibble in binary?
How do you convert binary to decimal?
What is the difference between hexadecimal and binary?
Where does hexadecimal appear in everyday life?
Last updated
Converter updated in 2026. Supports positive integers up to 2⁵³ (JavaScript's safe integer limit for exact integer arithmetic).