Skip to content

Convertidor Binario, Hexadecimal y Decimal

Convertidor Binario, Hexadecimal y Decimal gratuito - convierte y compara opciones al instante. Sin registro.

Cargando calculadora

Preparando Convertidor Binario Hexadecimal Decimal...

Revisión y Metodología

Cada calculadora utiliza fórmulas estándar de la industria, validadas con fuentes oficiales y revisadas por un profesional financiero certificado. Todos los cálculos se ejecutan de forma privada en su navegador.

Última revisión:

Revisado por:

Escrito por:

Cómo Usar el Convertidor Binario Hexadecimal Decimal

  1. 1. Ingresa tus valores - completa los campos de entrada con tus números.
  2. 2. Ajusta la configuración - usa los deslizadores y selectores para personalizar tu cálculo.
  3. 3. Ve los resultados al instante - los cálculos se actualizan en tiempo real a medida que cambias los valores.
  4. 4. Compara escenarios - ajusta los valores para ver cómo los cambios afectan tus resultados.
  5. 5. Comparte o imprime - copia el enlace, comparte los resultados o imprímelos para tus registros.

Binary Hex Decimal Converter

Convert numbers between binary (base 2), decimal (base 10), and hexadecimal (base 16) instantly. Enter a value in any base and the other two fields update automatically. This converter is used daily by software developers reading memory addresses, web designers decoding color codes, electronics engineers analyzing register values, and computer science students working through coursework.

How Number Base Conversion Works

Every number system assigns a place value to each digit position based on the base (radix). Binary multiplies each digit by powers of 2, decimal by powers of 10, and hexadecimal by powers of 16.

Decimal to binary — divide repeatedly by 2, collect remainders bottom-up. Example: 45 / 2 = 22 r1, 22 / 2 = 11 r0, 11 / 2 = 5 r1, 5 / 2 = 2 r1, 2 / 2 = 1 r0, 1 / 2 = 0 r1. Reading remainders upward gives 101101. Check: 32 + 8 + 4 + 1 = 45. Correct.

Binary to hex — group binary digits into sets of 4 from the right, then replace each group with its hex digit. Example: 101101 becomes 0010 1101 = 2D in hex.

Hex to decimal — multiply each digit by its power of 16 and sum. Example: 2D = (2 x 16) + (13 x 1) = 32 + 13 = 45.

Worked Examples

Example 1 — Web color code. A designer sees the CSS color #1A8FE3. Split into pairs: 1A = 26 red, 8F = 143 green, E3 = 227 blue. This is a medium-bright blue used in many UI button palettes.

Example 2 — Unix file permissions. chmod 755 sets permissions. 7 in binary is 111 (read + write + execute), 5 is 101 (read + execute). Knowing binary makes it immediately clear which permission bits are set without memorizing tables.

Example 3 — Debugging a register value. A microcontroller datasheet says a status register holds 0xC4. In binary that is 11000100. Bits 7, 6, and 2 are set. If those bits correspond to “overflow,” “carry,” and “interrupt pending,” the engineer can read the state directly from the bit pattern.

Reference Table

DecimalBinaryHexadecimalNotes
000000Zero in all bases
101010AFirst letter digit in hex
151111FMaximum single hex digit
161000010One hex “column” turns over
421010102AFits in 6 bits
12711111117FMax signed 8-bit value
1281000000080Min unsigned 8-bit high half
25511111111FFMax 1-byte (8-bit) value
256100000000100First 9-bit number
655351111111111111111FFFFMax 16-bit (2-byte) value

When to Use

  • Reading or writing CSS/HTML color codes such as #FF5733 where each pair is one byte of RGB data.
  • Debugging memory dumps, hex editors, or binary files where addresses are shown in hex.
  • Setting or reading bitfields in hardware registers, network packets, or file format headers.
  • Working through computer science coursework on number systems, bitwise operations, or data representation.
  • Understanding chmod permissions in Unix, IPv4 subnet masks, or MAC address notation.

Common Mistakes

  1. Confusing hex letters with decimal. The hex digit A equals 10, not 1. Writing #FF2A00 and reading the 2A as “two-A” rather than 42 leads to wrong color math. Always translate letter digits to their decimal values first.
  2. Forgetting leading zeros in nibble grouping. When converting binary to hex, pad the leftmost group to 4 bits. The binary number 1011 must be grouped as 1011 (4 bits = B), not split incorrectly as 10 11.
  3. Mixing up base prefixes. In code, 0xFF means hex 255, 0b11111111 means binary 255, and bare 255 means decimal 255. Dropping or misreading the prefix causes silent bugs that are hard to trace.
  4. Assuming “0x” is part of the value. The 0x prefix is a notation convention, not digits. The number 0x1F is 31 in decimal — the 0x contributes nothing to the numeric value.

