Hex to Binary Converter
Hex, binary, decimal, octal, and bit shifts
Required Parameters
Waiting for input data...
Quick Answer
Each hex digit is 4 binary bits: F = 1111, so FF = 11111111 = 255. Group binary into nibbles to read hex. Left shift by N multiplies by 2^N.
Calculateur de Conversion de Bases Numeriques
Convertissez des nombres entre binaire, octal, decimal et hexadecimal.
Design Notes
Hex is the standard display form for binary because it aligns with 4-bit nibbles and 8-bit bytes. Use this converter for register dumps, color codes, memory addresses, and protocol payloads. Bit shifts use integer (BigInt) semantics — they do not rotate.
Common Mistakes
- 1
Mixing up 0x (hex prefix) with 0 (decimal) — 0x10 = 16, not 10.
- 2
Forgetting two's complement for signed integers — 0xFF is 255 unsigned but -1 signed (8-bit).
- 3
Using octal (0o prefix) accidentally in JavaScript by adding a leading zero to what should be a decimal number.
Knowledge Base
Comment convertir du décimal en hexadécimal ?
Divisez par 16 successivement. Exemple : 255 → F×16 + F = 0xFF. En programmation embarquée : les adresses registres sont en hexa, les masques de bits en binaire.
Comment convertir du binaire en hexadécimal ?
Regroupez les bits par paquets de 4 en partant de la droite. 1010 1111 → AF. C'est la raison pour laquelle l'hexadécimal est si pratique pour les registres 8/16/32 bits.