Convertidor de Bases Numéricas
Binario, octal, decimal, hexadecimal y desplazamiento de bits
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.
Calculadora de Conversion de Bases Numericas
Convierta numeros entre binario, octal, decimal y 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
¿Qué es FF en hexadecimal?
FF = 255 decimal = 11111111 binario. Máximo de un byte de 8 bits.
¿Cómo convierto binario a decimal?
Cada dígito de derecha a izquierda es potencia de 2: 2⁰=1, 2¹=2, 2²=4... 10110 = 16+4+2 = 22.
¿Por qué los programadores usan hexadecimal?
Hex mapea perfectamente a binario (1 hex = 4 bits). Ideal para direcciones de memoria y colores.
¿Cómo funciona el complemento a dos?
Para negativos: invertir bits y sumar 1. 8 bits: -1 = 0xFF. Rango: -128 a +127.
¿Cómo funcionan los desplazamientos de bits?
Izquierda N = multiplicar por 2^N. Derecha N = dividir por 2^N.