Quick Reference Benchmarks

BitsBytesMax DecimalMax HexCommon Use
40.5 (nibble)15FSingle hex digit
81255FFOne byte, RGB channel, ASCII
16265,535FFFFPort numbers, Unicode BMP
24316,777,215FFFFFF24-bit color (16M colors)
3244,294,967,295FFFFFFFFIPv4 address, 32-bit int

Tips

  1. Memorize the 16 hex-to-binary digit mappings: 0=0000 through 9=1001, A=1010, B=1011, C=1100, D=1101, E=1110, F=1111. These 16 patterns cover everything.
  2. Powers of 2 appear as a 1 followed by zeros in binary (2=10, 4=100, 8=1000, 16=10000). They are useful sanity-check anchors when doing manual conversions.
  3. If a decimal number ends in an even digit, its binary form ends in 0. If it ends in an odd digit, its binary form ends in 1. Use this to quickly spot-check your work.
  4. One hex digit equals exactly one nibble (4 bits), and two hex digits equal exactly one byte (8 bits). A 6-digit hex color like #3A7FC1 is always exactly 3 bytes of RGB data.
  5. Most programming languages accept hex literals directly: 0xFF in C, Python, and JavaScript all equal 255. Use hex literals instead of decimal when working with bitmasks — they are easier to read and less error-prone.
  6. To convert a large binary number to hex without a calculator, split from the right into groups of 4, convert each group independently, and concatenate the hex digits. This works for any length.

Preguntas Frecuentes

Que son las bases numericas y por que usamos diferentes?
Una base numerica (o radix) determina cuantos digitos se usan para representar valores. Decimal (base 10) usa los digitos 0-9 y es el estandar para el conteo cotidiano. Binario (base 2) usa solo 0 y 1, lo que se mapea directamente a los estados encendido/apagado de los circuitos electronicos -- haciendolo el lenguaje nativo de las computadoras. Hexadecimal (base 16) usa 0-9 y A-F, y es una forma compacta de representar datos binarios ya que cada digito hexadecimal corresponde a exactamente 4 digitos binarios.
Como se cuenta en binario?
El conteo binario sigue el mismo principio que el decimal pero con solo dos digitos (0 y 1). Cuando un digito llega a 1, el siguiente incremento se acarrea a la izquierda: 0, 1, 10, 11, 100, 101, 110, 111, 1000. Cada posicion representa una potencia de 2 de derecha a izquierda: 1, 2, 4, 8, 16, 32, y asi sucesivamente. Para convertir binario a decimal, multiplica cada digito por su valor posicional y suma los resultados. Por ejemplo, 1011 en binario = (1x8) + (0x4) + (1x2) + (1x1) = 11 en decimal.
Como se usan los numeros hexadecimales para los colores web?
Los colores web se representan como valores hexadecimales de 6 digitos precedidos por un simbolo de numeral, como #FF5733. Los seis digitos se dividen en tres pares: los primeros dos representan la intensidad del rojo (FF = 255), los dos del medio representan el verde (57 = 87), y los ultimos dos representan el azul (33 = 51). Cada par va desde 00 (0, sin intensidad) hasta FF (255, intensidad maxima). Asi que #000000 es negro, #FFFFFF es blanco, #FF0000 es rojo puro, y #00FF00 es verde puro.
Como se convierte manualmente entre binario, decimal y hexadecimal?
Para convertir decimal a binario, divide repetidamente entre 2 y registra los residuos de abajo hacia arriba. Por ejemplo, 25: 25/2=12 r1, 12/2=6 r0, 6/2=3 r0, 3/2=1 r1, 1/2=0 r1, asi que 25 = 11001. Para convertir binario a hexadecimal, agrupa los digitos binarios en conjuntos de 4 desde la derecha y convierte cada grupo: 11001 = 0001 1001 = 19 en hex. Para convertir hexadecimal a decimal, multiplica cada digito por su potencia de 16: 19 hex = (1x16) + (9x1) = 25 decimal.
Donde se usan el binario y el hexadecimal en la programacion?
El binario se usa para operaciones a nivel de bits (AND, OR, XOR, NOT), permisos de archivos (chmod 755 en Unix = 111 101 101 en binario), y para entender como se almacenan los datos en la memoria a nivel de bits. El hexadecimal se usa para direcciones de memoria (0x7FFF), codigos de color (#FF5733), direcciones MAC (00:1A:2B:3C:4D:5E), caracteres Unicode (U+0041 = 'A'), y para leer volcados hexadecimales de archivos binarios. La mayoria de los lenguajes de programacion soportan literales hexadecimales (0xFF) y literales binarios (0b11111111) directamente en el codigo.
Calculadoras